Skip to content

Commit

Permalink
Rename repository name
Browse files Browse the repository at this point in the history
  • Loading branch information
wadahiro committed Sep 4, 2017
1 parent a4696f3 commit 794dc14
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
# 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

```
Usage:
go-tproxy [options]
go-transproxy [options]
Options:
Expand Down Expand Up @@ -69,8 +69,8 @@ export http_proxy=http://foo:[email protected]: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.
Expand Down
6 changes: 3 additions & 3 deletions cmd/go-tproxy/main.go → cmd/go-transproxy/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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()
}
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 794dc14

Please sign in to comment.