1. 25 Jul, 2019 1 commit
  2. 21 Jun, 2019 1 commit
  3. 08 Jun, 2019 2 commits
  4. 04 Apr, 2019 1 commit
  5. 14 Feb, 2019 2 commits
  6. 11 Feb, 2019 1 commit
    • Bastian Venthur's avatar
      Fix/pep8 (#277) · 3bfb975e
      Bastian Venthur authored
      * re-organized imports according to pep8
      * fixed all remaining pep8 issues
      * moved common config into setup.cfg, additionally test `tests`
      * removed --select=X -- the errors selected where by default not in
        flake8's --ignore list so effectively had no effect
      * update .travis.yml to reflect changes in tox.ini
      * make travis just use tox in order to avoid code duplaction
      * replace py.test with pytest
      * fixed .travis.yml
      * try different pypy toxenv
      * hopefully fixed testenv for pypy
      * added pypy basepython, removed unused python2.6
      * install dev package before testing (fixes missing coverage)
      * fixed empty exception pass blocks with noqa
      * Added dummy log message on empty try-except-pass blocks to make dodacy happy :(
      * Replaced Exception with BaseException
      3bfb975e
  7. 28 Jan, 2019 3 commits
  8. 23 Jan, 2019 2 commits
  9. 29 Dec, 2018 1 commit
    • André Draszik's avatar
      docs: document --ns-hosts --to-ns and update --dns · 531a17c1
      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.
      531a17c1
  10. 09 Dec, 2018 1 commit
    • Alex Tomlins's avatar
      Fix deadlock with iptables with large ruleset · d43db80d
      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.
      d43db80d
  11. 03 Dec, 2018 1 commit
  12. 29 Nov, 2018 1 commit
  13. 03 Nov, 2018 1 commit
    • João Vieira's avatar
      Changes pf exclusion rules precedence · ca41026c
      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."
      ca41026c
  14. 01 Nov, 2018 1 commit
  15. 23 Oct, 2018 1 commit
    • João Vieira's avatar
      Fixes support for OpenBSD (6.1+) (#282) · 7a54d12f
      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+
      7a54d12f
  16. 17 Oct, 2018 5 commits
  17. 07 Oct, 2018 1 commit
  18. 22 Sep, 2018 2 commits
    • Brian May's avatar
      Merge pull request #271 from usabilla/no-sudo-pythonpath · 6dc368bd
      Brian May authored
      Add --no-sudo-pythonpath option
      6dc368bd
    • Steven McDonald's avatar
      Add --no-sudo-pythonpath option · f528bb98
      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.
      f528bb98
  19. 25 Aug, 2018 1 commit
    • tony godshall's avatar
      works on ChromeOS with Crostini VM (#262) · 561b648e
      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
      561b648e
  20. 21 Aug, 2018 1 commit
  21. 29 Jun, 2018 1 commit
  22. 22 Jun, 2018 1 commit
  23. 07 Jun, 2018 1 commit
  24. 03 Jun, 2018 1 commit
  25. 13 May, 2018 1 commit
  26. 09 May, 2018 1 commit
  27. 30 Apr, 2018 2 commits
  28. 02 Apr, 2018 1 commit
  29. 22 Mar, 2018 1 commit