From 794dc14e660bce12a324aa28f7c8ad6b6bf8cfde Mon Sep 17 00:00:00 2001 From: Hiroyuki Wada Date: Tue, 5 Sep 2017 01:29:47 +0900 Subject: [PATCH] Rename repository name --- README.md | 18 +++++++++--------- cmd/{go-tproxy => go-transproxy}/main.go | 6 +++--- 2 files changed, 12 insertions(+), 12 deletions(-) rename cmd/{go-tproxy => go-transproxy}/main.go (97%) diff --git a/README.md b/README.md index cfefb94..3181efb 100644 --- a/README.md +++ b/README.md @@ -1,29 +1,29 @@ -# go-tproxy +# go-transproxy Transparent proxy servers for HTTP, HTTPS, DNS and TCP. This repository is heavily under development. ## Description -**go-tproxy** provides transparent proxy servers for HTTP, HTTPS, DNS and TCP with single binary. +**go-transproxy** provides transparent proxy servers for HTTP, HTTPS, DNS and TCP with single binary. Nothing needs to setup many tools. Nothing needs to configure iptables. -**go-tproxy** will start multiple proxy servers for these protocols. +**go-transproxy** will start multiple proxy servers for these protocols. Futheremore, it will configure iptables automatically. ## Requirement -**go-tproxy** supports only Linux iptables. +**go-transproxy** supports only Linux iptables. ## Install ### Binaly install -Download from [Releases page](https://github.com/wadahiro/go-tproxy/releases). +Download from [Releases page](https://github.com/wadahiro/go-transproxy/releases). ### Source install Use Go 1.8. ``` -go get -u github.com/wadahiro/go-tproxy/... +go get -u github.com/wadahiro/go-transproxy/... ``` ## Usage @@ -31,7 +31,7 @@ go get -u github.com/wadahiro/go-tproxy/... ``` Usage: - go-tproxy [options] + go-transproxy [options] Options: @@ -69,8 +69,8 @@ export http_proxy=http://foo:bar@yourproxy.example.org:3128 # Set no_proxy if you need to access directly for internal export no_proxy=example.org,192.168.0.0/24 -# Start go-tproxy with admin privileges(sudo) -sudo go-tproxy -private-dns 192.168.0.100 +# Start go-transproxy with admin privileges(sudo) +sudo go-transproxy -private-dns 192.168.0.100 ``` For testing, using docker is easy way. Now, you can access to google from docker container with no proxy configuration as follows. diff --git a/cmd/go-tproxy/main.go b/cmd/go-transproxy/main.go similarity index 97% rename from cmd/go-tproxy/main.go rename to cmd/go-transproxy/main.go index 7332500..e01a1ed 100644 --- a/cmd/go-tproxy/main.go +++ b/cmd/go-transproxy/main.go @@ -4,7 +4,7 @@ import ( "flag" "fmt" log "github.com/Sirupsen/logrus" - "github.com/wadahiro/go-tproxy" + "github.com/wadahiro/go-transproxy" "math/rand" "net" "os" @@ -66,7 +66,7 @@ var ( func main() { fs.Usage = func() { _, exe := filepath.Split(os.Args[0]) - fmt.Fprint(os.Stderr, "go-tproxy.\n\n") + fmt.Fprint(os.Stderr, "go-transproxy.\n\n") fmt.Fprintf(os.Stderr, "Usage:\n\n %s [options]\n\nOptions:\n\n", exe) fs.PrintDefaults() } @@ -175,7 +175,7 @@ func main() { log.Infoln("IPTables: iptables rules deleted.") dnsProxy.Stop() - log.Infoln("go-tproxy exited.") + log.Infoln("go-transproxy exited.") } func toPort(addr string) int {