From 6d4a3ad82cae67c4eeedbf4468b3983ddc08dd94 Mon Sep 17 00:00:00 2001 From: zfl9 Date: Sat, 18 Jul 2020 17:08:56 +0800 Subject: [PATCH] add `tcp_tproxy` option, asciidoc update --- doc/shadowsocks-libev.asciidoc | 6 ++++++ doc/ss-redir.asciidoc | 3 +++ 2 files changed, 9 insertions(+) diff --git a/doc/shadowsocks-libev.asciidoc b/doc/shadowsocks-libev.asciidoc index c3d9df84..4a283dd6 100644 --- a/doc/shadowsocks-libev.asciidoc +++ b/doc/shadowsocks-libev.asciidoc @@ -122,6 +122,11 @@ Enable UDP relay and disable TCP relay. + Not available in local mode. +-T:: +Use tproxy instead of redirect (for tcp). ++ +Only available in redir mode. + -L :: 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": "udp_only" | no "-u" nor "-U" options (default) | "mode": "tcp_only" +| -T | "tcp_tproxy": true | (only in ss-manager's config) | "port_password": {"1234":"PasSworD"} |============================================================================ diff --git a/doc/ss-redir.asciidoc b/doc/ss-redir.asciidoc index 56fe1839..ea15ef31 100644 --- a/doc/ss-redir.asciidoc +++ b/doc/ss-redir.asciidoc @@ -95,6 +95,9 @@ TPROXY is required in redir mode. You may need root permission. -U:: Enable UDP relay and disable TCP relay. +-T:: +Use tproxy instead of redirect. (for tcp) + -6:: Resovle hostname to IPv6 address first.