Browse Source
add `tcp_tproxy` option, asciidoc update
pull/2736/head
zfl9
4 years ago
No known key found for this signature in database
GPG Key ID: C6A9D94D899807DB
2 changed files with
9 additions and
0 deletions
-
doc/shadowsocks-libev.asciidoc
-
doc/ss-redir.asciidoc
|
@ -122,6 +122,11 @@ Enable UDP relay and disable TCP relay. |
|
|
+ |
|
|
+ |
|
|
Not available in local mode. |
|
|
Not available in local mode. |
|
|
|
|
|
|
|
|
|
|
|
-T:: |
|
|
|
|
|
Use tproxy instead of redirect (for tcp). |
|
|
|
|
|
+ |
|
|
|
|
|
Only available in redir mode. |
|
|
|
|
|
|
|
|
-L <addr:port>:: |
|
|
-L <addr:port>:: |
|
|
Specify destination server address and port for local port forwarding. |
|
|
Specify destination server address and port for local port forwarding. |
|
|
+ |
|
|
+ |
|
@ -199,6 +204,7 @@ The config file equivalent of command line options is listed as example below. |
|
|
| -u | "mode": "tcp_and_udp" |
|
|
| -u | "mode": "tcp_and_udp" |
|
|
| -U | "mode": "udp_only" |
|
|
| -U | "mode": "udp_only" |
|
|
| no "-u" nor "-U" options (default) | "mode": "tcp_only" |
|
|
| no "-u" nor "-U" options (default) | "mode": "tcp_only" |
|
|
|
|
|
| -T | "tcp_tproxy": true |
|
|
| (only in ss-manager's config) | "port_password": {"1234":"PasSworD"} |
|
|
| (only in ss-manager's config) | "port_password": {"1234":"PasSworD"} |
|
|
|============================================================================ |
|
|
|============================================================================ |
|
|
|
|
|
|
|
|
|
@ -95,6 +95,9 @@ TPROXY is required in redir mode. You may need root permission. |
|
|
-U:: |
|
|
-U:: |
|
|
Enable UDP relay and disable TCP relay. |
|
|
Enable UDP relay and disable TCP relay. |
|
|
|
|
|
|
|
|
|
|
|
-T:: |
|
|
|
|
|
Use tproxy instead of redirect. (for tcp) |
|
|
|
|
|
|
|
|
-6:: |
|
|
-6:: |
|
|
Resovle hostname to IPv6 address first. |
|
|
Resovle hostname to IPv6 address first. |
|
|
|
|
|
|
|
|