diff options
author | Samuel Bernardo <samuel@lip.pt> | 2020-12-06 17:23:15 +0000 |
---|---|---|
committer | Brian May <brian@linuxpenguins.xyz> | 2020-12-28 10:20:46 +1100 |
commit | 76b8b83e22267ca7da0cd5102fc926cecf20cb1a (patch) | |
tree | db1fae5c008590b17d01e6ac557c38372ae27946 /docs | |
parent | a5214e0fd7568912b492375bf39f59b65e9f8171 (diff) |
Add .gitignore .vscode/ path. Resolve the issue #374 adding tproxy mark option to allow different network mapping.
Signed-off-by: Samuel Bernardo <samuel@lip.pt>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/manpage.rst | 4 | ||||
-rw-r--r-- | docs/tproxy.rst | 6 |
2 files changed, 8 insertions, 2 deletions
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. |