- 28 Jan, 2019 3 commits
-
-
Brian May authored
-
Brian May authored
-
Vasil Kolev authored
There's a known issue that makes sshuttle crash if there are too many routes on the remote host (that don't fit in 64KB). This patch requests the routes only if auto-nets is specified on the command line.
-
- 23 Jan, 2019 2 commits
-
-
Alex Tomlins authored
This was susceptible to the same deadlock issue that ipt_chain_exists had and was fixed in d43db80d where if the command returned a significant amount of output, it wouldn't all be read in, resulting in the subprocess hanging waiting for the output to be read.
-
Alex Tomlins authored
subprocess.run only exists for python3, and this needs to also support python 2.7
-
- 29 Dec, 2018 1 commit
-
-
André Draszik authored
--ns-hosts is available since commit d2ee34d7 ("dns: Added --ns-hosts to tunnel only some requests") (released as v0.72), but was never documented. --to-ns is available since commit be559fc7 ("Fix case where there is no --dns.") after several bugfixes, released as v0.78.4, but was never documented.
-
- 09 Dec, 2018 1 commit
-
-
Alex Tomlins authored
When running sshuttle with a large list of routes it's failing to clean them up at exit. It returns the following: $ sshuttle -r user@host.example.com -s /tmp/aws-cidrs.txt user@host.example.com's password: client: Connected. ^CAnother app is currently holding the xtables lock; still -9s 0us time ahead to have a chance to grab the lock... Another app is currently holding the xtables lock; still -19s 0us time ahead to have a chance to grab the lock... Another app is currently holding the xtables lock; still -29s 0us time ahead to have a chance to grab the lock... This continues indefinitely. Looking in ps reveals that there are 2 iptables processes running. Killing -9 the first one, allows sshuttle to continue and clean up successfully. The problem lies with the use of Popen here. The function currently returns as soon as it finds a match without consuming everything from stdout. This means that if there's more output from iptables than will fit in the buffer it doesn't exit, and therefore doesn't release the kernel xtables lock.
-
- 03 Dec, 2018 1 commit
-
-
David Landry authored
-
- 29 Nov, 2018 1 commit
-
-
Todor Gaidarov authored
-
- 03 Nov, 2018 1 commit
-
-
João Vieira authored
Before this change, in pf, exclusions used a pass out quick which gave them higher precedence than any other rule independent of subnet width. As reported in #265 this causes exclusion from one instance of sshuttle to also take effect on other instances because quick aborts the evaluation of rules across all anchors. This commit changes the precedence of rules so quick can now be dropped. The new order is defined by the following rule, from subnet_weight: "We need to go from smaller, more specific, port ranges, to larger, less-specific, port ranges. At each level, we order by subnet width, from most-specific subnets (largest swidth) to least-specific. On ties, excludes come first."
-
- 01 Nov, 2018 1 commit
-
-
Brian May authored
* Close stdin, stdout, and stderr when using syslog or forking to daemon Fixes #139 * Ensure we close devnull after use
-
- 23 Oct, 2018 1 commit
-
-
João Vieira authored
* Fixes support for OpenBSD (6.1+) As reported in #219, new versions of OpenBSD ship with a different pfioc_rule struct. This commit adjusts the offset to match the new struct. * Fixes tests for OpenBSD 6.1+
-
- 17 Oct, 2018 5 commits
-
-
Bastian Venthur authored
-
AbbalYouness authored
-
Bastian Venthur authored
-
Bastian Venthur authored
-
Bastian Venthur authored
Having the tests in a `tests` directory in root is the most common approach. Also moved pytest's conftest.py into `tests` making the fixture available for client and server tests.
-
- 07 Oct, 2018 1 commit
-
-
Brian May authored
-
- 22 Sep, 2018 2 commits
-
-
Brian May authored
Add --no-sudo-pythonpath option
-
Steven McDonald authored
This provides a way to avoid setting PYTHONPATH when invoking the privileged part of sshuttle with sudo. This is useful if running sshuttle as a PEX archive, as Telepresence does, as it enables sshuttle's sudo access to be securely locked down. PEX archives will extract themselves into the invoking user's home directory, which means that the invoking user has full control over the code in them. This makes restricting sudo access with PYTHONPATH set completely pointless in this scenario -- an attacker could put any code into ~/.pex and gain full root access anyway. On the other hand, if sshuttle is a PEX archive, the privileged invocation will simply extract itself into /root/.pex anyway, so there is no need to set PYTHONPATH in this case.
-
- 25 Aug, 2018 1 commit
-
-
tony godshall authored
* works on ChromeOS with Crostini VM tested on ASUS C101PA on Dev channel, should also work on Intel machines and Beta channel * crostini doc, and a note about xterms and VNC tested on ASUS C101PA on Dev channel, should also work on Intel machines and Beta channel
-
- 21 Aug, 2018 1 commit
-
-
Brian May authored
Peername is only used for information display messages. Fixes #259
-
- 29 Jun, 2018 1 commit
-
-
David Patino authored
Remove reference to autossh per https://github.com/sshuttle/sshuttle/issues/143
-
- 22 Jun, 2018 1 commit
-
-
Daisuke Taniwaki authored
-
- 07 Jun, 2018 1 commit
-
-
Benedikt Waldvogel authored
-
- 03 Jun, 2018 1 commit
-
-
desbma authored
-
- 13 May, 2018 1 commit
-
-
Ivan Shvedunov authored
Fixes #227
-
- 09 May, 2018 1 commit
-
-
evitalis authored
-
- 30 Apr, 2018 2 commits
-
-
Antoine POPINEAU authored
-
Antoine POPINEAU authored
-
- 02 Apr, 2018 1 commit
-
-
Brian May authored
-
- 22 Mar, 2018 3 commits
-
-
Brian Hill authored
-
Brian Hill authored
-
Brian Hill authored
-
- 16 Mar, 2018 5 commits
- 13 Mar, 2018 1 commit
-
-
Julian Wollrath authored
-