From 76b8b83e22267ca7da0cd5102fc926cecf20cb1a Mon Sep 17 00:00:00 2001 From: Samuel Bernardo Date: Sun, 6 Dec 2020 17:23:15 +0000 Subject: Add .gitignore .vscode/ path. Resolve the issue #374 adding tproxy mark option to allow different network mapping. Signed-off-by: Samuel Bernardo --- docs/manpage.rst | 4 ++++ docs/tproxy.rst | 6 ++++-- 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'docs') diff --git a/docs/manpage.rst b/docs/manpage.rst index 3ee5e10..bfe4beb 100644 --- a/docs/manpage.rst +++ b/docs/manpage.rst @@ -274,6 +274,10 @@ Options Set the file name for the sudoers.d file to be added. Default is "sshuttle_auto". Only works with --sudoers. +.. option:: -t, --tmark + + Transproxy optional traffic mark with provided MARK value. + .. option:: --version Print program version. diff --git a/docs/tproxy.rst b/docs/tproxy.rst index 1842cf9..8f27c83 100644 --- a/docs/tproxy.rst +++ b/docs/tproxy.rst @@ -8,9 +8,11 @@ There are some things you need to consider for TPROXY to work: done once after booting up:: ip route add local default dev lo table 100 - ip rule add fwmark 1 lookup 100 + ip rule add fwmark {TMARK} lookup 100 ip -6 route add local default dev lo table 100 - ip -6 rule add fwmark 1 lookup 100 + ip -6 rule add fwmark {TMARK} lookup 100 + + where {TMARK} is the identifier mark passed with -t or --tmark flag (default value is 1). - The ``--auto-nets`` feature does not detect IPv6 routes automatically. Add IPv6 routes manually. e.g. by adding ``'::/0'`` to the end of the command line. -- cgit v1.2.3