sshuttle/sshuttle
Scott Kuhl bc065e368d Remove ttl hack & require -r option.
Previously, it was possible to run sshuttle locally without using ssh
and connecting to a remote server. In this configuration, traffic was
redirected to the sshuttle server running on the localhost. However,
the firewall needed to distinguish between traffic leaving the
sshuttle server and traffic that originated from the machine that
still needed to be routed through the sshuttle server. The TTL of the
packets leaving the sshuttle server were manipulated to indicate to
the firewall what should happen. The TTL was adjusted for all packets
leaving the sshuttle server (even if it wasn't necessary because the
server and client were running on different machines).

Changing the TTL caused trouble and some machines, and
the --ttl option was added as a workaround to change how the TTL was
set for traffic leaving sshuttle. All of this added complexity to the
code for a feature (running the server on localhost) that is likely
only used for testing and rarely used by others.

This commit updates the associated documentation, but doesn't fully
fix the ipfw method since I am unable to test that.

This change will also make sshuttle fail to work if -r is used to
specify a localhost. Pull request #610 partially addresses that issue.

For example, see: #240, #490, #660, #606.
2021-07-12 11:24:29 -04:00
..
methods Remove ttl hack & require -r option. 2021-07-12 11:24:29 -04:00
__init__.py Use argparse for command line options 2016-03-22 13:12:59 +11:00
__main__.py Fix installation from wheel 2016-01-17 10:21:21 +11:00
assembler.py Remove ttl hack & require -r option. 2021-07-12 11:24:29 -04:00
client.py Remove ttl hack & require -r option. 2021-07-12 11:24:29 -04:00
cmdline.py Remove ttl hack & require -r option. 2021-07-12 11:24:29 -04:00
firewall.py Remove ttl hack & require -r option. 2021-07-12 11:24:29 -04:00
helpers.py Refactor debug, log and Fatal messages. 2021-01-01 19:32:48 +11:00
hostwatch.py fix lint errors 2021-06-02 15:32:04 -04:00
linux.py Remove ttl hack & require -r option. 2021-07-12 11:24:29 -04:00
options.py Remove ttl hack & require -r option. 2021-07-12 11:24:29 -04:00
sdnotify.py Refactor debug, log and Fatal messages. 2021-01-01 19:32:48 +11:00
server.py Remove ttl hack & require -r option. 2021-07-12 11:24:29 -04:00
ssh.py Improve error messages related to sshuttle server. (#580) 2021-01-04 08:35:10 +11:00
ssnet.py Remove ttl hack & require -r option. 2021-07-12 11:24:29 -04:00
ssyslog.py Close stdin, stdout, and stderr when using syslog or forking to daemon (#283) 2018-11-01 09:27:50 +11:00
stresstest.py Fix PEP8 issues. 2015-11-16 09:10:02 +11:00
sudoers.py Warn about adding sshuttle to sudoers. 2021-05-07 14:13:56 -04:00