1dbec7252d
Remove dead code in hostwatch.py
...
11 years ago in commit 384d0e7c1d
,
hostwatch was updated to use netstat to find hosts, and
_check_smb()/_check_nmb() were edited to immediately return. This
patch removes all of the unused code in these two functions.
2021-05-29 20:48:33 -04:00
bc54ffe398
Merge pull request #643 from skuhl/fix-to-ns-with-ns-hosts
...
Fix: Allow --to-ns and --ns-host without --dns.
2021-05-22 13:06:48 +10:00
31f059883c
Fix: Allow --to-ns and --ns-host without --dns.
...
If the user specifies --to-ns (tells the remote server which DNS
server to use for lookups coming from sshuttle), then either --ns-host
or --dns need to also be used (route DNS requests through sshuttle).
A previous commit incorrectly made it so --to-ns and --ns-host
couldn't be successfully used together.
Attempts to fix #641 .
2021-05-21 17:47:38 -04:00
f376674941
Merge pull request #634 from skuhl/systemd-dns-flush
...
Flush systemd DNS cache on startup and exit.
2021-05-18 15:40:56 +10:00
41ca86dbf2
Merge pull request #640 from sshuttle/dependabot/pip/pytest-cov-2.12.0
...
Bump pytest-cov from 2.11.1 to 2.12.0
2021-05-18 08:17:26 +10:00
7760d63870
Bump pytest-cov from 2.11.1 to 2.12.0
...
Bumps [pytest-cov](https://github.com/pytest-dev/pytest-cov ) from 2.11.1 to 2.12.0.
- [Release notes](https://github.com/pytest-dev/pytest-cov/releases )
- [Changelog](https://github.com/pytest-dev/pytest-cov/blob/master/CHANGELOG.rst )
- [Commits](https://github.com/pytest-dev/pytest-cov/compare/v2.11.1...v2.12.0 )
Signed-off-by: dependabot[bot] <support@github.com >
2021-05-17 07:36:53 +00:00
8b69c706c2
Merge pull request #639 from sshuttle/dependabot/github_actions/actions/setup-python-2.2.2
...
Bump actions/setup-python from 2 to 2.2.2
2021-05-12 20:36:42 +10:00
d289fb2e73
Merge pull request #638 from sshuttle/dependabot/github_actions/actions/checkout-2.3.4
...
Bump actions/checkout from 2 to 2.3.4
2021-05-12 20:36:28 +10:00
20c38afaba
Bump actions/setup-python from 2 to 2.2.2
...
Bumps [actions/setup-python](https://github.com/actions/setup-python ) from 2 to 2.2.2.
- [Release notes](https://github.com/actions/setup-python/releases )
- [Commits](https://github.com/actions/setup-python/compare/v2...v2.2.2 )
Signed-off-by: dependabot[bot] <support@github.com >
2021-05-12 06:13:47 +00:00
7aeb7929c5
Bump actions/checkout from 2 to 2.3.4
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 2 to 2.3.4.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/checkout/compare/v2...v2.3.4 )
Signed-off-by: dependabot[bot] <support@github.com >
2021-05-12 06:13:43 +00:00
30767135fb
Merge pull request #636 from sshuttle/dependabot/pip/flake8-3.9.2
...
Bump flake8 from 3.9.1 to 3.9.2
2021-05-10 20:53:51 +10:00
df383edaf6
Bump flake8 from 3.9.1 to 3.9.2
...
Bumps [flake8](https://gitlab.com/pycqa/flake8 ) from 3.9.1 to 3.9.2.
- [Release notes](https://gitlab.com/pycqa/flake8/tags )
- [Commits](https://gitlab.com/pycqa/flake8/compare/3.9.1...3.9.2 )
Signed-off-by: dependabot[bot] <support@github.com >
2021-05-10 10:00:12 +00:00
88154f4f9c
Merge pull request #635 from skuhl/sudoers-warning
...
Warn about adding sshuttle to sudoers.
2021-05-09 20:25:26 +10:00
915497f73f
Warn about adding sshuttle to sudoers.
...
Issue #631 suggests that we should warn about users who add sshuttle
to sudoers because it isn't obvious that when a user can run sshuttle
as root, they can run any command as root using sshuttle's -e or
--ssh-cmd parameters.
This patch adds a comment that warns about this problem to the sudoers
file. It also prints the warning to the console if the user uses an
option that writes the data directly to the file. This patch also
causes the output of the sudoers-add command to be printed to the
console so that the user can see the name of the file that was
created.
There is room for improvement: Warnings could be added to the
documentation and/or these parameters could be removed entirely.
2021-05-07 14:13:56 -04:00
652113818e
Merge pull request #633 from sshuttle/dependabot/pip/pytest-6.2.4
...
Bump pytest from 6.2.3 to 6.2.4
2021-05-06 08:08:28 +10:00
cdfb4b7d71
Flush systemd DNS cache on startup and exit.
...
It is possible for DNS requests to go through systemd's DNS resolution
system (which includes a cache) before sshuttle has an opportunity to
intercept the requests. The DNS entries in the cache may become
outdated when sshuttle starts or exits. This patch fixes the problem
by flushing the cache when sshuttle firewall starts and exits.
2021-05-05 12:24:58 -04:00
45b788c908
Bump pytest from 6.2.3 to 6.2.4
...
Bumps [pytest](https://github.com/pytest-dev/pytest ) from 6.2.3 to 6.2.4.
- [Release notes](https://github.com/pytest-dev/pytest/releases )
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst )
- [Commits](https://github.com/pytest-dev/pytest/compare/6.2.3...6.2.4 )
Signed-off-by: dependabot[bot] <support@github.com >
2021-05-05 07:58:09 +00:00
f6176d3581
Merge pull request #630 from thesamesam/patch-1
...
README.rst: fix Gentoo entry syntax
2021-04-27 07:47:46 +10:00
bc08198cae
README.rst: fix Gentoo entry syntax
2021-04-26 16:22:42 +01:00
613412b3cd
Merge pull request #627 from sshuttle/dependabot/pip/flake8-3.9.1
...
Bump flake8 from 3.9.0 to 3.9.1
2021-04-18 10:26:40 +10:00
4f7706db59
Bump flake8 from 3.9.0 to 3.9.1
...
Bumps [flake8](https://gitlab.com/pycqa/flake8 ) from 3.9.0 to 3.9.1.
- [Release notes](https://gitlab.com/pycqa/flake8/tags )
- [Commits](https://gitlab.com/pycqa/flake8/compare/3.9.0...3.9.1 )
Signed-off-by: dependabot[bot] <support@github.com >
2021-04-16 08:00:29 +00:00
7307636d35
Merge pull request #624 from sshuttle/dependabot/add-v2-config-file
...
Create Dependabot config file
2021-04-08 11:47:33 +10:00
1f5161e48c
Create Dependabot config file
2021-04-08 01:40:51 +00:00
d505b08104
Merge pull request #623 from sshuttle/dependabot/pip/pytest-6.2.3
...
Bump pytest from 6.2.2 to 6.2.3
2021-04-06 08:37:03 +10:00
3e3608f572
Bump pytest from 6.2.2 to 6.2.3
...
Bumps [pytest](https://github.com/pytest-dev/pytest ) from 6.2.2 to 6.2.3.
- [Release notes](https://github.com/pytest-dev/pytest/releases )
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst )
- [Commits](https://github.com/pytest-dev/pytest/compare/6.2.2...6.2.3 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2021-04-05 06:17:47 +00:00
51a1078371
Merge pull request #622 from necrose99/patch-1
...
Update README.rst
2021-03-26 07:52:21 +11:00
f55983e485
Merge pull request #620 from sshuttle/dependabot/pip/pyflakes-2.3.1
...
Bump pyflakes from 2.3.0 to 2.3.1
2021-03-26 07:51:48 +11:00
e54747bfb0
Update README.rst
...
https://packages.gentoo.org/packages/net-proxy/sshuttle
2021-03-25 14:12:32 -05:00
d8acf15c1e
Bump pyflakes from 2.3.0 to 2.3.1
...
Bumps [pyflakes](https://github.com/PyCQA/pyflakes ) from 2.3.0 to 2.3.1.
- [Release notes](https://github.com/PyCQA/pyflakes/releases )
- [Changelog](https://github.com/PyCQA/pyflakes/blob/master/NEWS.rst )
- [Commits](https://github.com/PyCQA/pyflakes/compare/2.3.0...2.3.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2021-03-25 06:12:41 +00:00
bafc0a7038
Merge pull request #618 from patrislav1/bugfix-dnsproxy
...
Fix DnsProxy
2021-03-21 09:21:26 +11:00
4c11dd7183
options: make sure ttl is of integer type
2021-03-20 12:26:17 +01:00
4257c8d34e
Merge pull request #617 from patrislav1/bugfix-iptables-wait
...
Fix firewall setup/teardown failure on xtable lock
2021-03-20 11:27:20 +11:00
dc657a93f4
Merge pull request #616 from sshuttle/dependabot/pip/setuptools-scm-6.0.1
...
Bump setuptools-scm from 5.0.2 to 6.0.1
2021-03-19 09:01:02 +11:00
5e177d81bc
Fix firewall setup/teardown failure on xtable lock
2021-03-18 09:41:21 +01:00
7015d7a823
Bump setuptools-scm from 5.0.2 to 6.0.1
...
Bumps [setuptools-scm](https://github.com/pypa/setuptools_scm ) from 5.0.2 to 6.0.1.
- [Release notes](https://github.com/pypa/setuptools_scm/releases )
- [Changelog](https://github.com/pypa/setuptools_scm/blob/main/CHANGELOG.rst )
- [Commits](https://github.com/pypa/setuptools_scm/compare/v5.0.2...v6.0.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2021-03-18 06:10:30 +00:00
014a268b99
Merge pull request #614 from sshuttle/upgrade_lint
...
Bump pyflakes from 2.2.0 to 2.3.0, flake8 from 3.8.4 to 3.9.0
2021-03-16 08:30:15 +11:00
97076a9390
Adjust branches, remove temporary branches
2021-03-16 08:29:14 +11:00
dd661e9728
Bump pyflakes from 2.2.0 to 2.3.0, flake8 from 3.8.4 to 3.9.0
...
Bumps [pyflakes](https://github.com/PyCQA/pyflakes ) from 2.2.0 to 2.3.0.
- [Release notes](https://github.com/PyCQA/pyflakes/releases )
- [Changelog](https://github.com/PyCQA/pyflakes/blob/master/NEWS.rst )
- [Commits](https://github.com/PyCQA/pyflakes/compare/2.2.0...2.3.0 )
Bumps [flake8](https://gitlab.com/pycqa/flake8 ) from 3.8.4 to 3.9.0.
- [Release notes](https://gitlab.com/pycqa/flake8/tags )
- [Commits](https://gitlab.com/pycqa/flake8/compare/3.8.4...3.9.0 )
2021-03-16 08:21:03 +11:00
d6d11b24c8
Make exit code indicate a problem when pidfile is not writable.
...
Here, we try to open the pidfile for writing prior to forking so that
the exit code can properly indicate to the user that there was a
problem. No error messages are printed to the console in this case
because when --daemon implies --syslog. So, the syslog will contain
the message indicating that the pidfile wasn't writeable.
Fixes bug #598 .
2021-03-10 07:54:55 +11:00
bb1363ec6b
Bump setuptools-scm from 5.0.1 to 5.0.2
...
Bumps [setuptools-scm](https://github.com/pypa/setuptools_scm ) from 5.0.1 to 5.0.2.
- [Release notes](https://github.com/pypa/setuptools_scm/releases )
- [Changelog](https://github.com/pypa/setuptools_scm/blob/master/CHANGELOG.rst )
- [Commits](https://github.com/pypa/setuptools_scm/compare/v5.0.1...v5.0.2 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2021-03-06 11:19:54 +11:00
167a57e739
firewall: Allow overriding the TTL
...
In instances where a cluster pod in a local VM needs to access a server
that is sshuttle'd from the host, since the packets arriving at the host
already made a hop, their TTL is 63 and so get ignored by sshuttle.
Allowing an override of the firewall TTL rule allows the packets to go
through.
2021-03-05 08:53:53 +11:00
0e51da519f
Allow comments in configuration file
2021-02-16 07:51:32 +11:00
a22c453d5e
Remove trailing whitespace
2021-02-16 07:51:32 +11:00
f928f94093
Bump pytest from 6.2.1 to 6.2.2
...
Bumps [pytest](https://github.com/pytest-dev/pytest ) from 6.2.1 to 6.2.2.
- [Release notes](https://github.com/pytest-dev/pytest/releases )
- [Changelog](https://github.com/pytest-dev/pytest/blob/master/CHANGELOG.rst )
- [Commits](https://github.com/pytest-dev/pytest/compare/6.2.1...6.2.2 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2021-01-26 18:22:31 +11:00
127cac37ef
--latency-buffer-size now impacts server's buffer.
...
sshuttle has a --latency-buffer-size parameter, but it only changes
the buffer size on the client and not the server. Therefore,
increasing or decreasing the number doesn't make any change in
download performance (like the documentation indicates that it should).
You can test this change by setting up a sshuttle connection and
downloading a large file through sshuttle. With this patch, you should
find that increasing --latency-buffer-size increases the download
speed. Without the patch, the parameter should have little impact on
performance.
2021-01-23 10:01:42 +11:00
d68f57b534
Bump pytest-cov from 2.11.0 to 2.11.1
...
Bumps [pytest-cov](https://github.com/pytest-dev/pytest-cov ) from 2.11.0 to 2.11.1.
- [Release notes](https://github.com/pytest-dev/pytest-cov/releases )
- [Changelog](https://github.com/pytest-dev/pytest-cov/blob/master/CHANGELOG.rst )
- [Commits](https://github.com/pytest-dev/pytest-cov/compare/v2.11.0...v2.11.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2021-01-22 08:45:52 +11:00
0933684d0f
Bump pytest-cov from 2.10.1 to 2.11.0
...
Bumps [pytest-cov](https://github.com/pytest-dev/pytest-cov ) from 2.10.1 to 2.11.0.
- [Release notes](https://github.com/pytest-dev/pytest-cov/releases )
- [Changelog](https://github.com/pytest-dev/pytest-cov/blob/master/CHANGELOG.rst )
- [Commits](https://github.com/pytest-dev/pytest-cov/compare/v2.10.1...v2.11.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2021-01-19 20:35:20 +11:00
bf7b4a6c34
chore: remove attrs from requirements-test.txt
...
It used to be necessary to fix the version of attrs when using pytest. This problem has been fixed now, so I removed it.
https://stackoverflow.com/a/58198754
2021-01-19 09:14:03 +11:00
65d437a9f8
feat: remove mock from test dependencies.
...
Because mock can be replace by unittest.mock
2021-01-17 15:42:55 +11:00
254b8e7987
remove py35 from tox.ini
...
Because the supported version is python3.6 and above.
2021-01-17 15:42:24 +11:00