1. 31 Dec, 2020 1 commit
    • Scott Kuhl's avatar
      Ignore quotes in config file passed to sshuttle with @ · 563f4147
      Scott Kuhl authored
      When users put parameters in a config file and pass them to sshuttle
      using '@', they might copy the quotes from the command line into the
      config file. This fix first ensures that we strip whitespace from the
      beginning/end of each line in the config file. Then, if the line
      begins and ends with a matching quote character, strip those too.
      
      Fixes #573.
      563f4147
  2. 29 Dec, 2020 2 commits
  3. 28 Dec, 2020 10 commits
  4. 16 Dec, 2020 4 commits
  5. 14 Dec, 2020 4 commits
  6. 16 Nov, 2020 2 commits
  7. 07 Nov, 2020 1 commit
  8. 06 Nov, 2020 1 commit
  9. 05 Nov, 2020 2 commits
  10. 04 Nov, 2020 6 commits
  11. 29 Oct, 2020 2 commits
  12. 27 Oct, 2020 2 commits
  13. 26 Oct, 2020 1 commit
    • Scott Kuhl's avatar
      Intercept DNS requests sent by systemd-resolved. · 502960d7
      Scott Kuhl authored
      Previously, we would find DNS servers we wish to intercept traffic on
      by reading /etc/resolv.conf. On systems using systemd-resolved,
      /etc/resolv.conf points to localhost and then systemd-resolved
      actually uses the DNS servers listed in
      /run/systemd/resolve/resolv.conf. Many programs will route the DNS
      traffic through localhost as /etc/resolv.conf indicates and sshuttle
      would capture it. However, systemd-resolved also provides other
      interfaces for programs to resolve hostnames besides the localhost
      server in /etc/resolv.conf.
      
      This patch adds systemd-resolved's servers into the list of DNS
      servers when --dns is used.
      
      Note that sshuttle will continue to fail to intercept any traffic sent
      to port 853 for DNS over TLS (which systemd-resolved also supports).
      
      For more info, see:
      sshuttle issue #535
      https://www.freedesktop.org/software/systemd/man/systemd-resolved.service.html
      https://github.com/systemd/systemd/issues/6076
      502960d7
  14. 25 Oct, 2020 1 commit
  15. 24 Oct, 2020 1 commit
    • Scott Kuhl's avatar
      Improve consistency of PATH, environments, and which() · 68c9c9bb
      Scott Kuhl authored
      This patch attempts to fix (or aid in debugging) issue #350.
      
      sshuttle didn't explicitly search /sbin and /usr/sbin and they may be
      missing in the user's PATH. If PATH is missing, these folders wouldn't
      be searched either. There was also a program_exists function which is
      redundant to which(). This consolidates everything into the helpers.py
      file.
      
      This patch introduces get_path() to return PATH + some extra hardcoded
      paths. A new get_env() function can be called to create a consistent
      environment when calling external programs. The new which() wrapper
      function also ensures we use the same set of paths.
      
      If -vv is supplied, messages clearly indicate the programs we are
      looking for, if they are found, and where we looked if we failed to
      find them.
      
      I haven't tested the changes to ipfw or pf.
      68c9c9bb