Skip to content

Commit

Permalink
fix:update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
aiddroid committed May 27, 2020
1 parent 35143a6 commit 3fd9c75
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ A simple proxy that allow you serve TCP proxy from a port to another.
### features
- TCP port proxy
- IP white list
- raw data dump
- logging

#### usage
Expand All @@ -15,17 +14,17 @@ Usage:
tcp-proxy [command]
Available Commands:
help Help about any command
start Start TCP proxy
help Help about
Flags:
-c, --config string config file (default is $HOME/.tcp-proxy.yaml)
-h, --help help for tcp-proxy
-l, --logfile string log file path (default is STDOUT)
-h, --help help for tcp-proxy
```
Example: Proxy MYSQL at port 80:
`sudo ./tcp-proxy start -f 80 -t 3306 -w whiteip.json -l proxy.log`

Auth current IP to white IP list:
`curl -XPOST http://your-server-ip:port/auth/ip`
`curl -XPOST http://your-server-ip:port/auth/RANDOM-AUTH-URI`

0 comments on commit 3fd9c75

Please sign in to comment.