|
87 | 87 | URI Syntax |
88 | 88 | ----------- |
89 | 89 |
|
90 | | -{scheme}://[{cipher}@]{netloc}[/{plugins}][?{rules}][#{auth}] |
| 90 | +{scheme}://[{cipher}@]{netloc}/[@{localbind}][,{plugins}][?{rules}][#{auth}] |
91 | 91 |
|
92 | 92 | - scheme |
93 | 93 | - Currently supported scheme: http, socks, ss, ssl, secure. You can use + to link multiple protocols together. |
@@ -181,9 +181,12 @@ URI Syntax |
181 | 181 | - netloc |
182 | 182 | - It can be "hostname:port" or "/unix_domain_path". If the hostname is empty, server will listen on all interfaces. |
183 | 183 | - 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 |
184 | 187 | - plugins |
185 | 188 | - 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 |
187 | 190 | - rules |
188 | 191 | - The filename that contains regex rules |
189 | 192 | - auth |
@@ -244,7 +247,11 @@ It listen on both 80 HTTP and 443 HTTPS ports, use the specified certificate and |
244 | 247 |
|
245 | 248 | A ShadowsocksR example: |
246 | 249 |
|
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 |
248 | 255 |
|
249 | 256 | An iptable NAT redirect example: |
250 | 257 |
|
|
0 commit comments