Skip to content

Commit 1f5764c

Browse files
authored
1.4.2
1 parent 383c516 commit 1f5764c

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

‎README.rst‎

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ Usage
8787
URI Syntax
8888
-----------
8989

90-
{scheme}://[{cipher}@]{netloc}[/{plugins}][?{rules}][#{auth}]
90+
{scheme}://[{cipher}@]{netloc}/[@{localbind}][,{plugins}][?{rules}][#{auth}]
9191

9292
- scheme
9393
- Currently supported scheme: http, socks, ss, ssl, secure. You can use + to link multiple protocols together.
@@ -181,9 +181,12 @@ URI Syntax
181181
- netloc
182182
- It can be "hostname:port" or "/unix_domain_path". If the hostname is empty, server will listen on all interfaces.
183183
- Valid netloc: localhost:8080, 0.0.0.0:8123, /tmp/domain_socket, :8123
184+
- localbind
185+
- It can be "@in" or @ipv4_address or @ipv6_address
186+
- Valid localbind: @in, @192.168.1.15, @::1
184187
- plugins
185188
- It can be multiple plugins joined by ",". Supported plugins: plain, origin, http_simple, tls1.2_ticket_auth, verify_simple, verify_deflate
186-
- Valid plugins: /tls1.2_ticket_auth,verify_simple
189+
- Valid plugins: /,tls1.2_ticket_auth,verify_simple
187190
- rules
188191
- The filename that contains regex rules
189192
- auth
@@ -244,7 +247,11 @@ It listen on both 80 HTTP and 443 HTTPS ports, use the specified certificate and
244247

245248
A ShadowsocksR example:
246249

247-
$ pproxy -i ssr://chacha20:mypass@0.0.0.0:443/tls1.2_ticket_auth,verify_simple
250+
$ pproxy -i ssr://chacha20:mypass@0.0.0.0:443/,tls1.2_ticket_auth,verify_simple
251+
252+
If you want to route the traffic by different local bind, use the @localbind syntax. For example, server has three ip interfaces: 192.168.1.15, 111.0.0.1, 112.0.0.1. You want to route traffic matched by "rule1" to 111.0.0.2 and traffic matched by "rule2" to 222.0.0.2, and the remaining traffic directly:
253+
254+
$ pproxy -i ss://:8000/@in -r ss://111.0.0.2:8000/@111.0.0.1?rule1 -r ss://222.0.0.2:8000/@222.0.0.1?rule2
248255

249256
An iptable NAT redirect example:
250257

0 commit comments

Comments
 (0)