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>
This commit is contained in:
Samuel Bernardo
2020-12-06 17:23:15 +00:00
committed by Brian May
parent a5214e0fd7
commit 76b8b83e22
7 changed files with 37 additions and 15 deletions

View File

@ -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.

View File

@ -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.