Skip to content

Commit

Permalink
Better explanation of usage example.
Browse files Browse the repository at this point in the history
  • Loading branch information
riobard committed Feb 4, 2017
1 parent 785bef4 commit 6f957fb
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,25 @@ go install github.com/riobard/go-shadowsocks2
## Usage


Server
### Server

Start a server listening on port 8848 using `aes-128-gcm` AEAD cipher with a 128-bit key in hexdecimal.


```sh
go-shadowsocks2 -s :8488 -cipher aes-128-gcm -key 1234567890abcdef1234567890abcdef -verbose
```


Client

### Client

Start a client connecting to the above server. The client listens on port 1080 for incoming SOCKS5
connections, and tunnels UDP packets received on port 1080 and port 1081 to 8.8.8.8:53 and 8.8.4.4:53
respectively. The client also tunnels TCP connection to port 1082 to port 5201 on localhost, which is
used to proxy iperf3 for benchmarking.

```sh
go-shadowsocks2 -c [server_address]:8488 -cipher aes-128-gcm -key 1234567890abcdef1234567890abcdef \
-socks :1080 -udptun :1080=8.8.8.8:53,:1081=8.8.4.4:53 -tcptun :1082=localhost:5201 -verbose
```

Keys are in hexdecimal format.

0 comments on commit 6f957fb

Please sign in to comment.