dependabot[bot]
5ce4e8c409
build(deps): bump astral-sh/setup-uv from 5 to 6
...
Bumps [astral-sh/setup-uv](https://github.com/astral-sh/setup-uv ) from 5 to 6.
- [Release notes](https://github.com/astral-sh/setup-uv/releases )
- [Commits](https://github.com/astral-sh/setup-uv/compare/v5...v6 )
---
updated-dependencies:
- dependency-name: astral-sh/setup-uv
dependency-version: '6'
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-04-26 06:59:25 +10:00
Vighnesh Pathrikar
934fac9d6c
fix: Updates sudoers config according to executable
...
- Sudoers config has not been working since the firewall command was updated in 32fceefa.
- This is to update the command for sudoers to keep it similar to what the client executes.
2025-04-05 07:47:57 +11:00
Brian May
e2624f533f
chore(master): release 1.3.1
2025-03-26 07:32:24 +11:00
satarsa
375810a9a8
fix: Restore "nft" method
...
Accidentally removed in refactoring (commit 900acc3).
Closes #1037 .
Co-authored-by: Vadim Dyadkin <dyadkin@3lp.cx>
2025-03-26 07:26:38 +11:00
Brian May
5942376090
fix: add pycodestyle config
2025-03-25 12:37:32 +11:00
Brian May
ae3c022d1d
fix: add python lint tools
2025-03-25 12:15:09 +11:00
Brian May
63f94aa6ec
build: fix readthedocs build version number
2025-03-12 08:56:43 +11:00
Brian May
7b662536ba
fix: correct bad version number at runtime
2025-03-12 08:45:22 +11:00
Brian May
cf867248c2
ci: attempt to use dependabot beta support for uv (2)
...
I can read the instructions. Really!
2025-03-04 07:48:03 +11:00
Brian May
454262829c
ci: attempt to use dependabot beta support for uv
...
See https://github.com/dependabot/dependabot-core/issues/10478#issuecomment-2691330949
2025-03-03 09:00:56 +11:00
Brian May
684417d363
build: convert from poetry to uv
2025-03-03 09:00:56 +11:00
Brian May
0b7440e65c
build: convert from poetry to uv
2025-03-03 08:38:35 +11:00
Brian May
12138e2b8d
build: split build and upload into 2 jobs
2025-03-02 17:18:19 +11:00
Brian May
7991e3d9a2
build: fix pypi upload getting skipped
2025-02-24 08:16:44 +11:00
Brian May
99c4abce81
chore(master): release 1.3.0
2025-02-24 07:54:01 +11:00
Brian May
a2d405a6a7
docs: update installation instructions
...
* Update pip installation instructions to work
without setup.py.
* Remove duplication of installation instructions
in two places.
2025-02-23 20:38:07 +11:00
Christian Schlotter
7fa927ef8c
fix: support ':' sign in password
2025-02-22 08:23:36 +11:00
dependabot[bot]
a1dd6859b0
build(deps-dev): bump flake8 from 7.1.1 to 7.1.2
...
Bumps [flake8](https://github.com/pycqa/flake8 ) from 7.1.1 to 7.1.2.
- [Commits](https://github.com/pycqa/flake8/compare/7.1.1...7.1.2 )
---
updated-dependencies:
- dependency-name: flake8
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-02-18 08:11:24 +11:00
jraylan
8a123d9762
feat: switch to a network namespace on Linux
...
* Add support to run inside Linux namespace
**Motivation:**
In a specific use case, we use sshuttle to provide access to private
networks from multiple sites to a specific host. The sites may contain
networks that overlap each other, so each site is accessed inside a
different namespace that provides process-level network isolation and
prevents network overlap.
**Objective:**
This commit just adds a convenient way of spawning multiple sshuttle
instances inside different namespaces from a single process, by passing
the namespace's name though the variable --namespace. The result is the
same as calling `ip netns exec $NAMESPACE sshuttle ...`
* Add the argument --namespace-pid
The argument '--namespace-pid' allows sshuttle to attach to the same net
namespace used by a running process.
* PEP-8 compliance
* Add comment
* Make --namespace and --namespace-pid mutually exclusive.
* Prevent UnicodeDecodeError parsing iptables rule with comments
If one or more iptables rule contains a comment with a non-unicode character, an UnicodeDecodeError would be raised.
2025-02-09 08:48:55 +11:00
jraylan
cbe3d1e402
fix: prevent UnicodeDecodeError parsing iptables rule with comments
...
If one or more iptables rule contains a comment with a non-unicode character, an UnicodeDecodeError would be raised.
2025-02-09 08:45:25 +11:00
Brian May
340ccc705e
docs: replace nix-env with nix-shell
2025-02-08 10:02:31 +11:00
Brian May
1f5e6cea70
fix: remove temp build hack
2025-02-08 09:59:46 +11:00
Brian May
fd6b6bb71f
build: redo publish to pypi
2025-02-08 09:58:09 +11:00
Brian May
5b08caaeb1
build: hack force publish pypi
2025-02-08 09:25:06 +11:00
Brian May
40f6c1d4f2
build: don't skip pypi release
2025-02-08 09:23:33 +11:00
Brian May
c09e2985f2
chore(master): release 1.2.0
2025-02-08 09:21:02 +11:00
Brian May
7725f93d94
build: release to prod pypi
2025-02-08 09:18:45 +11:00
Brian May
75faa9b9e8
build: remove setup.py
2025-02-08 09:16:15 +11:00
Brian May
d910b64be7
feat: Add release-please to build workflow
2025-02-08 08:34:58 +11:00
dependabot[bot]
3f0f88eb09
build(deps): bump abatilo/actions-poetry from 3 to 4
...
Bumps [abatilo/actions-poetry](https://github.com/abatilo/actions-poetry ) from 3 to 4.
- [Release notes](https://github.com/abatilo/actions-poetry/releases )
- [Changelog](https://github.com/abatilo/actions-poetry/blob/master/.releaserc )
- [Commits](https://github.com/abatilo/actions-poetry/compare/v3...v4 )
---
updated-dependencies:
- dependency-name: abatilo/actions-poetry
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-02-07 07:24:08 +11:00
dependabot[bot]
f7f9a4dbc6
build(deps): bump actions/cache from 3 to 4
...
Bumps [actions/cache](https://github.com/actions/cache ) from 3 to 4.
- [Release notes](https://github.com/actions/cache/releases )
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md )
- [Commits](https://github.com/actions/cache/compare/v3...v4 )
---
updated-dependencies:
- dependency-name: actions/cache
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-02-07 07:23:55 +11:00
Brian May
bf294643e2
fix: use Python >= 3.10 for docs
2025-02-06 19:11:50 +11:00
Brian May
693ee40c48
fix: ensure poetry works for Python 3.9
2025-02-06 18:57:16 +11:00
Brian May
a0d94367f6
Back out "Bump sphinx from 7.1.2 to 8.1.3"
...
This backs out commit ac4313decaebd990e535a417d008566213e4516f.
2025-02-06 18:55:48 +11:00
dependabot[bot]
ac4313deca
Bump sphinx from 7.1.2 to 8.1.3
...
Bumps [sphinx](https://github.com/sphinx-doc/sphinx ) from 7.1.2 to 8.1.3.
- [Release notes](https://github.com/sphinx-doc/sphinx/releases )
- [Changelog](https://github.com/sphinx-doc/sphinx/blob/master/CHANGES.rst )
- [Commits](https://github.com/sphinx-doc/sphinx/compare/v7.1.2...v8.1.3 )
---
updated-dependencies:
- dependency-name: sphinx
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-02-06 17:42:29 +11:00
Brian May
9bcedf1904
fix: replace requirements.txt files with poetry (4)
2025-02-06 16:48:22 +11:00
Brian May
62da70510e
fix: replace requirements.txt files with poetry (3)
2025-02-06 16:05:55 +11:00
Brian May
d08f78a2d9
fix: replace requirements.txt files with poetry (2)
2025-02-06 16:03:58 +11:00
Brian May
85dc3199a3
fix: replace requirements.txt files with poetry
2025-02-06 15:57:36 +11:00
dependabot[bot]
6f12698209
Bump pytest-cov from 5.0.0 to 6.0.0
...
Bumps [pytest-cov](https://github.com/pytest-dev/pytest-cov ) from 5.0.0 to 6.0.0.
- [Changelog](https://github.com/pytest-dev/pytest-cov/blob/master/CHANGELOG.rst )
- [Commits](https://github.com/pytest-dev/pytest-cov/compare/v5.0.0...v6.0.0 )
---
updated-dependencies:
- dependency-name: pytest-cov
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-02-06 09:17:17 +11:00
Brian May
4b6f7c6a65
fix: fix broken workflow_dispatch CI rule
2025-02-06 09:11:21 +11:00
Brian May
a3396a443d
fix: Add support for Python 3.11 and Python 3.11
2025-02-06 09:09:50 +11:00
Brian May
339b5221bc
fix: Remove more references to legacy Python versions
2025-02-06 09:08:45 +11:00
Brian May
1084c0f245
fix: drop Python 3.8 support
...
Python 3.8 support has been dropped upstream.
2025-02-06 09:02:11 +11:00
Brian May
cda60a5233
fix: update nix flake to fix problems
2025-02-06 08:52:31 +11:00
dependabot[bot]
b346e976eb
Bump twine from 6.0.1 to 6.1.0
...
Bumps [twine](https://github.com/pypa/twine ) from 6.0.1 to 6.1.0.
- [Release notes](https://github.com/pypa/twine/releases )
- [Changelog](https://github.com/pypa/twine/blob/main/docs/changelog.rst )
- [Commits](https://github.com/pypa/twine/compare/6.0.1...6.1.0 )
---
updated-dependencies:
- dependency-name: twine
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-01-23 07:54:18 +11:00
dependabot[bot]
7c2b3cd30e
Bump pytest from 8.3.3 to 8.3.4
...
Bumps [pytest](https://github.com/pytest-dev/pytest ) from 8.3.3 to 8.3.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/8.3.3...8.3.4 )
---
updated-dependencies:
- dependency-name: pytest
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-12-04 07:16:31 +11:00
dependabot[bot]
012fbcb587
Bump twine from 5.1.1 to 6.0.1
...
Bumps [twine](https://github.com/pypa/twine ) from 5.1.1 to 6.0.1.
- [Release notes](https://github.com/pypa/twine/releases )
- [Changelog](https://github.com/pypa/twine/blob/main/docs/changelog.rst )
- [Commits](https://github.com/pypa/twine/compare/v5.1.1...6.0.1 )
---
updated-dependencies:
- dependency-name: twine
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-12-03 15:17:45 +11:00
dependabot[bot]
4a1fe0fefe
Bump pytest from 8.3.3 to 8.3.4
...
Bumps [pytest](https://github.com/pytest-dev/pytest ) from 8.3.3 to 8.3.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/8.3.3...8.3.4 )
---
updated-dependencies:
- dependency-name: pytest
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-12-03 15:17:33 +11:00
dependabot[bot]
6abda35fce
Bump pytest-cov from 5.0.0 to 6.0.0
...
Bumps [pytest-cov](https://github.com/pytest-dev/pytest-cov ) from 5.0.0 to 6.0.0.
- [Changelog](https://github.com/pytest-dev/pytest-cov/blob/master/CHANGELOG.rst )
- [Commits](https://github.com/pytest-dev/pytest-cov/compare/v5.0.0...v6.0.0 )
---
updated-dependencies:
- dependency-name: pytest-cov
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-10-31 07:48:56 +11:00
dependabot[bot]
2f3171670c
Bump pytest from 8.3.2 to 8.3.3
...
Bumps [pytest](https://github.com/pytest-dev/pytest ) from 8.3.2 to 8.3.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/8.3.2...8.3.3 )
---
updated-dependencies:
- dependency-name: pytest
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-09-13 08:39:35 +10:00
dependabot[bot]
304aaa5e46
Bump cryptography from 42.0.3 to 43.0.1
...
Bumps [cryptography](https://github.com/pyca/cryptography ) from 42.0.3 to 43.0.1.
- [Changelog](https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst )
- [Commits](https://github.com/pyca/cryptography/compare/42.0.3...43.0.1 )
---
updated-dependencies:
- dependency-name: cryptography
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-09-12 08:17:09 +10:00
dependabot[bot]
f05d6531f2
Bump pytest from 8.3.2 to 8.3.3
...
Bumps [pytest](https://github.com/pytest-dev/pytest ) from 8.3.2 to 8.3.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/8.3.2...8.3.3 )
---
updated-dependencies:
- dependency-name: pytest
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-09-12 08:16:55 +10:00
Brian May
e6074ed52d
Revert "Suppress error P is not recognized as an internal or external command,operable program or batch file."
...
This reverts commit 6272a0212ccb14b1b32d974e0008cd9e49d526de.
2024-08-20 16:32:50 +10:00
Brian May
ac36a8a20e
Revert "add next error log"
...
This reverts commit dc2287ccf851b27ca556ebccbf3fb241d81faf99.
2024-08-20 16:32:50 +10:00
Brian May
09c3324978
Revert "restore single quote then it looks working"
...
This reverts commit d1dbed04a0e886945c6391c7ba6a2abee6336fa4.
2024-08-20 16:32:50 +10:00
Brian May
81532b29a9
Revert "remove unnecessary log file"
...
This reverts commit eaf55ed2960234b44df02135b2bb381a8c59e66e.
2024-08-20 16:32:50 +10:00
o2
eaf55ed296
remove unnecessary log file
2024-08-16 08:46:04 +10:00
o2
d1dbed04a0
restore single quote then it looks working
2024-08-16 08:46:04 +10:00
o2
dc2287ccf8
add next error log
2024-08-16 08:46:04 +10:00
o2
6272a0212c
Suppress error P is not recognized as an internal or external command,operable program or batch file.
2024-08-16 08:46:04 +10:00
nicole trinity
8364fd96e8
remove unused imports
2024-08-08 10:35:47 +10:00
Nico T
8da94c39ea
transfer work from PR #837
2024-08-08 10:35:47 +10:00
dependabot[bot]
60ee5b910b
Bump flake8 from 7.1.0 to 7.1.1
...
Bumps [flake8](https://github.com/pycqa/flake8 ) from 7.1.0 to 7.1.1.
- [Commits](https://github.com/pycqa/flake8/compare/7.1.0...7.1.1 )
---
updated-dependencies:
- dependency-name: flake8
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-08-07 09:10:42 +10:00
dependabot[bot]
b9e7a80715
Bump furo from 2024.7.18 to 2024.8.6
...
Bumps [furo](https://github.com/pradyunsg/furo ) from 2024.7.18 to 2024.8.6.
- [Release notes](https://github.com/pradyunsg/furo/releases )
- [Changelog](https://github.com/pradyunsg/furo/blob/main/docs/changelog.md )
- [Commits](https://github.com/pradyunsg/furo/compare/2024.07.18...2024.08.06 )
---
updated-dependencies:
- dependency-name: furo
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-08-07 09:10:25 +10:00
nom3ad
bac2a6b0c7
windows: add --remote-shell option to select cmd/powershell
2024-08-06 08:38:24 +10:00
nom3ad
dff6950c4c
windows: update docs
2024-08-06 08:38:24 +10:00
nom3ad
df9625bbfd
windows: ignore netstat output encoding errors
2024-08-06 08:38:24 +10:00
nom3ad
554b8e3ae5
windows: improve ssnet/try_connect() logic
2024-08-06 08:38:24 +10:00
nom3ad
b826ae6b91
windows: support automatic nameserver detection for --dns option
2024-08-06 08:38:24 +10:00
nom3ad
51287dc4db
support server on Windows
2024-08-06 08:38:24 +10:00
nom3ad
ace8642950
add SocketRWShim helper
2024-08-06 08:38:24 +10:00
nom3ad
c4255a23f0
update exec-sshuttle script
2024-08-06 08:38:24 +10:00
nom3ad
6b8e402367
make sure that existing python2 compatibility is not broken by this feature
2024-08-06 08:38:24 +10:00
nom3ad
7a92183f59
windows: better connection tracker
2024-08-06 08:38:24 +10:00
nom3ad
81a598a4cc
suppport --auto-hosts in Windows
2024-08-06 08:38:24 +10:00
nom3ad
89a94ff150
support port ranges and exclude subnets
2024-08-06 08:38:24 +10:00
nom3ad
72060abbef
code cleanup and small refactoring
2024-08-06 08:38:24 +10:00
nom3ad
de8a19ce69
rename hacks to scripts
2024-08-06 08:38:24 +10:00
nom3ad
32fceefa76
!fix: windows installed script execution
2024-08-06 08:38:24 +10:00
nom3ad
b0799f8752
Fix benchmarking script to use correct node parameter
2024-08-06 08:38:24 +10:00
nom3ad
cd2d69ac08
Bump version to 1.2.0
2024-08-06 08:38:24 +10:00
nom3ad
1885974f52
refactor for future ipv6 support
2024-08-06 08:38:24 +10:00
nom3ad
dadfba488b
better windivert filters
2024-08-06 08:38:24 +10:00
nom3ad
8fa15c3ca8
support windivert > 2.0
2024-08-06 08:38:24 +10:00
nom3ad
e19fc01324
!improved windrivert throughput
2024-08-06 08:38:24 +10:00
nom3ad
371258991f
Update exec-sshuttle script and related files
2024-08-06 08:38:24 +10:00
nom3ad
db9ec36fac
better test-bed scripts
2024-08-06 08:38:24 +10:00
nom3ad
d4d0fa945d
fix: bad file descriptor error in windows, fix pytest errors
2024-08-06 08:38:24 +10:00
nom3ad
4a84ad3be6
fix windows CRLF issue on stdin/stdout
2024-08-06 08:38:24 +10:00
nom3ad
900acc3ac7
refactoring to make it better structured
2024-08-06 08:38:24 +10:00
nom3ad
49f46cd528
Add containers based testbed setup
2024-08-06 08:38:24 +10:00
nom3ad
7b8f140870
ensure non loopback address for windivert method
2024-08-06 08:38:24 +10:00
nom3ad
9c5517fd25
use custom RWPair instead of io.BufferedRWPair
2024-08-06 08:38:24 +10:00
nom3ad
3f34e27a2c
try not use socket share
2024-08-06 08:38:24 +10:00
nom3ad
2f88fc93cf
add some comments
2024-08-06 08:38:24 +10:00
nom3ad
0c4c061123
fix failing tests
2024-08-06 08:38:24 +10:00
nom3ad
482e0cbd00
pass flake8 linting
2024-08-06 08:38:24 +10:00
nom3ad
7da3b024dd
fix is_admin_user() helper
2024-08-06 08:38:24 +10:00
nom3ad
b09cc4595b
add pydivert as windows specific dependency
2024-08-06 08:38:24 +10:00
nom3ad
c01794f232
windivert: garbage collect timed put connections from tracker
2024-08-06 08:38:24 +10:00
nom3ad
338486930f
windivert: add ipv6 support and better thread handling
2024-08-06 08:38:24 +10:00
nom3ad
bd2f960743
more improvements windows support
2024-08-06 08:38:24 +10:00
nom3ad
2c74476124
windivert - basic working connection tracker
2024-08-06 08:38:24 +10:00
nom3ad
5a64c81b5b
experimental windows method
2024-08-06 08:38:24 +10:00
dependabot[bot]
2408563f3b
Bump flake8 from 7.1.0 to 7.1.1
...
Bumps [flake8](https://github.com/pycqa/flake8 ) from 7.1.0 to 7.1.1.
- [Commits](https://github.com/pycqa/flake8/compare/7.1.0...7.1.1 )
---
updated-dependencies:
- dependency-name: flake8
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-08-06 08:36:18 +10:00
dependabot[bot]
834ac02a5d
Bump pytest from 8.3.1 to 8.3.2
...
Bumps [pytest](https://github.com/pytest-dev/pytest ) from 8.3.1 to 8.3.2.
- [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/8.3.1...8.3.2 )
---
updated-dependencies:
- dependency-name: pytest
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-07-27 08:35:10 +10:00
dependabot[bot]
bd3164db22
Bump pytest from 8.3.1 to 8.3.2
...
Bumps [pytest](https://github.com/pytest-dev/pytest ) from 8.3.1 to 8.3.2.
- [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/8.3.1...8.3.2 )
---
updated-dependencies:
- dependency-name: pytest
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-07-26 08:44:19 +10:00
dependabot[bot]
037ee9025e
Bump pytest from 8.2.2 to 8.3.1
...
Bumps [pytest](https://github.com/pytest-dev/pytest ) from 8.2.2 to 8.3.1.
- [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/8.2.2...8.3.1 )
---
updated-dependencies:
- dependency-name: pytest
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-07-25 07:44:51 +10:00
dependabot[bot]
bf2db72393
Bump pytest from 8.2.2 to 8.3.1
...
Bumps [pytest](https://github.com/pytest-dev/pytest ) from 8.2.2 to 8.3.1.
- [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/8.2.2...8.3.1 )
---
updated-dependencies:
- dependency-name: pytest
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-07-24 19:52:22 +10:00
dependabot[bot]
f10535edf4
Bump furo from 2024.5.6 to 2024.7.18
...
Bumps [furo](https://github.com/pradyunsg/furo ) from 2024.5.6 to 2024.7.18.
- [Release notes](https://github.com/pradyunsg/furo/releases )
- [Changelog](https://github.com/pradyunsg/furo/blob/main/docs/changelog.md )
- [Commits](https://github.com/pradyunsg/furo/compare/2024.05.06...2024.07.18 )
---
updated-dependencies:
- dependency-name: furo
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-07-24 19:45:38 +10:00
Antoine Jacoutot
fd63611b5a
Fix pf_rule size in OpenBSD.
2024-07-12 09:52:57 +10:00
Antoine Jacoutot
9c3107bed7
Unbreak OpenBSD runtime.
...
sizeof(struct pfioc_rule) changed in recent OpenBSD releases.
This fixes the ioctl call to DIOCCHANGERULE.
2024-07-12 09:52:57 +10:00
dependabot[bot]
fdcc840b7b
Bump zipp from 3.17.0 to 3.19.1
...
Bumps [zipp](https://github.com/jaraco/zipp ) from 3.17.0 to 3.19.1.
- [Release notes](https://github.com/jaraco/zipp/releases )
- [Changelog](https://github.com/jaraco/zipp/blob/main/NEWS.rst )
- [Commits](https://github.com/jaraco/zipp/compare/v3.17.0...v3.19.1 )
---
updated-dependencies:
- dependency-name: zipp
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-07-10 15:25:02 +10:00
Samir Aguiar
348f0eb653
Add support for non-compliant ssh wrappers
...
ssh wrappers like teleport's tsh do not correctly interpret the
double dash as an argument delimiter and will not work properly
with sshuttle. This PR adds a new command line switch to handle
these cases by not adding the delimiter.
Fixes #599
2024-07-07 13:28:26 +10:00
dependabot[bot]
6cdae8c3e5
Bump certifi from 2024.2.2 to 2024.7.4
...
Bumps [certifi](https://github.com/certifi/python-certifi ) from 2024.2.2 to 2024.7.4.
- [Commits](https://github.com/certifi/python-certifi/compare/2024.02.02...2024.07.04 )
---
updated-dependencies:
- dependency-name: certifi
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-07-07 13:27:24 +10:00
dependabot[bot]
bdf2797b74
Bump twine from 5.1.0 to 5.1.1
...
Bumps [twine](https://github.com/pypa/twine ) from 5.1.0 to 5.1.1.
- [Release notes](https://github.com/pypa/twine/releases )
- [Changelog](https://github.com/pypa/twine/blob/main/docs/changelog.rst )
- [Commits](https://github.com/pypa/twine/compare/5.1.0...v5.1.1 )
---
updated-dependencies:
- dependency-name: twine
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-06-28 09:25:28 +10:00
dependabot[bot]
cc38cc2def
Bump flake8 from 7.0.0 to 7.1.0
...
Bumps [flake8](https://github.com/pycqa/flake8 ) from 7.0.0 to 7.1.0.
- [Commits](https://github.com/pycqa/flake8/compare/7.0.0...7.1.0 )
---
updated-dependencies:
- dependency-name: flake8
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-06-19 09:50:04 +10:00
dependabot[bot]
4ccf528664
Bump urllib3 from 2.2.1 to 2.2.2
...
Bumps [urllib3](https://github.com/urllib3/urllib3 ) from 2.2.1 to 2.2.2.
- [Release notes](https://github.com/urllib3/urllib3/releases )
- [Changelog](https://github.com/urllib3/urllib3/blob/main/CHANGES.rst )
- [Commits](https://github.com/urllib3/urllib3/compare/2.2.1...2.2.2 )
---
updated-dependencies:
- dependency-name: urllib3
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-06-18 09:34:15 +10:00
dependabot[bot]
83c136d6e6
Bump flake8 from 7.0.0 to 7.1.0
...
Bumps [flake8](https://github.com/pycqa/flake8 ) from 7.0.0 to 7.1.0.
- [Commits](https://github.com/pycqa/flake8/compare/7.0.0...7.1.0 )
---
updated-dependencies:
- dependency-name: flake8
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-06-18 09:33:53 +10:00
dependabot[bot]
efbc4d066f
Bump pytest from 8.2.1 to 8.2.2
...
Bumps [pytest](https://github.com/pytest-dev/pytest ) from 8.2.1 to 8.2.2.
- [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/8.2.1...8.2.2 )
---
updated-dependencies:
- dependency-name: pytest
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-06-07 08:49:18 +10:00
dependabot[bot]
a0f466a07c
Bump pytest from 8.2.1 to 8.2.2
...
Bumps [pytest](https://github.com/pytest-dev/pytest ) from 8.2.1 to 8.2.2.
- [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/8.2.1...8.2.2 )
---
updated-dependencies:
- dependency-name: pytest
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-06-06 10:42:41 +10:00
dependabot[bot]
d660d8159b
---
...
updated-dependencies:
- dependency-name: requests
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-05-22 20:43:42 +10:00
dependabot[bot]
8d5e23477e
---
...
updated-dependencies:
- dependency-name: pytest
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-05-22 20:43:28 +10:00
dependabot[bot]
a91e0c0470
Bump pytest from 8.2.0 to 8.2.1
...
Bumps [pytest](https://github.com/pytest-dev/pytest ) from 8.2.0 to 8.2.1.
- [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/8.2.0...8.2.1 )
---
updated-dependencies:
- dependency-name: pytest
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-05-21 16:00:12 +10:00
dependabot[bot]
c0938bc9a5
Bump twine from 5.0.0 to 5.1.0
...
Bumps [twine](https://github.com/pypa/twine ) from 5.0.0 to 5.1.0.
- [Release notes](https://github.com/pypa/twine/releases )
- [Changelog](https://github.com/pypa/twine/blob/main/docs/changelog.rst )
- [Commits](https://github.com/pypa/twine/compare/5.0.0...5.1.0 )
---
updated-dependencies:
- dependency-name: twine
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-05-18 09:35:51 +10:00
dependabot[bot]
975d208d60
Bump furo from 2024.4.27 to 2024.5.6
...
Bumps [furo](https://github.com/pradyunsg/furo ) from 2024.4.27 to 2024.5.6.
- [Release notes](https://github.com/pradyunsg/furo/releases )
- [Changelog](https://github.com/pradyunsg/furo/blob/main/docs/changelog.md )
- [Commits](https://github.com/pradyunsg/furo/compare/2024.04.27...2024.05.06 )
---
updated-dependencies:
- dependency-name: furo
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-05-08 09:03:54 +10:00
dependabot[bot]
39a7b1b47f
Bump pytest from 8.1.1 to 8.2.0
...
Bumps [pytest](https://github.com/pytest-dev/pytest ) from 8.1.1 to 8.2.0.
- [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/8.1.1...8.2.0 )
---
updated-dependencies:
- dependency-name: pytest
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-05-01 11:55:12 +10:00
dependabot[bot]
4ba7612d90
Bump furo from 2024.1.29 to 2024.4.27
...
Bumps [furo](https://github.com/pradyunsg/furo ) from 2024.1.29 to 2024.4.27.
- [Release notes](https://github.com/pradyunsg/furo/releases )
- [Changelog](https://github.com/pradyunsg/furo/blob/main/docs/changelog.md )
- [Commits](https://github.com/pradyunsg/furo/compare/2024.01.29...2024.04.27 )
---
updated-dependencies:
- dependency-name: furo
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-04-30 08:47:03 +10:00
dependabot[bot]
ea0559eaea
Bump pytest from 8.1.1 to 8.2.0
...
Bumps [pytest](https://github.com/pytest-dev/pytest ) from 8.1.1 to 8.2.0.
- [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/8.1.1...8.2.0 )
---
updated-dependencies:
- dependency-name: pytest
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-04-30 08:46:52 +10:00
dependabot[bot]
6bd3bd738a
Bump idna from 3.6 to 3.7
...
Bumps [idna](https://github.com/kjd/idna ) from 3.6 to 3.7.
- [Release notes](https://github.com/kjd/idna/releases )
- [Changelog](https://github.com/kjd/idna/blob/master/HISTORY.rst )
- [Commits](https://github.com/kjd/idna/compare/v3.6...v3.7 )
---
updated-dependencies:
- dependency-name: idna
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-04-12 14:53:36 +10:00
Brian May
116b1e22b1
Revert "Bump cryptography from 42.0.3 to 42.0.4"
...
This reverts commit 87bd34e09422b9dba70b83d20ff721f75481e8c2.
Fixes #939
This was to be fixed in
https://github.com/nix-community/poetry2nix/pull/1538 , but merging that
is taking longer then I might have hoped.
2024-04-08 09:03:21 +10:00
dependabot[bot]
694a9c8a5b
Bump pytest-cov from 4.1.0 to 5.0.0
...
Bumps [pytest-cov](https://github.com/pytest-dev/pytest-cov ) from 4.1.0 to 5.0.0.
- [Changelog](https://github.com/pytest-dev/pytest-cov/blob/master/CHANGELOG.rst )
- [Commits](https://github.com/pytest-dev/pytest-cov/compare/v4.1.0...v5.0.0 )
---
updated-dependencies:
- dependency-name: pytest-cov
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-03-27 09:05:30 +11:00
dependabot[bot]
264e4d94b8
Bump pytest-cov from 4.1.0 to 5.0.0
...
Bumps [pytest-cov](https://github.com/pytest-dev/pytest-cov ) from 4.1.0 to 5.0.0.
- [Changelog](https://github.com/pytest-dev/pytest-cov/blob/master/CHANGELOG.rst )
- [Commits](https://github.com/pytest-dev/pytest-cov/compare/v4.1.0...v5.0.0 )
---
updated-dependencies:
- dependency-name: pytest-cov
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-03-26 11:52:00 +11:00
dependabot[bot]
afbdf8b606
Bump pytest from 8.0.2 to 8.1.1
...
Bumps [pytest](https://github.com/pytest-dev/pytest ) from 8.0.2 to 8.1.1.
- [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/8.0.2...8.1.1 )
---
updated-dependencies:
- dependency-name: pytest
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-03-13 09:26:29 +11:00
dependabot[bot]
9a4df1fdcf
Bump pytest from 8.0.2 to 8.1.1
...
Bumps [pytest](https://github.com/pytest-dev/pytest ) from 8.0.2 to 8.1.1.
- [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/8.0.2...8.1.1 )
---
updated-dependencies:
- dependency-name: pytest
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-03-12 09:49:32 +11:00
dependabot[bot]
3d875b8ca8
Bump pytest from 8.0.2 to 8.1.0
...
Bumps [pytest](https://github.com/pytest-dev/pytest ) from 8.0.2 to 8.1.0.
- [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/8.0.2...8.1.0 )
---
updated-dependencies:
- dependency-name: pytest
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-03-05 09:18:21 +11:00
dependabot[bot]
313ada3ff7
Bump pytest from 8.0.1 to 8.0.2
...
Bumps [pytest](https://github.com/pytest-dev/pytest ) from 8.0.1 to 8.0.2.
- [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/8.0.1...8.0.2 )
---
updated-dependencies:
- dependency-name: pytest
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-02-28 09:11:53 +11:00
dependabot[bot]
934618b603
Bump pytest from 8.0.1 to 8.0.2
...
Bumps [pytest](https://github.com/pytest-dev/pytest ) from 8.0.1 to 8.0.2.
- [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/8.0.1...8.0.2 )
---
updated-dependencies:
- dependency-name: pytest
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-02-27 08:52:55 +11:00
dependabot[bot]
87bd34e094
Bump cryptography from 42.0.3 to 42.0.4
...
Bumps [cryptography](https://github.com/pyca/cryptography ) from 42.0.3 to 42.0.4.
- [Changelog](https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst )
- [Commits](https://github.com/pyca/cryptography/compare/42.0.3...42.0.4 )
---
updated-dependencies:
- dependency-name: cryptography
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-02-22 15:22:26 +11:00
dependabot[bot]
83debdfb21
Bump pytest from 8.0.0 to 8.0.1
...
Bumps [pytest](https://github.com/pytest-dev/pytest ) from 8.0.0 to 8.0.1.
- [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/8.0.0...8.0.1 )
---
updated-dependencies:
- dependency-name: pytest
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-02-20 08:56:07 +11:00
Brian May
fd424c5c55
Bump version: 1.1.1 → 1.1.2
2024-02-19 11:21:39 +11:00
Brian May
e6563f2c39
Add twine to poetry packages
2024-02-19 11:21:31 +11:00
Brian May
dd037dd8ef
Add experimental peotry and nix flake stuff
2024-02-19 11:21:31 +11:00
Pouria Mousavizadeh Tehrani
89bd3fc2f3
Update FreeBSD Installation README.rst
2024-01-31 19:28:53 +11:00
Christian Clauss
5c479220a7
Update usage.rst
2024-01-31 19:28:21 +11:00
Christian Clauss
32d0054455
Fix typos discovered by codespell
...
https://pypi.org/project/codespell
2024-01-31 19:28:21 +11:00
Christian Clauss
b2a29d3b22
Allow flake8 to determine the version of pyflakes
2024-01-31 19:27:58 +11:00
dependabot[bot]
9b831499d7
Bump furo from 2023.9.10 to 2024.1.29
...
Bumps [furo](https://github.com/pradyunsg/furo ) from 2023.9.10 to 2024.1.29.
- [Release notes](https://github.com/pradyunsg/furo/releases )
- [Changelog](https://github.com/pradyunsg/furo/blob/main/docs/changelog.md )
- [Commits](https://github.com/pradyunsg/furo/compare/2023.09.10...2024.01.29 )
---
updated-dependencies:
- dependency-name: furo
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-01-31 19:27:14 +11:00
Benjamin Barthe
e4ae714cf8
fixing a tiny typo
2024-01-31 14:35:02 +11:00
dependabot[bot]
152c14c079
Bump pytest from 7.4.4 to 8.0.0
...
Bumps [pytest](https://github.com/pytest-dev/pytest ) from 7.4.4 to 8.0.0.
- [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/7.4.4...8.0.0 )
---
updated-dependencies:
- dependency-name: pytest
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-01-31 14:26:54 +11:00
Scott Kuhl
a604d107ef
Keep terminal in a sane state when sudo use_pty is used.
...
This fixes #909 and is an alternative to the #922 pull request. When
sudo's use_pty is used with sshuttle, it causes issues with the
terminal. Pull request #712 contains some fixes for this problem.
However, when sshuttle is run with the --daemon option, it left the
user's terminal in a non-sane state. The problem appears to be related
to a socketpair that the firewall uses for communication. By setting
it up slightly differently (see changes to client.py and firewall.py),
the terminal state is no longer disrupted. This commit also changes
line endings of the printed messages from \r\n to \n. This undoes a
change introduced by pull request #712 and is no longer needed.
2024-01-05 19:08:34 +11:00
Scott Kuhl
b4e4680ef4
Workaround when sudo prints text to standard out
...
When we use sudo and start the firewall process, we should be able to
read standard in and find the string "READY". However, some
administrators use a wrapper around sudo to print warning messages
(instead of sudo's lecture feature) to standard out. This commit reads
up to 100 lines looking for "READY" instead of expecting it on the
first line.
I believe this should fix issue #916 .
2024-01-02 09:08:09 +11:00
dependabot[bot]
59b6777f01
Bump pytest from 7.4.3 to 7.4.4
...
Bumps [pytest](https://github.com/pytest-dev/pytest ) from 7.4.3 to 7.4.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/7.4.3...7.4.4 )
---
updated-dependencies:
- dependency-name: pytest
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-01-02 09:06:36 +11:00
dependabot[bot]
ef804e7cdb
Bump github/codeql-action from 2 to 3
...
Bumps [github/codeql-action](https://github.com/github/codeql-action ) from 2 to 3.
- [Release notes](https://github.com/github/codeql-action/releases )
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md )
- [Commits](https://github.com/github/codeql-action/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-12-15 09:17:15 +11:00
dependabot[bot]
67b4499c52
Bump actions/setup-python from 4 to 5
...
Bumps [actions/setup-python](https://github.com/actions/setup-python ) from 4 to 5.
- [Release notes](https://github.com/actions/setup-python/releases )
- [Commits](https://github.com/actions/setup-python/compare/v4...v5 )
---
updated-dependencies:
- dependency-name: actions/setup-python
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-12-08 08:38:47 +11:00
dependabot[bot]
e53c0df411
Bump pytest from 7.4.2 to 7.4.3
...
Bumps [pytest](https://github.com/pytest-dev/pytest ) from 7.4.2 to 7.4.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/7.4.2...7.4.3 )
---
updated-dependencies:
- dependency-name: pytest
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-10-26 08:54:09 +11:00
Jose M Perez
794b14eaac
tproxy: Apply DNS rules first
...
Having --dst-type LOCAL rules before DNS ones forces the usage of a
dnsmasq-like program to retrigger DNS requests directed locally
because they are fast-tracked through the firewall and ignored by
sshuttle.
As dns options documentation state that they capture the requests no
matter the server, and other methods and older versions behave
consistently, change the iptables rules to apply DNS ones first.
2023-10-04 08:11:52 +11:00
dependabot[bot]
670cc363ba
Bump furo from 2023.8.19 to 2023.9.10
...
Bumps [furo](https://github.com/pradyunsg/furo ) from 2023.8.19 to 2023.9.10.
- [Release notes](https://github.com/pradyunsg/furo/releases )
- [Changelog](https://github.com/pradyunsg/furo/blob/main/docs/changelog.md )
- [Commits](https://github.com/pradyunsg/furo/compare/2023.08.19...2023.09.10 )
---
updated-dependencies:
- dependency-name: furo
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-09-11 20:52:43 +10:00
dependabot[bot]
6f70519dc1
Bump pyflakes from 2.5.0 to 3.1.0
...
Bumps [pyflakes](https://github.com/PyCQA/pyflakes ) from 2.5.0 to 3.1.0.
- [Changelog](https://github.com/PyCQA/pyflakes/blob/main/NEWS.rst )
- [Commits](https://github.com/PyCQA/pyflakes/compare/2.5.0...3.1.0 )
---
updated-dependencies:
- dependency-name: pyflakes
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-09-09 12:11:54 +10:00
dependabot[bot]
efb7d1f6cc
Bump flake8 from 5.0.4 to 6.1.0
...
Bumps [flake8](https://github.com/pycqa/flake8 ) from 5.0.4 to 6.1.0.
- [Commits](https://github.com/pycqa/flake8/compare/5.0.4...6.1.0 )
---
updated-dependencies:
- dependency-name: flake8
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-09-09 12:10:57 +10:00
dependabot[bot]
031fb4d053
Bump pytest from 7.4.1 to 7.4.2
...
Bumps [pytest](https://github.com/pytest-dev/pytest ) from 7.4.1 to 7.4.2.
- [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/7.4.1...7.4.2 )
---
updated-dependencies:
- dependency-name: pytest
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-09-09 12:08:29 +10:00
dependabot[bot]
3e80464626
Bump actions/checkout from 3 to 4
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 3 to 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/v3...v4 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-09-06 01:47:00 +00:00
dependabot[bot]
399d389af6
Bump pytest from 7.4.0 to 7.4.1
...
Bumps [pytest](https://github.com/pytest-dev/pytest ) from 7.4.0 to 7.4.1.
- [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/7.4.0...7.4.1 )
---
updated-dependencies:
- dependency-name: pytest
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-09-04 22:20:48 +00:00
dependabot[bot]
c2ddaa0bcf
Bump furo from 2023.8.17 to 2023.8.19
...
Bumps [furo](https://github.com/pradyunsg/furo ) from 2023.8.17 to 2023.8.19.
- [Release notes](https://github.com/pradyunsg/furo/releases )
- [Changelog](https://github.com/pradyunsg/furo/blob/main/docs/changelog.md )
- [Commits](https://github.com/pradyunsg/furo/compare/2023.08.17...2023.08.19 )
---
updated-dependencies:
- dependency-name: furo
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-08-22 13:48:45 +10:00
dependabot[bot]
cec87a5341
Bump furo from 2023.7.26 to 2023.8.17
...
Bumps [furo](https://github.com/pradyunsg/furo ) from 2023.7.26 to 2023.8.17.
- [Release notes](https://github.com/pradyunsg/furo/releases )
- [Changelog](https://github.com/pradyunsg/furo/blob/main/docs/changelog.md )
- [Commits](https://github.com/pradyunsg/furo/compare/2023.07.26...2023.08.17 )
---
updated-dependencies:
- dependency-name: furo
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-08-19 11:57:55 +10:00
Alex Jurkiewicz
0ddebdeee6
Add support for SSHUTTLE_ARGS environment variable
2023-08-09 15:06:05 +10:00
Alexander Naumov
3c3f5de672
sshuttle is also avaliable on OpenBSD
2023-08-08 08:19:46 +10:00
Fata Nugraha
9f718e8632
Fix typo
2023-08-07 20:00:32 +10:00
Fata Nugraha
3abc3d2a1a
Fix lint issues
2023-08-07 20:00:32 +10:00
Fata Nugraha
5b9f438d42
Fix tests
2023-08-07 20:00:32 +10:00
Fata Nugraha
998e5c5849
Fix tests
2023-08-07 20:00:32 +10:00
Fata Nugraha
7c140daf07
Pass group to firewall
2023-08-07 20:00:32 +10:00
Fata Nugraha
755e522eff
Allow user to tunnel traffic to local port
2023-08-07 20:00:32 +10:00
Fata Nugraha
6b7cf80420
Add support for group-based routing
2023-08-07 20:00:32 +10:00
dependabot[bot]
ac06e7968f
Bump sphinx from 7.1.1 to 7.1.2
...
Bumps [sphinx](https://github.com/sphinx-doc/sphinx ) from 7.1.1 to 7.1.2.
- [Release notes](https://github.com/sphinx-doc/sphinx/releases )
- [Changelog](https://github.com/sphinx-doc/sphinx/blob/master/CHANGES )
- [Commits](https://github.com/sphinx-doc/sphinx/compare/v7.1.1...v7.1.2 )
---
updated-dependencies:
- dependency-name: sphinx
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-08-03 08:29:14 +10:00
dependabot[bot]
f597e70ae6
Bump furo from 2023.5.20 to 2023.7.26
...
Bumps [furo](https://github.com/pradyunsg/furo ) from 2023.5.20 to 2023.7.26.
- [Release notes](https://github.com/pradyunsg/furo/releases )
- [Changelog](https://github.com/pradyunsg/furo/blob/main/docs/changelog.md )
- [Commits](https://github.com/pradyunsg/furo/compare/2023.05.20...2023.07.26 )
---
updated-dependencies:
- dependency-name: furo
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-08-01 08:11:14 +10:00
Brian May
802c6f5a6e
Use furo style for docs
...
The default read the docs theme does not work with the latest Sphinx.
2023-07-31 08:18:18 +10:00
dependabot[bot]
17bfdc24b8
Bump sphinx from 6.2.1 to 7.1.1
...
Bumps [sphinx](https://github.com/sphinx-doc/sphinx ) from 6.2.1 to 7.1.1.
- [Release notes](https://github.com/sphinx-doc/sphinx/releases )
- [Changelog](https://github.com/sphinx-doc/sphinx/blob/master/CHANGES )
- [Commits](https://github.com/sphinx-doc/sphinx/compare/v6.2.1...v7.1.1 )
---
updated-dependencies:
- dependency-name: sphinx
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-07-31 08:10:15 +10:00
dependabot[bot]
4e592265f6
Bump pytest from 7.3.2 to 7.4.0
...
Bumps [pytest](https://github.com/pytest-dev/pytest ) from 7.3.2 to 7.4.0.
- [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/7.3.2...7.4.0 )
---
updated-dependencies:
- dependency-name: pytest
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-06-26 11:15:44 +00:00
dependabot[bot]
a289580f24
Bump pytest from 7.3.1 to 7.3.2
...
Bumps [pytest](https://github.com/pytest-dev/pytest ) from 7.3.1 to 7.3.2.
- [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/7.3.1...7.3.2 )
---
updated-dependencies:
- dependency-name: pytest
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-06-12 22:27:29 +00:00
dependabot[bot]
799c9f33d0
Bump pytest-cov from 4.0.0 to 4.1.0
...
Bumps [pytest-cov](https://github.com/pytest-dev/pytest-cov ) from 4.0.0 to 4.1.0.
- [Changelog](https://github.com/pytest-dev/pytest-cov/blob/master/CHANGELOG.rst )
- [Commits](https://github.com/pytest-dev/pytest-cov/compare/v4.0.0...v4.1.0 )
---
updated-dependencies:
- dependency-name: pytest-cov
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-05-25 22:00:02 +00:00
Brian May
5778437148
Revert "Bump sphinx from 6.2.1 to 7.0.0"
...
This reverts commit dffc1c7f929d2a41ef84929318537ef41352ba01.
2023-05-03 10:04:09 +10:00
dependabot[bot]
dffc1c7f92
Bump sphinx from 6.2.1 to 7.0.0
...
Bumps [sphinx](https://github.com/sphinx-doc/sphinx ) from 6.2.1 to 7.0.0.
- [Release notes](https://github.com/sphinx-doc/sphinx/releases )
- [Changelog](https://github.com/sphinx-doc/sphinx/blob/master/CHANGES )
- [Commits](https://github.com/sphinx-doc/sphinx/compare/v6.2.1...v7.0.0 )
---
updated-dependencies:
- dependency-name: sphinx
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-05-02 09:33:10 +10:00
dependabot[bot]
25cd95130d
Bump sphinx from 6.2.0 to 6.2.1
...
Bumps [sphinx](https://github.com/sphinx-doc/sphinx ) from 6.2.0 to 6.2.1.
- [Release notes](https://github.com/sphinx-doc/sphinx/releases )
- [Changelog](https://github.com/sphinx-doc/sphinx/blob/master/CHANGES )
- [Commits](https://github.com/sphinx-doc/sphinx/compare/v6.2.0...v6.2.1 )
---
updated-dependencies:
- dependency-name: sphinx
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-04-27 11:06:41 +10:00
dependabot[bot]
a54fd8ab4e
Bump sphinx from 6.1.3 to 6.2.0
...
Bumps [sphinx](https://github.com/sphinx-doc/sphinx ) from 6.1.3 to 6.2.0.
- [Release notes](https://github.com/sphinx-doc/sphinx/releases )
- [Changelog](https://github.com/sphinx-doc/sphinx/blob/master/CHANGES )
- [Commits](https://github.com/sphinx-doc/sphinx/compare/v6.1.3...v6.2.0 )
---
updated-dependencies:
- dependency-name: sphinx
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-04-24 21:05:51 +10:00
dependabot[bot]
d336002833
Bump pytest from 7.3.0 to 7.3.1
...
Bumps [pytest](https://github.com/pytest-dev/pytest ) from 7.3.0 to 7.3.1.
- [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/7.3.0...7.3.1 )
---
updated-dependencies:
- dependency-name: pytest
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-04-18 13:29:42 +10:00
dependabot[bot]
fd8a0b624d
Bump pytest from 7.2.2 to 7.3.0
...
Bumps [pytest](https://github.com/pytest-dev/pytest ) from 7.2.2 to 7.3.0.
- [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/7.2.2...7.3.0 )
---
updated-dependencies:
- dependency-name: pytest
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-04-10 21:11:21 +10:00
dependabot[bot]
e0ef2964cd
Bump pytest from 7.2.1 to 7.2.2
...
Bumps [pytest](https://github.com/pytest-dev/pytest ) from 7.2.1 to 7.2.2.
- [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/7.2.1...7.2.2 )
---
updated-dependencies:
- dependency-name: pytest
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-03-07 09:07:37 +11:00
dependabot[bot]
faf34e14e0
Bump pytest from 7.2.0 to 7.2.1
...
Bumps [pytest](https://github.com/pytest-dev/pytest ) from 7.2.0 to 7.2.1.
- [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/7.2.0...7.2.1 )
---
updated-dependencies:
- dependency-name: pytest
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-01-17 08:49:37 +11:00
dependabot[bot]
23207f27fa
Bump sphinx from 6.1.2 to 6.1.3
...
Bumps [sphinx](https://github.com/sphinx-doc/sphinx ) from 6.1.2 to 6.1.3.
- [Release notes](https://github.com/sphinx-doc/sphinx/releases )
- [Changelog](https://github.com/sphinx-doc/sphinx/blob/master/CHANGES )
- [Commits](https://github.com/sphinx-doc/sphinx/compare/v6.1.2...v6.1.3 )
---
updated-dependencies:
- dependency-name: sphinx
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-01-11 21:09:13 +11:00
dependabot[bot]
7edc7ba7bc
Bump sphinx from 6.1.1 to 6.1.2
...
Bumps [sphinx](https://github.com/sphinx-doc/sphinx ) from 6.1.1 to 6.1.2.
- [Release notes](https://github.com/sphinx-doc/sphinx/releases )
- [Changelog](https://github.com/sphinx-doc/sphinx/blob/master/CHANGES )
- [Commits](https://github.com/sphinx-doc/sphinx/compare/v6.1.1...v6.1.2 )
---
updated-dependencies:
- dependency-name: sphinx
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-01-11 09:38:37 +11:00
dependabot[bot]
8ba8dff719
Bump sphinx from 6.0.0 to 6.1.1
...
Bumps [sphinx](https://github.com/sphinx-doc/sphinx ) from 6.0.0 to 6.1.1.
- [Release notes](https://github.com/sphinx-doc/sphinx/releases )
- [Changelog](https://github.com/sphinx-doc/sphinx/blob/v6.1.1/CHANGES )
- [Commits](https://github.com/sphinx-doc/sphinx/compare/v6.0.0...v6.1.1 )
---
updated-dependencies:
- dependency-name: sphinx
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-01-07 09:19:07 +11:00
dependabot[bot]
57111d7a13
Bump sphinx from 5.3.0 to 6.0.0
...
Bumps [sphinx](https://github.com/sphinx-doc/sphinx ) from 5.3.0 to 6.0.0.
- [Release notes](https://github.com/sphinx-doc/sphinx/releases )
- [Changelog](https://github.com/sphinx-doc/sphinx/blob/master/CHANGES )
- [Commits](https://github.com/sphinx-doc/sphinx/compare/v5.3.0...v6.0.0 )
---
updated-dependencies:
- dependency-name: sphinx
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-12-31 09:26:55 +11:00
rmchale
f23b24b74e
Update ssyslog.py
2022-12-13 07:43:54 +11:00
dinosaurtirex
b8e6ebf741
Removed a little bit of legacy code
...
Removed a few lines of legacy code (to make it look more clean)
2022-11-28 11:44:41 +11:00
dependabot[bot]
53da036879
Bump pytest from 7.1.3 to 7.2.0
...
Bumps [pytest](https://github.com/pytest-dev/pytest ) from 7.1.3 to 7.2.0.
- [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/7.1.3...7.2.0 )
---
updated-dependencies:
- dependency-name: pytest
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-10-27 08:20:31 +11:00
dependabot[bot]
ad05994e65
Bump sphinx from 5.2.3 to 5.3.0
...
Bumps [sphinx](https://github.com/sphinx-doc/sphinx ) from 5.2.3 to 5.3.0.
- [Release notes](https://github.com/sphinx-doc/sphinx/releases )
- [Changelog](https://github.com/sphinx-doc/sphinx/blob/master/CHANGES )
- [Commits](https://github.com/sphinx-doc/sphinx/compare/v5.2.3...v5.3.0 )
---
updated-dependencies:
- dependency-name: sphinx
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-10-18 07:38:00 +11:00
dependabot[bot]
e704ea74e5
Bump sphinx from 5.2.2 to 5.2.3
...
Bumps [sphinx](https://github.com/sphinx-doc/sphinx ) from 5.2.2 to 5.2.3.
- [Release notes](https://github.com/sphinx-doc/sphinx/releases )
- [Changelog](https://github.com/sphinx-doc/sphinx/blob/5.x/CHANGES )
- [Commits](https://github.com/sphinx-doc/sphinx/compare/v5.2.2...v5.2.3 )
---
updated-dependencies:
- dependency-name: sphinx
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-10-04 08:06:40 +11:00
dependabot[bot]
d99940c58e
Bump pytest-cov from 3.0.0 to 4.0.0
...
Bumps [pytest-cov](https://github.com/pytest-dev/pytest-cov ) from 3.0.0 to 4.0.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/v3.0.0...v4.0.0 )
---
updated-dependencies:
- dependency-name: pytest-cov
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-09-30 07:46:34 +10:00
dependabot[bot]
1d240e0cd9
Bump sphinx from 5.2.1 to 5.2.2
...
Bumps [sphinx](https://github.com/sphinx-doc/sphinx ) from 5.2.1 to 5.2.2.
- [Release notes](https://github.com/sphinx-doc/sphinx/releases )
- [Changelog](https://github.com/sphinx-doc/sphinx/blob/5.x/CHANGES )
- [Commits](https://github.com/sphinx-doc/sphinx/compare/v5.2.1...v5.2.2 )
---
updated-dependencies:
- dependency-name: sphinx
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-09-28 20:31:42 +10:00
dependabot[bot]
060f849c7e
Bump sphinx from 5.1.1 to 5.2.1
...
Bumps [sphinx](https://github.com/sphinx-doc/sphinx ) from 5.1.1 to 5.2.1.
- [Release notes](https://github.com/sphinx-doc/sphinx/releases )
- [Changelog](https://github.com/sphinx-doc/sphinx/blob/5.x/CHANGES )
- [Commits](https://github.com/sphinx-doc/sphinx/compare/v5.1.1...v5.2.1 )
---
updated-dependencies:
- dependency-name: sphinx
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-09-27 07:48:49 +10:00
Brian May
9df7a0a053
Bump version: 1.1.0 → 1.1.1
2022-09-06 08:17:47 +10:00
Brian May
a28c8ae10b
Include version in setup.py too
2022-09-06 08:17:36 +10:00
Brian May
4f4d6d9f4d
Add ASDF .tool-versions file
2022-09-06 08:06:34 +10:00
Brian May
a1c7e64b0e
Add .coverage to .gitignore
2022-09-06 08:04:28 +10:00
dependabot[bot]
88139ed2e5
Bump pytest from 7.1.2 to 7.1.3
...
Bumps [pytest](https://github.com/pytest-dev/pytest ) from 7.1.2 to 7.1.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/7.1.2...7.1.3 )
---
updated-dependencies:
- dependency-name: pytest
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-09-06 07:53:59 +10:00
Bastian Venthur
810b4a3170
added bump2version
2022-09-05 08:24:31 +10:00
Bastian Venthur
98233530a0
remove setuptools-scm
2022-09-05 08:24:31 +10:00
Bastian Venthur
77eb8167c4
all elements are strings
2022-08-29 19:52:50 +10:00
Bastian Venthur
a6efc6b653
This test broke in Python3.11
...
Fixed the test and only check for instance: str for families that are
not explicitly covered in `family_to_str`
closes : #784
2022-08-29 19:52:10 +10:00
Brian May
f8086dfa59
Update flake8 and pyflakes
2022-08-05 08:00:56 +10:00
dependabot[bot]
58d72a93d2
Bump sphinx from 5.1.0 to 5.1.1
...
Bumps [sphinx](https://github.com/sphinx-doc/sphinx ) from 5.1.0 to 5.1.1.
- [Release notes](https://github.com/sphinx-doc/sphinx/releases )
- [Changelog](https://github.com/sphinx-doc/sphinx/blob/5.x/CHANGES )
- [Commits](https://github.com/sphinx-doc/sphinx/compare/v5.1.0...v5.1.1 )
---
updated-dependencies:
- dependency-name: sphinx
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-07-27 21:02:54 +10:00
dependabot[bot]
6929b79274
Bump sphinx from 5.0.2 to 5.1.0
...
Bumps [sphinx](https://github.com/sphinx-doc/sphinx ) from 5.0.2 to 5.1.0.
- [Release notes](https://github.com/sphinx-doc/sphinx/releases )
- [Changelog](https://github.com/sphinx-doc/sphinx/blob/5.x/CHANGES )
- [Commits](https://github.com/sphinx-doc/sphinx/compare/v5.0.2...v5.1.0 )
---
updated-dependencies:
- dependency-name: sphinx
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-07-26 08:20:09 +10:00
dependabot[bot]
bf4fa6cacc
Bump setuptools-scm from 7.0.4 to 7.0.5
...
Bumps [setuptools-scm](https://github.com/pypa/setuptools_scm ) from 7.0.4 to 7.0.5.
- [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/v7.0.4...v7.0.5 )
---
updated-dependencies:
- dependency-name: setuptools-scm
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-07-13 07:47:27 +10:00
dependabot[bot]
2462d6d204
Bump setuptools-scm from 7.0.3 to 7.0.4
...
Bumps [setuptools-scm](https://github.com/pypa/setuptools_scm ) from 7.0.3 to 7.0.4.
- [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/v7.0.3...v7.0.4 )
---
updated-dependencies:
- dependency-name: setuptools-scm
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-07-04 20:30:26 +10:00
dependabot[bot]
86c69dda48
Bump setuptools-scm from 7.0.2 to 7.0.3
...
Bumps [setuptools-scm](https://github.com/pypa/setuptools_scm ) from 7.0.2 to 7.0.3.
- [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/v7.0.2...v7.0.3 )
---
updated-dependencies:
- dependency-name: setuptools-scm
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-06-30 20:31:48 +10:00
Scott Kuhl
df98790206
Fix incorrect permissions for /etc/hosts
...
If we modify /etc/hosts, we read/copy the ownership and permissions
from the existing /etc/hosts before we make our new temporary file
which will eventually overwrite /etc/hosts. If we fail to retrieve the
permissions of the existing /etc/hosts file, we made the temporary
file owned by root 0o600 permissions. It should have 0o644 permissions
so that /etc/hosts has the correct permissions once we rename it.
It is unlikely many encoutered this bug since most machines have
/etc/hosts prior to sshuttle running and we should be able to read the
permission/ownership of that existing file.
2022-06-26 09:36:13 +10:00
dependabot[bot]
f9a9dad9ff
Bump setuptools-scm from 7.0.1 to 7.0.2
...
Bumps [setuptools-scm](https://github.com/pypa/setuptools_scm ) from 7.0.1 to 7.0.2.
- [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/v7.0.1...v7.0.2 )
---
updated-dependencies:
- dependency-name: setuptools-scm
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-06-24 08:21:27 +10:00
dependabot[bot]
1fa47bf8e1
Bump setuptools-scm from 6.4.2 to 7.0.1
...
Bumps [setuptools-scm](https://github.com/pypa/setuptools_scm ) from 6.4.2 to 7.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/v6.4.2...v7.0.1 )
---
updated-dependencies:
- dependency-name: setuptools-scm
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-06-23 08:24:03 +10:00
dependabot[bot]
7525f8d4c5
Bump sphinx from 5.0.1 to 5.0.2
...
Bumps [sphinx](https://github.com/sphinx-doc/sphinx ) from 5.0.1 to 5.0.2.
- [Release notes](https://github.com/sphinx-doc/sphinx/releases )
- [Changelog](https://github.com/sphinx-doc/sphinx/blob/5.x/CHANGES )
- [Commits](https://github.com/sphinx-doc/sphinx/compare/v5.0.1...v5.0.2 )
---
updated-dependencies:
- dependency-name: sphinx
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-06-19 09:28:58 +10:00
Bastian Venthur
a33a4829e2
fixed some spelling mistakes
2022-06-15 07:43:25 +10:00
dependabot[bot]
90ec0a9cb6
Bump actions/setup-python from 3 to 4
...
Bumps [actions/setup-python](https://github.com/actions/setup-python ) from 3 to 4.
- [Release notes](https://github.com/actions/setup-python/releases )
- [Commits](https://github.com/actions/setup-python/compare/v3...v4 )
---
updated-dependencies:
- dependency-name: actions/setup-python
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-06-09 20:23:49 +10:00
dependabot[bot]
0914bef9a2
Bump sphinx from 5.0.0 to 5.0.1
...
Bumps [sphinx](https://github.com/sphinx-doc/sphinx ) from 5.0.0 to 5.0.1.
- [Release notes](https://github.com/sphinx-doc/sphinx/releases )
- [Changelog](https://github.com/sphinx-doc/sphinx/blob/5.x/CHANGES )
- [Commits](https://github.com/sphinx-doc/sphinx/compare/v5.0.0...v5.0.1 )
---
updated-dependencies:
- dependency-name: sphinx
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-06-05 09:41:39 +10:00
Nikos Atlas
93200f7095
add comment and warning
2022-06-03 07:48:44 +10:00
Nikos Atlas
1def53e085
fallback to file editing in case file is locked
2022-06-03 07:48:44 +10:00
dependabot[bot]
553bc2b70c
Bump sphinx from 4.5.0 to 5.0.0
...
Bumps [sphinx](https://github.com/sphinx-doc/sphinx ) from 4.5.0 to 5.0.0.
- [Release notes](https://github.com/sphinx-doc/sphinx/releases )
- [Changelog](https://github.com/sphinx-doc/sphinx/blob/5.x/CHANGES )
- [Commits](https://github.com/sphinx-doc/sphinx/compare/v4.5.0...v5.0.0 )
---
updated-dependencies:
- dependency-name: sphinx
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-05-30 20:31:28 +10:00
dependabot[bot]
bf4cb64f25
Bump pytest from 7.1.1 to 7.1.2
...
Bumps [pytest](https://github.com/pytest-dev/pytest ) from 7.1.1 to 7.1.2.
- [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/7.1.1...7.1.2 )
---
updated-dependencies:
- dependency-name: pytest
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-04-25 20:44:11 +10:00
Brian May
004365f5c7
Delete stresstest.py
...
This file has not been touched in years. And looks like it is broken,
e.g. listener.accept() is called after infinite loop.
2022-04-24 18:38:51 +10:00
Brian May
d6fa0c1462
Replace BaseException with Exception
...
BaseException includes exceptions like SystemExit, KeyboardInterrupt
and GeneratorExit that we should not be catching.
2022-04-24 17:50:05 +10:00
Brian May
9e3209e931
Remove unused flags assignment
2022-04-24 17:40:43 +10:00
Brian May
7d67231faf
Update style issues
2022-04-24 17:37:10 +10:00
Brian May
0b267cdeff
Create codeql.yml
2022-04-24 17:00:57 +10:00
Brian May
30cdc5e74b
Fix LGTM reported issues
2022-04-24 16:43:07 +10:00
Brian May
181bf648a7
Remove useless assignment
2022-04-24 16:11:14 +10:00
Brian May
10341f3ad6
Add missing raise keyword for UDP not supported error
2022-04-24 16:09:55 +10:00
dependabot[bot]
6f92bd8ccf
Bump sphinx from 4.3.2 to 4.5.0
...
Bumps [sphinx](https://github.com/sphinx-doc/sphinx ) from 4.3.2 to 4.5.0.
- [Release notes](https://github.com/sphinx-doc/sphinx/releases )
- [Changelog](https://github.com/sphinx-doc/sphinx/blob/4.x/CHANGES )
- [Commits](https://github.com/sphinx-doc/sphinx/compare/v4.3.2...v4.5.0 )
---
updated-dependencies:
- dependency-name: sphinx
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-03-29 11:51:12 +11:00
dependabot[bot]
a7ca6d47a6
Bump pytest from 7.0.1 to 7.1.1
...
Bumps [pytest](https://github.com/pytest-dev/pytest ) from 7.0.1 to 7.1.1.
- [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/7.0.1...7.1.1 )
---
updated-dependencies:
- dependency-name: pytest
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-03-29 11:50:51 +11:00
Brian May
6d36916f48
Remove support for Python 3.6 and 3.7
...
Fixes #716
2022-03-29 11:47:05 +11:00
Scott Kuhl
5719d424de
Remove --sudoers, improve --sudoers-no-modify
...
Allowing sshuttle to add/overwrite sudoers configuration file at
locations of the users' choosing adds complexity to the code compared
to asking users to install the sudo configuration themselves. It
requires sshuttle to make decisions about how much effort we put into
ensuring that the file is written to a proper location. The current
method relies on the 'realpath' program which is not installed on
MacOS by default.
There are serious problems when the sudo configuration is used to
allow a user to *only* run sshuttle as root (with or without a
password). First, that user could then use the --sudoers option to
give other users sudo privileges. Second, the user can run any command
as root because sshuttle accepts a --ssh-cmd parameter which allows a
user to specify a program that sshuttle should run. There may also be
additional issues that we have not identified.
By removing the --sudoers option (and the associated sudoers-add
script), this reduces the problems above. This code keeps the
--sudoers-no-modify feature which prints a configuration to stdout for
the user to install. It includes a clear warning about how --ssh-cmd
could potentially be abused to run other programs.
A warning about some of these issues has been in sshuttle since
version 1.1.0. This commit also adds that warning to more locations in
the documentation.
2022-03-13 09:29:56 +11:00
lbausch
9431bb7a2f
Fix typo
2022-03-03 07:28:46 +11:00
Brian May
8c94b55d30
Merge pull request #743 from sshuttle/dependabot/github_actions/actions/checkout-3
...
Bump actions/checkout from 2.4.0 to 3
2022-03-03 07:28:13 +11:00
dependabot[bot]
1ed09fbe72
Bump actions/checkout from 2.4.0 to 3
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 2.4.0 to 3.
- [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.4.0...v3 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-03-02 10:10:13 +00:00
Brian May
ce7b4f83b2
Merge pull request #741 from sshuttle/dependabot/github_actions/actions/setup-python-3
...
Bump actions/setup-python from 2.3.2 to 3
2022-03-02 09:30:19 +11:00
dependabot[bot]
d9d3533b82
Bump actions/setup-python from 2.3.2 to 3
...
Bumps [actions/setup-python](https://github.com/actions/setup-python ) from 2.3.2 to 3.
- [Release notes](https://github.com/actions/setup-python/releases )
- [Commits](https://github.com/actions/setup-python/compare/v2.3.2...v3 )
---
updated-dependencies:
- dependency-name: actions/setup-python
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-03-01 10:10:14 +00:00
Brian May
0932bdd231
Merge pull request #737 from sshuttle/dependabot/pip/pytest-7.0.1
...
Bump pytest from 7.0.0 to 7.0.1
2022-02-15 07:34:15 +11:00
dependabot[bot]
f4150b7283
Bump pytest from 7.0.0 to 7.0.1
...
Bumps [pytest](https://github.com/pytest-dev/pytest ) from 7.0.0 to 7.0.1.
- [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/7.0.0...7.0.1 )
---
updated-dependencies:
- dependency-name: pytest
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-02-14 10:13:35 +00:00
Brian May
bfd6f5d088
Merge pull request #735 from mangano-ito/allows-wildcard-hosts
...
Allows wildcard host names as subnets
2022-02-11 08:10:46 +11:00
mangano-ito
016919cf95
accept a wildcarded host
2022-02-10 23:32:43 +09:00
mangano-ito
48ab82b81e
test a wildcarded host acceptable
2022-02-10 23:32:43 +09:00
Brian May
d8a07a5244
Merge pull request #734 from mangano-ito/add-tests-for-hostname-resolution
...
Add tests for host name resolution
2022-02-10 20:12:56 +11:00
mangano-ito
2f5c946b48
define flake8 max line length longer (79 to 128)
2022-02-10 08:41:22 +09:00
mangano-ito
1d4c059f44
format styles: E251 unexpected spaces around keyword / parameter equals (flake8)
2022-02-10 08:41:22 +09:00
mangano-ito
b9b89c3f55
add another example for host resolution tests
2022-02-09 21:29:24 +09:00
mangano-ito
e5eb5afef0
use mocked getaddrinfo to make host name resolution stable
2022-02-09 21:29:24 +09:00
mangano-ito
19e2a1810d
add getaddrinfo mock for test-cases with hosts
2022-02-09 21:29:24 +09:00
mangano-ito
2f026c84af
test hosts with port specified
2022-02-09 21:29:24 +09:00
mangano-ito
04214eaf89
test hosts with no port specified
2022-02-09 21:29:24 +09:00
Brian May
6b07cb2d21
Merge pull request #731 from sshuttle/dependabot/pip/pytest-7.0.0
...
Bump pytest from 6.2.5 to 7.0.0
2022-02-08 07:59:37 +11:00
Brian May
b1aa5fef89
Merge pull request #730 from sshuttle/dependabot/github_actions/actions/setup-python-2.3.2
...
Bump actions/setup-python from 2.3.1 to 2.3.2
2022-02-08 07:59:21 +11:00
dependabot[bot]
d378cbd582
Bump pytest from 6.2.5 to 7.0.0
...
Bumps [pytest](https://github.com/pytest-dev/pytest ) from 6.2.5 to 7.0.0.
- [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.5...7.0.0 )
---
updated-dependencies:
- dependency-name: pytest
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-02-07 10:13:04 +00:00
dependabot[bot]
166e4d6742
Bump actions/setup-python from 2.3.1 to 2.3.2
...
Bumps [actions/setup-python](https://github.com/actions/setup-python ) from 2.3.1 to 2.3.2.
- [Release notes](https://github.com/actions/setup-python/releases )
- [Commits](https://github.com/actions/setup-python/compare/v2.3.1...v2.3.2 )
---
updated-dependencies:
- dependency-name: actions/setup-python
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-02-07 10:12:58 +00:00
Brian May
317211a974
Merge pull request #728 from skuhl/ipv6-bind-error-msg
...
Improve message when bind fails with a IPv6 address
2022-02-05 08:57:02 +11:00
Brian May
c28976a10e
Merge pull request #729 from skuhl/man-page-disable-ipv6
...
Clarify --disable-ipv6 in man page.
2022-02-05 08:51:54 +11:00
Scott Kuhl
09c534bcf3
Clarify --disable-ipv6 in man page.
...
The description for --disable-ipv6 did not list all methods that
support IPv6.
2022-02-04 15:27:48 -05:00
Scott Kuhl
0c3b615736
Improve message when bind fails with a IPv6 address
...
The comments at the end of issue #673 shows an example where sshuttle
exits with an OSError exception when it cannot bind to an IPv6
address. This patch makes a suggestion to try the --disable-ipv6
option instead of the cryptic error message.
2022-02-04 15:20:25 -05:00
Brian May
c783fdb472
Merge pull request #727 from skuhl/fix-sudoers-in-1.1.0
...
Make --sudoers option work properly, fix regression in v1.1.0
2022-02-04 09:22:29 +11:00
Scott Kuhl
0f92735ee5
Make --sudoers option work properly, fix regression in v1.1.0
...
Commit d6f75fa unintentionally changed the order of some of the
parameters when running the firewall process. This prevented the
--sudoers option from working properly. This patch restores the
previous ordering.
Most discussion was in issue #724 . Also fixes #722 and #723 .
2022-02-03 13:53:39 -05:00
Brian May
3d51bcba95
Move release notes to github
2022-01-28 09:27:47 +11:00
Brian May
3331159821
Merge pull request #719 from sshuttle/revert-713-dependabot/pip/sphinx-4.4.0
...
Revert "Bump sphinx from 4.3.2 to 4.4.0"
2022-01-22 09:46:01 +11:00
Brian May
d23a0fd2c5
Revert "Bump sphinx from 4.3.2 to 4.4.0"
2022-01-22 09:44:59 +11:00
Brian May
164ceac198
Merge pull request #713 from sshuttle/dependabot/pip/sphinx-4.4.0
...
Bump sphinx from 4.3.2 to 4.4.0
2022-01-22 09:13:26 +11:00
dependabot[bot]
ecc2d68a06
Bump sphinx from 4.3.2 to 4.4.0
...
Bumps [sphinx](https://github.com/sphinx-doc/sphinx ) from 4.3.2 to 4.4.0.
- [Release notes](https://github.com/sphinx-doc/sphinx/releases )
- [Changelog](https://github.com/sphinx-doc/sphinx/blob/4.x/CHANGES )
- [Commits](https://github.com/sphinx-doc/sphinx/compare/v4.3.2...v4.4.0 )
---
updated-dependencies:
- dependency-name: sphinx
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-01-20 20:09:06 +00:00
Brian May
f1bae5ea04
Merge pull request #718 from sshuttle/dependabot/pip/setuptools-scm-6.4.2
...
Bump setuptools-scm from 6.4.1 to 6.4.2
2022-01-21 07:08:14 +11:00
dependabot[bot]
be667c7854
Bump setuptools-scm from 6.4.1 to 6.4.2
...
Bumps [setuptools-scm](https://github.com/pypa/setuptools_scm ) from 6.4.1 to 6.4.2.
- [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/v6.4.1...v6.4.2 )
---
updated-dependencies:
- dependency-name: setuptools-scm
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-01-20 10:08:39 +00:00
Brian May
952336f97b
Merge pull request #717 from sshuttle/dependabot/pip/setuptools-scm-6.4.1
...
Bump setuptools-scm from 6.4.0 to 6.4.1
2022-01-20 07:53:39 +11:00
dependabot[bot]
0890ebd383
Bump setuptools-scm from 6.4.0 to 6.4.1
...
Bumps [setuptools-scm](https://github.com/pypa/setuptools_scm ) from 6.4.0 to 6.4.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/v6.4.0...v6.4.1 )
---
updated-dependencies:
- dependency-name: setuptools-scm
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-01-19 10:12:35 +00:00
Brian May
d593e8c4f7
Merge pull request #714 from sshuttle/dependabot/pip/setuptools-scm-6.4.0
...
Bump setuptools-scm from 6.3.2 to 6.4.0
2022-01-19 07:45:36 +11:00
dependabot[bot]
9429f387ea
Bump setuptools-scm from 6.3.2 to 6.4.0
...
Bumps [setuptools-scm](https://github.com/pypa/setuptools_scm ) from 6.3.2 to 6.4.0.
- [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/v6.3.2...v6.4.0 )
---
updated-dependencies:
- dependency-name: setuptools-scm
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-01-18 10:12:20 +00:00
Brian May
4e43af758d
Merge pull request #708 from skuhl/doas
...
Allow use of sudo or doas.
2022-01-17 08:04:50 +11:00
Brian May
0ccd243a65
Merge pull request #712 from skuhl/sudo-use-pty-fix
...
Fix sshuttle when using sudo's use_pty option.
2022-01-10 10:03:55 +11:00
Brian May
9e4822d7b7
Merge pull request #711 from skuhl/wait-for-dns-flush
...
Fix defunct process after flushing DNS cache.
2022-01-09 20:14:02 +11:00
Scott Kuhl
80a822e079
Fix flake8 and unit test errors introduced by use_pty fixes.
2022-01-07 13:21:16 -05:00
Scott Kuhl
8e826cfa7d
Print to console with \r\n line endings.
...
If we run sudo with the use_pty option, the firewall process is
started in a new pseudoterminal. Other processes that are still
printing to the terminal (i.e., the main sshuttle client process,
messages from the shuttle server) have their output incorreclty
displayed. A newline character simply moves the output to the next
line without returning the cursor to the beginning of the line. Simply
changing all print commands to use \r\n line endings fixes the problem
and does not appear to cause any trouble in other configurations.
2022-01-07 13:13:37 -05:00
Scott Kuhl
286bd3fa80
Make setsid() call in firewall process optional.
...
We previously called setsid() to ensure that the SIGINT generated by
Ctrl+C went to the main sshuttle process instead of the firewall
process. With the previous commit, we gracefully shutdown if either
the sshuttle process or firewall process receives a SIGINT. Therefore,
the setsid() call is optional. We still try calling setsid() since the
preferred shutdown process involves having the signal go to the main
sshuttle process. However, setsid() will fail if the firewall process
is started with sudo and sudo is configured with the use_pty option.
2022-01-07 12:14:57 -05:00
Scott Kuhl
ae8af71886
Gracefully exit if firewall process receives Ctrl+C/SIGINT.
...
Typically sshuttle exits by having the main sshuttle client process
terminated. This closes file descriptors which the firewall process
then sees and uses as a cue to cleanup the firewall rules. The
firewall process ignored SIGINT/SIGTERM signals and used setsid() to
prevent Ctrl+C from sending signals to the firewall process.
This patch makes the firewall process accept SIGINT/SIGTERM signals
and then in turn sends a SIGINT signal to the main sshuttle client
process which then triggers a regular shutdown as described above.
This allows a user to manually send a SIGINT/SIGTERM to either
sshuttle process and have it exit gracefully. It also is needed if
setsid() fails (known to occur if sudo's use_pty option is used) and
then the Ctrl+C SIGINT signal goes to the firewall process.
The PID of the sshuttle client process is sent to the firewall
process. Using os.getppid() in the firewall process doesn't correctly
return the sshuttle client PID.
2022-01-07 11:52:39 -05:00
Scott Kuhl
54b80e6ce2
Fix defunct process after flushing DNS cache.
...
When we flush the DNS cache by calling resolvectl, we should wait for
the process to finish. This ensures that the cache is actually flushed
and prevents the process from showing up as defunct when processes are
listed.
2022-01-07 10:45:17 -05:00
Brian May
b00f2e0a68
Merge pull request #710 from skuhl/tproxy-check-root
...
Improve error message if tproxy method is used without running as root.
2022-01-06 10:26:27 +11:00
Scott Kuhl
15a8752cc6
Improve error message if tproxy method is used without running as root.
...
When the tproxy method is used, sshuttle must be run as root:
https://sshuttle.readthedocs.io/en/stable/tproxy.html
Prior to this patch, sshuttle would encounter a exception and print a
message about how a setsockopt() call had a "PermissionError: [Errno 1]
Operation not permitted."
With this patch, we catch this exception, print a more understandable
error message, and exit.
The lack of error message clarity caused at least one bug report: #136
2022-01-04 14:52:21 -05:00
Brian May
a2776cbbd9
Upgrade Sphinx version
2022-01-04 11:47:35 +11:00
Brian May
44b772d049
Add readthedocs config
2022-01-04 11:38:07 +11:00
Brian May
ae1faa7fa1
Merge pull request #709 from skuhl/tproxy-doc-fix
...
Minor improvement to tproxy documentation.
2022-01-02 12:02:33 +11:00
Scott Kuhl
175da40db7
Fix typo in tproxy documentation.
...
"IPv6 DNS" was listed twice.
2021-12-31 14:54:17 -05:00
Scott Kuhl
e11db3980f
Minor improvement to tproxy documentation.
...
Previously, tproxy was unique in its support of IPv6. Now, many
sshuttle methods support IPv6 and tproxy remains the only option that
supports UDP.
2021-12-31 14:31:54 -05:00
Scott Kuhl
d6f75fae25
Allow use of sudo or doas.
...
This is an alternative solution to pull request #611 .
Previously, sshuttle would use doas on OpenBSD and sudo on Linux.
However, some Linux distributions are opting to use doas.
This patch changes the logic so that there can be multiple attempts to
elevate privilages. If the first command fails to run, it moves on to
the next command. Part of the existing code looked like it might be
attempting to do this, but it didn't work.
It also looks for the presence of doas and sudo in the path. If we can
find doas (but cannot find sudo) or if the platform is OpenBSD, we try
doas first. Otherwise, we try sudo, then doas. We try all the options
until one succeeds (including running the command without sudo or
doas) regardless of what is in the path. I'm open to adjusting
the logic here based on feedback.
If systems have both sudo and doas, they might be configured to give
different users different permissions. For example, if a user wishes
to use doas on this system, sshuttle would try sudo first and the user
would need to enter invalid passwords to eventually cause sudo to fail
and cause sshuttle to then try doas. This might not be ideal, but it
avoids implement another sshuttle argument that the user would need to
specify. Perhaps machines actually using doas will not have sudo
installed?
2021-12-31 14:20:50 -05:00
Brian May
354cbe6071
Merge pull request #705 from JohnHay/ipfw
...
Make ipfw method work
2021-12-24 10:10:02 +11:00
JohnHay
922d827948
Flake8 does not like if we go over 79 characters on a line.
2021-12-22 06:04:25 +02:00
JohnHay
e6f076e1a5
Make flake8 happy.
2021-12-21 16:12:11 +02:00
JohnHay
2665b67926
Remove the ttl hack to allow the host and server to run on the same machine
...
from the ipfw method.
2021-12-20 11:52:09 +02:00
JohnHay
0cfee0ba84
ipfw expects text.
2021-12-20 09:20:32 +02:00
JohnHay
f247853f39
Changed one place where the Exception text was still tproxy to ipfw.
2021-12-20 08:58:25 +02:00
JohnHay
7c1f2b08cf
Indent the else to the same level as its if.
2021-12-20 08:55:38 +02:00
JohnHay
f65a51bbee
Add fport and lport (unused) to the for that parse subnets. Otherwise python
...
is unhappy with "ValueError: too many values to unpack (expected 4)"
2021-12-20 08:53:34 +02:00
JohnHay
b1ee4f1d65
check-state does not take extra options.
2021-12-20 08:37:15 +02:00
Brian May
4f20efd592
Merge pull request #702 from sshuttle/dependabot/github_actions/actions/setup-python-2.3.1
...
Bump actions/setup-python from 2.3.0 to 2.3.1
2021-12-01 08:44:47 +11:00
dependabot[bot]
fa0de2d1b7
Bump actions/setup-python from 2.3.0 to 2.3.1
...
Bumps [actions/setup-python](https://github.com/actions/setup-python ) from 2.3.0 to 2.3.1.
- [Release notes](https://github.com/actions/setup-python/releases )
- [Commits](https://github.com/actions/setup-python/compare/v2.3.0...v2.3.1 )
---
updated-dependencies:
- dependency-name: actions/setup-python
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-11-30 10:07:48 +00:00
Brian May
01415dc52e
Merge pull request #700 from sshuttle/dependabot/github_actions/actions/setup-python-2.3.0
...
Bump actions/setup-python from 2.2.2 to 2.3.0
2021-11-19 09:31:07 +11:00
dependabot[bot]
9257077b4e
Bump actions/setup-python from 2.2.2 to 2.3.0
...
Bumps [actions/setup-python](https://github.com/actions/setup-python ) from 2.2.2 to 2.3.0.
- [Release notes](https://github.com/actions/setup-python/releases )
- [Commits](https://github.com/actions/setup-python/compare/v2.2.2...v2.3.0 )
---
updated-dependencies:
- dependency-name: actions/setup-python
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-11-18 10:09:21 +00:00
Brian May
b896a4b7f3
Remove references to legacy PyXAPI socket_ext for recvmsg
...
socket.recvmsg has been in Python since version 3.3 and we don't
support anything older then 3.6 the server side.
2021-11-11 08:01:15 +11:00
Brian May
fca9bd6478
Merge pull request #695 from sshuttle/dependabot/github_actions/actions/checkout-2.4.0
...
Bump actions/checkout from 2.3.5 to 2.4.0
2021-11-04 07:57:40 +11:00
dependabot[bot]
42bb67b050
Bump actions/checkout from 2.3.5 to 2.4.0
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 2.3.5 to 2.4.0.
- [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.3.5...v2.4.0 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-11-03 10:08:19 +00:00
Brian May
b7800dadda
Merge pull request #694 from cclauss/patch-1
...
pythonpackage.yml: Add Python 3.10 to the testing
2021-11-02 16:59:58 +11:00
Christian Clauss
3de631abec
pythonpackage.yml: Add Python 3.10 to the testing
2021-11-01 19:35:57 +01:00
Brian May
35382a98a7
Merge pull request #689 from sshuttle/dependabot/github_actions/actions/checkout-2.3.5
...
Bump actions/checkout from 2.3.4 to 2.3.5
2021-10-19 07:50:09 +11:00
dependabot[bot]
bebfa45626
Bump actions/checkout from 2.3.4 to 2.3.5
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 2.3.4 to 2.3.5.
- [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.3.4...v2.3.5 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-10-18 10:11:32 +00:00
Brian May
387dd4775b
Merge pull request #687 from sshuttle/dependabot/pip/flake8-4.0.1
...
Bump flake8 from 4.0.0 to 4.0.1
2021-10-12 07:40:16 +11:00
dependabot[bot]
f5cf79893a
Bump flake8 from 4.0.0 to 4.0.1
...
Bumps [flake8](https://github.com/pycqa/flake8 ) from 4.0.0 to 4.0.1.
- [Release notes](https://github.com/pycqa/flake8/releases )
- [Commits](https://github.com/pycqa/flake8/compare/4.0.0...4.0.1 )
---
updated-dependencies:
- dependency-name: flake8
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-10-11 20:38:33 +00:00
dependabot[bot]
86a651099e
Bump pyflakes from 2.3.1 to 2.4.0
...
Bumps [pyflakes](https://github.com/PyCQA/pyflakes ) from 2.3.1 to 2.4.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.3.1...2.4.0 )
---
updated-dependencies:
- dependency-name: pyflakes
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-10-12 07:36:53 +11:00
dependabot[bot]
a42f6a5e67
Bump flake8 from 3.9.2 to 4.0.0
...
Bumps [flake8](https://github.com/pycqa/flake8 ) from 3.9.2 to 4.0.0.
- [Release notes](https://github.com/pycqa/flake8/releases )
- [Commits](https://github.com/pycqa/flake8/compare/3.9.2...4.0.0 )
---
updated-dependencies:
- dependency-name: flake8
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-10-12 07:36:18 +11:00
Brian May
5c4c943db8
Merge pull request #683 from sshuttle/dependabot/pip/pytest-cov-3.0.0
...
Bump pytest-cov from 2.12.1 to 3.0.0
2021-10-05 08:00:42 +11:00
dependabot[bot]
ccf1c9f478
Bump pytest-cov from 2.12.1 to 3.0.0
...
Bumps [pytest-cov](https://github.com/pytest-dev/pytest-cov ) from 2.12.1 to 3.0.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.12.1...v3.0.0 )
---
updated-dependencies:
- dependency-name: pytest-cov
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-10-04 10:12:27 +00:00
Brian May
9399cf10f6
Merge pull request #682 from a1346054/fixes
...
Simple maintenance improvements
2021-09-23 08:49:18 +10:00
a1346054
b95c1f3357
Trim excess whitespace
2021-09-22 12:36:36 +00:00
a1346054
5257d9fd1b
Fix shellcheck warnings
2021-09-22 12:36:27 +00:00
a1346054
ef244a5490
Fix typos
2021-09-22 12:36:26 +00:00
Brian May
7fb0f0a81b
Merge pull request #678 from sshuttle/dependabot/pip/setuptools-scm-6.3.2
...
Bump setuptools-scm from 6.3.1 to 6.3.2
2021-09-14 07:45:18 +10:00
dependabot[bot]
e8653d444d
Bump setuptools-scm from 6.3.1 to 6.3.2
...
Bumps [setuptools-scm](https://github.com/pypa/setuptools_scm ) from 6.3.1 to 6.3.2.
- [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/v6.3.1...v6.3.2 )
---
updated-dependencies:
- dependency-name: setuptools-scm
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-09-13 10:11:54 +00:00
Brian May
83038f0472
Merge pull request #676 from balping/master
...
add openSUSE install instructions
2021-09-07 08:57:25 +10:00
Balázs Dura-Kovács
9974ca17f8
add openSUSE install instructions
2021-09-06 23:47:12 +01:00
Brian May
e2f2fecc8a
Merge pull request #675 from sshuttle/dependabot/pip/setuptools-scm-6.3.1
...
Bump setuptools-scm from 6.1.1 to 6.3.1
2021-09-07 08:26:20 +10:00
dependabot[bot]
b59ce9c014
Bump setuptools-scm from 6.1.1 to 6.3.1
...
Bumps [setuptools-scm](https://github.com/pypa/setuptools_scm ) from 6.1.1 to 6.3.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/v6.1.1...v6.3.1 )
---
updated-dependencies:
- dependency-name: setuptools-scm
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-09-06 10:10:44 +00:00
Brian May
aa50f762cc
Merge pull request #674 from sshuttle/dependabot/pip/pytest-6.2.5
...
Bump pytest from 6.2.4 to 6.2.5
2021-09-01 08:49:21 +10:00
dependabot[bot]
57640ea2d0
Bump pytest from 6.2.4 to 6.2.5
...
Bumps [pytest](https://github.com/pytest-dev/pytest ) from 6.2.4 to 6.2.5.
- [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.4...6.2.5 )
---
updated-dependencies:
- dependency-name: pytest
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-08-31 10:09:42 +00:00
Brian May
e59cc3959c
Merge pull request #672 from sshuttle/dependabot/pip/setuptools-scm-6.1.1
...
Bump setuptools-scm from 6.0.1 to 6.1.1
2021-08-28 17:28:18 +10:00
dependabot[bot]
86d20da82a
Bump setuptools-scm from 6.0.1 to 6.1.1
...
Bumps [setuptools-scm](https://github.com/pypa/setuptools_scm ) from 6.0.1 to 6.1.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/v6.0.1...v6.1.1 )
---
updated-dependencies:
- dependency-name: setuptools-scm
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-08-27 10:11:01 +00:00
Brian May
d3fae535cd
Merge pull request #668 from skuhl/use-pty-warning
...
Improve error message when sudo's use_pty option is enabled.
2021-07-30 07:54:57 +10:00
Brian May
7d44e890eb
Merge pull request #667 from skuhl/server-version-print-early
...
Print server's python version earlier
2021-07-30 07:52:28 +10:00
Scott Kuhl
68a7766d24
Improve error message when sudo's use_pty option is enabled.
...
If sudo's use_pty is enabled, the setsid() call in firewall.py will
fail (see #664 ). When I ignore the error, sshuttle does not behave
properly. This patch explains to the user what is happening and
suggests a workaround.
It might be possible to make sshuttle work with use_pty in the future.
2021-07-29 11:49:09 -04:00
Scott Kuhl
09aab1a0fa
Print server's python version earlier
...
Previously, we printed the server's python version in server.py.
Moving it to assembler.py means that it can be printed earlier so that
it can be seen before a potential error that could occur during
assembly. Additionally, the path to the python executable used by the
server was added to the output as well.
An example of where this would be useful: #666
2021-07-29 11:39:37 -04:00
Brian May
bd00a530dd
Merge pull request #661 from skuhl/no-ttl
...
Remove ttl hack & require -r option.
2021-07-15 11:47:57 +10:00
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
Brian May
6ae0b51c61
Merge pull request #658 from skuhl/pfctl-error-report
...
Print pfctl error message when it returns non-zero.
2021-07-01 08:03:00 +10:00
Scott Kuhl
d7e257642e
Print pfctl error message when it returns non-zero.
...
If pfctl returns non-zero when setting up the firewall, sshuttle exits
and indicates the exit status code. This patch makes it so the output
of pfctl is also printed so the user can get a better idea of what
caused the problem.
For example: issue #491
2021-06-30 14:13:13 -04:00
Brian May
bea5e1a1f4
Merge pull request #657 from kylekyle/master
...
Remove psutil from requirements.txt
2021-06-29 08:21:04 +10:00
Kyle King
99787c1459
Remove psutil from requirements.txt
2021-06-26 13:11:24 -04:00
Brian May
ee02e1aaa2
Merge pull request #656 from kylekyle/master
...
replace psutil with os
2021-06-25 15:06:39 +10:00
Kyle
c06581cf83
replace psutil with os
2021-06-23 21:53:03 -04:00
Brian May
78b80709f2
Merge pull request #650 from skuhl/hw-improve
...
Improve hostwatch robustness and documentation
2021-06-03 07:28:12 +10:00
Scott Kuhl
d3f4889f21
fix lint errors
2021-06-02 15:32:04 -04:00
Scott Kuhl
560c6b4ce8
Improve hostwatch robustness and documentation.
...
If an exception occurs in hostwatch, sshuttle exits. Problems
read/writing the ~/.sshuttle.hosts cache file on the remote machine
would therefore cause sshuttle to exit. With this patch, we simply
continue running without writing/reading the cache file in the remote
home directory. This serves as an alternate fix for
pull request #322 which proposed storing the cache file elsewhere.
A list of included changes:
- If we can't read or write the host cache file on the server,
continue running. Hosts can be collected through the netstat,
/etc/hosts, etc and the information can be reconstructed each run if
a cache file isn't available to read. We write a log() message when
this occurs.
- Add additional types of exceptions to handle.
- Continue even if we cannot read /etc/hosts on the server.
- Update man page to mention the cache file on the remote host.
- Indicate that messages are related to remote host instead of local
host.
- Add comments and descriptions to the code.
2021-06-02 15:22:04 -04:00
Brian May
d21a322f05
Merge pull request #649 from sshuttle/dependabot/pip/pytest-cov-2.12.1
...
Bump pytest-cov from 2.12.0 to 2.12.1
2021-06-02 20:20:55 +10:00
dependabot[bot]
3e308b4266
Bump pytest-cov from 2.12.0 to 2.12.1
...
Bumps [pytest-cov](https://github.com/pytest-dev/pytest-cov ) from 2.12.0 to 2.12.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.12.0...v2.12.1 )
---
updated-dependencies:
- dependency-name: pytest-cov
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-06-02 06:20:06 +00:00
Brian May
a3cbf0885f
Merge pull request #646 from skuhl/nat-ipv6
...
Add IPv6 support to nat (iptables) method.
2021-06-01 07:40:08 +10:00
Scott Kuhl
3f201095ea
Merge branch 'master' into nat-ipv6
2021-05-30 21:09:32 -04:00
Brian May
58c264ff1c
Merge pull request #648 from skuhl/sudoers-add-sanitize
...
Fix #637 : sudoers-add should always write to /etc/sudoers.d/...
2021-05-31 07:53:19 +10:00
Brian May
1820264dd5
Merge pull request #647 from skuhl/man-page-updates
...
Update documentation
2021-05-31 07:48:56 +10:00
Brian May
be847f5d81
Merge pull request #645 from skuhl/hostwatch-remove-dead-code
...
Remove dead code in hostwatch.py
2021-05-31 07:44:21 +10:00
Brian May
d2836a082f
Merge pull request #644 from skuhl/fix-tmark
...
Fix --tmark option
2021-05-31 07:42:30 +10:00
Scott Kuhl
8c5ffc9e72
Fix #637 : File written by sudoers-add should always begin with /etc/sudoers.d/
...
The problem and patch was originally submitted aayla-secura. I made a
minor improvement to the error message.
2021-05-30 17:03:03 -04:00
Scott Kuhl
843a729d64
flake8: fix long line
2021-05-29 21:58:56 -04:00
Scott Kuhl
851b26cb13
Update documentation
...
The output in the examples provided in the man page hadn't been
updated as sshuttle changed its output over time.
The example of testing sshuttle without a remote host was removed. It
was the first example previously and it is something that is unlikely
users will wish to do.
Also:
- Update some --help messages.
- Manpage: Fix a typo.
- Manpage: Mention that host specified with -r can be an ssh alias.
- Eliminate variable only used once.
2021-05-29 21:54:47 -04:00
Scott Kuhl
c026a92cad
Add IPv6 support to nat (iptables) method.
...
Adding IPv6 support to the nat method is straightforward after the
previous work to add IPv6 support for nft.
2021-05-29 20:55:48 -04:00
Scott Kuhl
1dbec7252d
Remove dead code in hostwatch.py
...
11 years ago in commit 384d0e7c1d637c4c36eb3e4d31d538bc9420d987,
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
Scott Kuhl
a7df12cd68
Fix --tmark option
...
Even when --tmark was used, the iptables code always used '1' for the
mark. This patch corrects the problem.
Previously, it wasn't clear if the tmark should be supplied in
hexadecimal or as an integer. This makes it use hexadecimal, checks
that the input is hexadecimal, and updates the associated
documentation.
This patch also makes --ttl information get passed to the firewall in
a way that matches how other information gets passed. The ttl and
tmark information are passed next to each other in many places and
this patch also makes the order consistent.
2021-05-27 21:48:43 -04:00
Brian May
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
Scott Kuhl
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
Brian May
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
Brian May
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
dependabot[bot]
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
Brian May
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
Brian May
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
dependabot[bot]
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
dependabot[bot]
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
Brian May
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
dependabot[bot]
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
Brian May
88154f4f9c
Merge pull request #635 from skuhl/sudoers-warning
...
Warn about adding sshuttle to sudoers.
2021-05-09 20:25:26 +10:00
Scott Kuhl
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
Brian May
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
Scott Kuhl
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
dependabot[bot]
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
Brian May
f6176d3581
Merge pull request #630 from thesamesam/patch-1
...
README.rst: fix Gentoo entry syntax
2021-04-27 07:47:46 +10:00
Sam James
bc08198cae
README.rst: fix Gentoo entry syntax
2021-04-26 16:22:42 +01:00
Brian May
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
dependabot[bot]
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
Brian May
7307636d35
Merge pull request #624 from sshuttle/dependabot/add-v2-config-file
...
Create Dependabot config file
2021-04-08 11:47:33 +10:00
dependabot-preview[bot]
1f5161e48c
Create Dependabot config file
2021-04-08 01:40:51 +00:00
Brian May
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
dependabot-preview[bot]
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
Brian May
51a1078371
Merge pull request #622 from necrose99/patch-1
...
Update README.rst
2021-03-26 07:52:21 +11:00
Brian May
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
Michael L
e54747bfb0
Update README.rst
...
https://packages.gentoo.org/packages/net-proxy/sshuttle
2021-03-25 14:12:32 -05:00
dependabot-preview[bot]
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
Brian May
bafc0a7038
Merge pull request #618 from patrislav1/bugfix-dnsproxy
...
Fix DnsProxy
2021-03-21 09:21:26 +11:00
Patrick Huesmann
4c11dd7183
options: make sure ttl is of integer type
2021-03-20 12:26:17 +01:00
Brian May
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
Brian May
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
Patrick Huesmann
5e177d81bc
Fix firewall setup/teardown failure on xtable lock
2021-03-18 09:41:21 +01:00
dependabot-preview[bot]
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
Brian May
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
Brian May
97076a9390
Adjust branches, remove temporary branches
2021-03-16 08:29:14 +11:00
Brian May
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
Scott Kuhl
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
dependabot-preview[bot]
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
Victor Kareh
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
Kees Hink
0e51da519f
Allow comments in configuration file
2021-02-16 07:51:32 +11:00
Kees Hink
a22c453d5e
Remove trailing whitespace
2021-02-16 07:51:32 +11:00
dependabot-preview[bot]
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
Scott Kuhl
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
dependabot-preview[bot]
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
dependabot-preview[bot]
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
masahitojp
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
masahitojp
65d437a9f8
feat: remove mock from test dependencies.
...
Because mock can be replace by unittest.mock
2021-01-17 15:42:55 +11:00
masahitojp
254b8e7987
remove py35 from tox.ini
...
Because the supported version is python3.6 and above.
2021-01-17 15:42:24 +11:00
Scott Kuhl
97c25e988e
tproxy: Skip firewall chains if packets have local destination. ( #578 )
...
If you use the tproxy method with a large subnet (such as 0/0), then
(1) you may not receive UDP packets that sshuttle/tproxy can handle
and (2) you are unable to connect to your machine using an IP that
your computer recognizes as its own.
To resolve those issues, any traffic to an IP that the host knows is
local, does not go through the sshuttle chains.
2021-01-04 09:05:32 +11:00
Scott Kuhl
b7730fc106
Improve error messages related to sshuttle server. ( #580 )
...
* Improve error messages related to sshuttle server.
There are many GitHub issues related to the cryptic message:
fatal: expected server init string 'SSHUTTLE0001'; got b''
The code that prints that message is after another check that is
intended to verify that the server is still running. This code was
faulty since the server is still running when rv==None (but exited
when rv==0).
I corrected this problem and then investigated ways to clarify the
error message. I added additional exit codes for the server: 97 (exec
in the shell returned), 98 (the python exec() function called
returned). The end result is that the cryptic error message above will
now print a more appropriate error message that should aid in
debugging.
I also changed the server so that it catches Fatal() and exits with
exit code 99 (like the client does). Previously, it was just an
unhandled exception on the server.
I suspect some of the error messages were caused by restricted shells.
I also investigated and added comments about how sshuttle might behave
if it is being run on a server that has a restricted shell.
This commit also replaces a couple of exit() calls in cmdline.py with
'return' since exit() is intended for interactive use. This change
doesn't impact the server.
* Remind user to exclude remote host when server exits with 255.
2021-01-04 08:35:10 +11:00
Scott Kuhl
7fc33c0020
Refactor debug, log and Fatal messages.
...
This commit rewrites the log() function so that it will append a
newline at the end of the message if none is present. It doesn't make
sense to print a log message without a newline since the next log
message (which will write a prefix) expects to be starting at the
beginning of a line.
Although it isn't strictly necessary, this commit also removes any
newlines at the ends of messages. If I missed any, including the
newline at the end of the message will continue to work as it did
before.
Previously, some calls were missing the newline at the end even though
including it was necessary for subsequent messages to appear
correctly.
This code also cleans up some redundant prefixes. The log() method
will prepend the prefix and the different processes should set their
prefix as soon as they start.
Multiline messages are still supported (although the prefix for the
additional lines was changed to match the length of the prefix used
for the first line).
2021-01-01 19:32:48 +11:00
Scott Kuhl
563f41478a
Ignore quotes in config file passed to sshuttle with @
...
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 .
2020-12-31 10:20:22 +11:00
Herby Gillot
da848b6dba
Readme: add instructions for installing via MacPorts
2020-12-29 19:12:06 +11:00
Brian May
bc72bb4811
Release version 1.0.5
2020-12-29 10:34:58 +11:00
Brian May
b8cd2fae40
Add Python 3.9 support
2020-12-28 11:01:07 +11:00
Brian May
8f0d3b0f8e
Add release notes for new release
2020-12-28 10:56:01 +11:00
Scott Kuhl
6d4261e3f9
Refactor automatic method selection.
...
Add an "is_supported()" function to the different methods so that each
method can include whatever logic they wish to indicate if they are
supported on a particular machine. Previously, methods/__init__.py
contained all of the logic for selecting individual methods. Now, it
iterates through a list of possible options and stops on the first
method that it finds that is_supported().
Currently, the decision is made based on the presence of programs in
the PATH. In the future, things such as the platform sshuttle is
running on could be considered.
2020-12-28 10:21:56 +11:00
Samuel Bernardo
7c338866bf
Set default tmark to pass coverage tests
...
Signed-off-by: Samuel Bernardo <samuel@lip.pt>
2020-12-28 10:20:46 +11:00
Samuel Bernardo
6b87ad3fc7
Set default tmark to pass coverage tests
...
Signed-off-by: Samuel Bernardo <samuel@lip.pt>
2020-12-28 10:20:46 +11:00
Samuel Bernardo
0efd23f3b8
Correct options typo for argument tmark
...
Signed-off-by: Samuel Bernardo <samuel@lip.pt>
2020-12-28 10:20:46 +11:00
Samuel Bernardo
9bdd9fea5d
Correct flake8 liting issues
...
Signed-off-by: Samuel Bernardo <samuel@lip.pt>
2020-12-28 10:20:46 +11:00
Samuel Bernardo
d5cceb3e42
Add workflow_dispatch to github actions
...
Signed-off-by: Samuel Bernardo <samuel@lip.pt>
2020-12-28 10:20:46 +11:00
Samuel Bernardo
65b139ff6e
Add current branch to github workflow for testing
...
Signed-off-by: Samuel Bernardo <samuel@lip.pt>
2020-12-28 10:20:46 +11:00
Samuel Bernardo
76b8b83e22
Add .gitignore .vscode/ path. Resolve the issue #374 adding tproxy mark option to allow different network mapping.
...
Signed-off-by: Samuel Bernardo <samuel@lip.pt>
2020-12-28 10:20:46 +11:00
dependabot-preview[bot]
a5214e0fd7
Bump mock from 2.0.0 to 4.0.3
...
Bumps [mock](https://github.com/testing-cabal/mock ) from 2.0.0 to 4.0.3.
- [Release notes](https://github.com/testing-cabal/mock/releases )
- [Changelog](https://github.com/testing-cabal/mock/blob/master/CHANGELOG.rst )
- [Commits](https://github.com/testing-cabal/mock/compare/2.0.0...4.0.3 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-12-16 20:15:42 +11:00
Brian May
3861d29de2
Merge pull request #571 from sshuttle/dependabot/pip/pytest-6.2.1
...
Bump pytest from 6.2.0 to 6.2.1
2020-12-16 20:15:16 +11:00
dependabot-preview[bot]
59a983f9a6
Bump pytest from 6.2.0 to 6.2.1
...
Bumps [pytest](https://github.com/pytest-dev/pytest ) from 6.2.0 to 6.2.1.
- [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.0...6.2.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-12-16 09:14:24 +00:00
Brian May
4a65f97c8b
Drop testing of Python 3.5
...
Due to message from CI:
DEPRECATION: Python 3.5 reached the end of its life on September 13th,
2020. Please upgrade your Python as Python 3.5 is no longer maintained.
pip 21.0 will drop support for Python 3.5 in January 2021. pip 21.0 will
remove support for this functionality.
2020-12-16 20:11:13 +11:00
Brian May
461e676973
Merge pull request #570 from sshuttle/dependabot/pip/pytest-6.2.0
...
Bump pytest from 6.1.2 to 6.2.0
2020-12-14 19:12:11 +11:00
Brian May
70e3e017ab
Merge pull request #569 from sshuttle/dependabot/pip/setuptools-scm-5.0.1
...
Bump setuptools-scm from 4.1.2 to 5.0.1
2020-12-14 19:11:43 +11:00
dependabot-preview[bot]
26704cf742
Bump pytest from 6.1.2 to 6.2.0
...
Bumps [pytest](https://github.com/pytest-dev/pytest ) from 6.1.2 to 6.2.0.
- [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.1.2...6.2.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-12-14 06:47:57 +00:00
dependabot-preview[bot]
28a85928be
Bump setuptools-scm from 4.1.2 to 5.0.1
...
Bumps [setuptools-scm](https://github.com/pypa/setuptools_scm ) from 4.1.2 to 5.0.1.
- [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/v4.1.2...v5.0.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-12-14 06:47:33 +00:00
Brian May
ff70f584d2
Merge pull request #561 from Krout0n/fix-handling-OSError
...
Fix handling OSError in FirewallClient#__init__
2020-11-16 17:00:29 +11:00
Krouton
5ff834bd32
Fix handling OSError in FirewallClient#__init__
2020-11-16 10:36:39 +09:00
Brian May
6b75d62d68
Merge pull request #560 from sshuttle/dependabot/pip/attrs-20.3.0
...
Bump attrs from 20.2.0 to 20.3.0
2020-11-07 11:19:49 +11:00
dependabot-preview[bot]
6bbe8c0d34
Bump attrs from 20.2.0 to 20.3.0
...
Bumps [attrs](https://github.com/python-attrs/attrs ) from 20.2.0 to 20.3.0.
- [Release notes](https://github.com/python-attrs/attrs/releases )
- [Changelog](https://github.com/python-attrs/attrs/blob/master/CHANGELOG.rst )
- [Commits](https://github.com/python-attrs/attrs/compare/20.2.0...20.3.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-11-06 06:35:04 +00:00
Brian May
7e726bc235
Merge pull request #558 from skuhl/dns-to-none
...
Fix "DNS request from ... to None" messages.
2020-11-05 07:30:09 +11:00
Scott Kuhl
227412e218
Fix long line in previous commit
2020-11-04 11:40:07 -05:00
Brian May
9b036fc689
Merge pull request #552 from skuhl/systemd-resolved
...
Intercept DNS requests sent by systemd-resolved.
2020-11-04 16:55:09 +11:00
Brian May
34acdd0611
Merge pull request #557 from skuhl/nft-ipv6-improvements
...
Improve nft IPv6 support.
2020-11-04 16:52:49 +11:00
Scott Kuhl
8461e08bc3
Make server and client handle resolv.conf differently.
...
The server should just read from resolv.conf to find DNS servers to
use. This restores this behavior after the previous commit changed it.
The client now reads both /etc/resolv.conf and
/run/systemd/resolve/resolv.conf. The latter is required to more
reliably intercept regular DNS requests that systemd-resolved makes.
2020-11-03 20:27:57 -05:00
Scott Kuhl
d3700f09da
Improve nft IPv6 support.
...
This commit makes two fixes:
1. If an IPv6 DNS server is used, an nft rule had "ip6 protocol" in it
which is invalid and caused sshuttle to exit.
2. I modified detection of udp vs tcp to follow the recommendation at
https://superuser.com/questions/1560376/match-ipv6-protocol-using-nftables
I also re-arranged the code slightly to reduce the number of
if-statements.
2020-11-03 20:14:56 -05:00
Brian May
92b99442c3
Merge pull request #551 from skuhl/which-fix
...
Improve consistency of PATH, environments, and which()
2020-11-04 08:00:53 +11:00
Scott Kuhl
709e5d1595
Improve error message when "ip" and "netstat" are missing and --auto-nets fails to work
2020-11-03 12:53:16 -05:00
Brian May
b5aaeda2a8
Merge pull request #553 from sshuttle/dependabot/pip/pytest-6.1.2
...
Bump pytest from 6.1.1 to 6.1.2
2020-10-29 18:17:19 +11:00
dependabot-preview[bot]
0ce268f21b
Bump pytest from 6.1.1 to 6.1.2
...
Bumps [pytest](https://github.com/pytest-dev/pytest ) from 6.1.1 to 6.1.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.1.1...6.1.2 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-10-29 06:35:08 +00:00
Scott Kuhl
34f538ff98
Merge branch 'master' into which-fix to resolve merge conflict.
2020-10-26 17:24:32 -04:00
Scott Kuhl
7d89b2d89f
Fix "DNS request from ... to None" messages.
...
Some methods are unable to determine the destination address of DNS
packets that we capture. When this happens, change the message so it
just shows where the DNS requests are from.
2020-10-26 15:46:01 -04:00
Scott Kuhl
502960d796
Intercept DNS requests sent by systemd-resolved.
...
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
2020-10-25 12:29:32 -04:00
Brian May
5c8c707208
Merge pull request #550 from skuhl/nft-ipv6
...
IPv6 support in nft method.
2020-10-25 15:55:33 +11:00
Scott Kuhl
68c9c9bbcd
Improve consistency of PATH, environments, and which()
...
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.
2020-10-23 20:33:20 -04:00
Scott Kuhl
c02b93e719
nft IPv6 documentation (and other minor doc updates)
...
Update docs to indicate that IPv6 is supported with the nft method.
- Adds nft into the requirements.rst file.
- Update description of what happens when a hostname is used in a
subnet.
- Add ipfw to list of methods.
- Indicate that --auto-nets does not work with IPv6. Previously this
was only mentioned in tproxy.rst
- Clarify that we try to use "python3" on the server before trying
"python".
2020-10-22 20:17:09 -04:00
Scott Kuhl
6d86e44fb4
IPv6 support in nft method.
...
This works for me but needs testing by others. Remember to specify a
::0/0 subnet or similar to route IPv6 through sshuttle.
I'm adding this to nft before nat since it is not sshuttle's default
method on Linux. Documentation updates may be required too.
This patch uses the ipaddress module, but that appears to be included
since Python 3.3.
2020-10-21 17:47:07 -04:00
Brian May
ebf87d8f3b
Merge pull request #549 from skuhl/nft-nat-update
...
Make nat and nft rules consistent; improve rule ordering.
2020-10-22 07:56:37 +11:00
Scott Kuhl
bc24ed359a
Make nat and nft rules consistent; improve rule ordering.
...
First, check if TTL indicates we should ignore packet (instead of
checking in multiple rules later). Also, nft method didn't do this at
all. Now, nft matches the behavior of nat.
Second, forward DNS traffic (we may need to intercept traffic to
localhost if a DNS server is running on localhost).
Third, ignore any local traffic packets. (Previously, we ignored local
traffic except DNS and then had the DNS rules). The nft method didn't
do this previously at all. It now matches the behavior of nat.
Lastly, list the subnets to redirect and/or exclude. This step is left
unchanged. Excluding the local port that we are listening on is
redundant with the third step, but should cause no harm.
In summary, this ordering simplifies the rules in nat and eliminates
differences that previously existed between nat and nft.
2020-10-21 11:51:39 -04:00
Brian May
ac3ccb769a
Merge pull request #544 from skuhl/fix-no-remote
...
Allow no remote to work.
2020-10-21 07:53:40 +11:00
Brian May
1f3c74a1af
Merge pull request #548 from skuhl/stdout-cleanup
...
Make prefixes in verbose output more consistent.
2020-10-21 07:53:14 +11:00
Scott Kuhl
512a3a8d96
Add missing space in client ssh error message
2020-10-20 13:38:37 -04:00
Scott Kuhl
4deee45bc6
whitespace cleanup
2020-10-20 13:35:32 -04:00
Scott Kuhl
7cb30b783d
Make prefixes in verbose output more consistent.
...
Use 'c' prefix for client, 's' prefix for server, and 'fw' prefix for
firewall messages. The 'c' and 's' prefixes were used sometimes but
not consistently. The firewall printed messages prefixed with
"firewall manager:" or "firewall:" or ">>" previously.
This patch also fixes a couple of print() calls that should have been
debug1()---a bug introduced in a recent commit.
2020-10-20 13:29:45 -04:00
Brian May
fb4950fafc
Merge pull request #547 from nickray/document-subnets-option-in-man-page
...
Document -s/--subnets option in man page
2020-10-20 07:57:21 +11:00
Brian May
c3016f2d90
Merge pull request #541 from skuhl/use-all-ips
...
When subnets and excludes are specified with hostnames, use all IPs.
2020-10-20 07:56:50 +11:00
Nicolas Stalder
9d704b3503
Document -s/--subnets option in man page
2020-10-19 13:35:03 +02:00
Brian May
a266e7a8bd
Merge pull request #545 from skuhl/avoid-touching-etc-hosts
...
Only write /etc/hosts when necessary.
2020-10-19 15:53:14 +11:00
Scott Kuhl
e1106a33a9
Only write /etc/hosts when necessary.
...
Without this patch, sshuttle 'restores' /etc/hosts even if it didn't
make any modifications to it. This can be confirmed by running without
--auto-hosts and confirming that the modification time of /etc/hosts
is unchanged while sshuttle is running, but is updated when sshuttle
exits (and a debug2() message is printed indicating the file is
written).
I'm not aware of the previous behavior causing problems. However,
writing an important file unnecessarily as root should be avoided.
2020-10-19 00:17:37 -04:00
Scott Kuhl
574ed8e564
Allow no remote to work.
...
Pull request #502 made -r/--remote required. However, the
documentation still indicates that using no remote is a valid way to
test sshuttle (see Examples section of man page). I think this mode
might be useful for testing performance local without ssh, local with
ssh, and remote with ssh.
This patch adds a warning when -r/--remote is missing but restores the
previous behavior.
2020-10-18 23:54:18 -04:00
Brian May
1dbf216369
Merge pull request #543 from skuhl/sdnotify-doc
...
sdnotify.py documentation
2020-10-19 09:49:16 +11:00
Scott Kuhl
52558174b8
sdnotify.py documentation
2020-10-18 16:45:57 -04:00
Scott Kuhl
b7a29acab7
Update/document client's handling of IPv4 and IPv6.
...
Additional comments, checks, warning messages, and diagnostic
information is printed out when the client starts.
We assume IPv4 is always present and enabled. We assume IPv6 is not
supported when it is disabled at the command line or when it is not
supported by the firewall method. Warn if IPv6 is disabled but the
user specified IPv6 subnets, IPv6 DNS servers, or IPv6 excludes that
are effectively ignored.
Instead of indicating which features are on/off, we also indicate if
features are available in the verbose output.
We also more clearly print the subnets that we forward, excludes, and
any redirected DNS servers to the terminal output.
These changes should help handling bug reports and make it clearer to
users what is happening. It should also make it more graceful when a
user specifies a subnet/exclude with hostname that resolves to both
IPv4 and IPv6 (but IPv6 is disabled in sshuttle).
2020-10-18 16:30:29 -04:00
Scott Kuhl
c2b10465e7
Remove localhost test since it can resolve to either IPv4, IPv6, or both in any particular order
2020-10-17 15:56:23 -04:00
Scott Kuhl
cfe14f2498
fix flake8 issues in updated tests
2020-10-17 15:40:28 -04:00
Scott Kuhl
cb53d8a150
Make tests for parse_subnetport() expect lists & update expected error messages in tests
2020-10-17 15:36:16 -04:00
Scott Kuhl
64d5c77a71
fix flake8 issues, clarify comment
2020-10-17 14:43:09 -04:00
Scott Kuhl
036c49e412
When subnets and excludes are specified with hostnames, use all IPs.
...
The list of subnets to route over VPN and the list of subnets to
exclude are parsed in option.py parse_subnetport(). Hostnames or IP
addresses are supported. If a hostname was provided, only the first IP
address was considered. This could result in some traffic not
traversing the VPN that the user might expect should traverse it from
the arguments passed to sshuttle.
This patch makes the function handle all of the IPs if a hostname is
provided. If a user provides a hostname with a CIDR mask, problems can
occur and we warn the user about the issue.
If the user includes a hostname with both an IPv4 and an IPv6 address,
and the underlying method doesn't support IPv6, then this patch will
cause sshuttle to fail. I plan to provide a future patch where failure
won't occur if the only place IPv6 addresses appear is in the exclude
list. In that case it should be safe to ignore the IPv6 address.
This patch also changes parse_ipport() which is used by the --to-ns
option. If the user provides a hostname here, we just use the first IP
from the hostname and warn the user that only one is being used.
2020-10-16 18:29:16 -04:00
Brian May
c1cc3911df
Merge pull request #537 from skuhl/add-version
...
Include sshuttle version in verbose output.
2020-10-10 11:18:13 +11:00
Scott Kuhl
84e43d3113
Include sshuttle version in verbose output.
...
Some bug reports include verbose sshuttle output but lack the version
that is being used. Including the sshuttle version in the output may
make it easier to handle future bug reports.
2020-10-08 22:39:42 -04:00
Brian May
afad317f2c
Merge pull request #536 from ed-velez/add_psutil_to_setup
...
Add psutil as dependency in setup.py
2020-10-08 08:09:21 +11:00
Ed Velez
ae5dbd3b4d
Add psutil as dependency in setup.py
2020-10-07 15:00:45 -05:00
Brian May
2995a624f1
Merge pull request #534 from sshuttle/dependabot/pip/flake8-3.8.4
...
Bump flake8 from 3.8.3 to 3.8.4
2020-10-06 07:56:56 +11:00
Brian May
909402a353
Merge pull request #533 from sshuttle/dependabot/pip/pytest-6.1.1
...
Bump pytest from 6.1.0 to 6.1.1
2020-10-06 07:56:36 +11:00
dependabot-preview[bot]
16148ac70f
Bump flake8 from 3.8.3 to 3.8.4
...
Bumps [flake8](https://gitlab.com/pycqa/flake8 ) from 3.8.3 to 3.8.4.
- [Release notes](https://gitlab.com/pycqa/flake8/tags )
- [Commits](https://gitlab.com/pycqa/flake8/compare/3.8.3...3.8.4 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-10-05 06:37:36 +00:00
dependabot-preview[bot]
e50bbc2c92
Bump pytest from 6.1.0 to 6.1.1
...
Bumps [pytest](https://github.com/pytest-dev/pytest ) from 6.1.0 to 6.1.1.
- [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.1.0...6.1.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-10-05 06:37:12 +00:00
Brian May
9eaed73098
Merge pull request #529 from sshuttle/dependabot/pip/pytest-6.1.0
...
Bump pytest from 6.0.2 to 6.1.0
2020-09-29 07:40:40 +10:00
dependabot-preview[bot]
4b07dab9dc
Bump pytest from 6.0.2 to 6.1.0
...
Bumps [pytest](https://github.com/pytest-dev/pytest ) from 6.0.2 to 6.1.0.
- [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.0.2...6.1.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-09-28 06:43:22 +00:00
Brian May
299854d2b5
Merge pull request #522 from sshuttle/dependabot/pip/pytest-6.0.2
...
Bump pytest from 6.0.1 to 6.0.2
2020-09-15 07:33:28 +10:00
dependabot-preview[bot]
8b71c150c6
Bump pytest from 6.0.1 to 6.0.2
...
Bumps [pytest](https://github.com/pytest-dev/pytest ) from 6.0.1 to 6.0.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.0.1...6.0.2 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-09-14 06:39:11 +00:00
Brian May
dcce0fa3df
Merge pull request #520 from skuhl/master
...
Fix #494 sshuttle caught in infinite select() loop.
2020-09-09 08:37:27 +10:00
Brian May
3ee74ddfa6
Merge pull request #519 from sshuttle/dependabot/pip/attrs-20.2.0
...
Bump attrs from 20.1.0 to 20.2.0
2020-09-08 07:33:26 +10:00
Scott Kuhl
7573011a08
remove unneeded blank line
2020-09-07 15:58:59 -04:00
Scott Kuhl
72ae202df3
Remove extra whitespace, wrap long lines
2020-09-07 15:56:59 -04:00
Scott Kuhl
5d6b14673f
Fix #494 sshuttle caught in infinite select() loop.
...
Improve detection of when the ssh process exits in both daemon and
foreground modes. Previously, sshuttle could infinite loop with 100%
cpu usage if the ssh process died. On machines that use suspend, the
ssh connection might not resume after wakeup. Now, this situation is
detected and sshuttle exits. The fix involves changing the return
value we check for when we call poll() and using a psutil function to
detect when the process exits if we are running sshuttle as a daemon.
2020-09-07 15:46:33 -04:00
dependabot-preview[bot]
aa97742405
Bump attrs from 20.1.0 to 20.2.0
...
Bumps [attrs](https://github.com/python-attrs/attrs ) from 20.1.0 to 20.2.0.
- [Release notes](https://github.com/python-attrs/attrs/releases )
- [Changelog](https://github.com/python-attrs/attrs/blob/master/CHANGELOG.rst )
- [Commits](https://github.com/python-attrs/attrs/compare/20.1.0...20.2.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-09-07 06:46:51 +00:00
Brian May
19f653df36
Merge pull request #513 from drjbarker/python2-compat
...
Fix python2 server compatibility
2020-08-30 09:48:29 +10:00
Joseph Barker
ec5fb68350
Fix python2 client compatibility
...
Python2 ignores the byte string qualification (b’foo’) but falls over for the combination rb for this regexp. Switching the qualification to br appears to fix this and works in both python2 and python3.
2020-08-29 21:32:18 +09:00
Brian May
d9e5ccc19c
Merge pull request #512 from xoro/master
...
Fixed typo.
2020-08-28 16:04:49 +10:00
Joseph Barker
f23510a4fc
Fix Codacy check redefined-argument-from-local
2020-08-28 10:37:20 +09:00
Joseph Barker
459e573019
Fix flake8 line too long
2020-08-28 10:29:12 +09:00
Joseph Barker
c12d2ba5c6
Fix python2 server compatibility
...
Fixes #469 . We replace python3 exclusive code with a check for python3 and a compatibility fix. Note that the switch from os.set_nonblocking to fcntl.fcntl in 98d052d (fixing #503 ) also fixes python2 compatibility.
2020-08-28 10:04:12 +09:00
Timo Pallach
630f8c2357
Fixed typo.
2020-08-27 20:59:37 +02:00
Brian May
e8f3b53c7d
Merge pull request #511 from Rylan12/license-update
...
Change license text to LGPL-2.1
2020-08-27 08:03:26 +10:00
Rylan Polster
8ee230bca7
Change license text to LGPL-2.1
2020-08-26 12:25:36 -04:00
Brian May
abb48f1996
Update changes file
2020-08-24 08:00:36 +10:00
Brian May
1c27a6cad0
Merge pull request #510 from sshuttle/dependabot/pip/attrs-20.1.0
...
Bump attrs from 19.3.0 to 20.1.0
2020-08-21 16:42:05 +10:00
dependabot-preview[bot]
8a2d5802c1
Bump attrs from 19.3.0 to 20.1.0
...
Bumps [attrs](https://github.com/python-attrs/attrs ) from 19.3.0 to 20.1.0.
- [Release notes](https://github.com/python-attrs/attrs/releases )
- [Changelog](https://github.com/python-attrs/attrs/blob/master/CHANGELOG.rst )
- [Commits](https://github.com/python-attrs/attrs/compare/19.3.0...20.1.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-08-21 06:37:11 +00:00
Brian May
e7d4931b3d
Merge pull request #507 from ddstreet/old_py
...
allow Mux() flush/fill to work with python < 3.5
2020-08-18 07:46:59 +10:00
Brian May
1e364b2c0b
Merge pull request #509 from sshuttle/dependabot/pip/pytest-cov-2.10.1
...
Bump pytest-cov from 2.10.0 to 2.10.1
2020-08-17 19:00:50 +10:00
dependabot-preview[bot]
8816dbfd23
Bump pytest-cov from 2.10.0 to 2.10.1
...
Bumps [pytest-cov](https://github.com/pytest-dev/pytest-cov ) from 2.10.0 to 2.10.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.10.0...v2.10.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-08-17 08:18:23 +00:00
Dan Streetman
98d052d19e
allow Mux() flush/fill to work with python < 3.5
...
Fixes : #503
2020-08-15 15:12:51 -04:00
Brian May
be4b081a0d
Merge pull request #506 from sshuttle/test_parse_hostport
...
Fix parse_hostport to always return string for host
2020-08-13 07:59:12 +10:00
Brian May
9c5f1f5bbf
Fix parse_hostport to always return string for host
...
This fixes #488 and provides an alternative solution for #489 .
2020-08-13 07:53:38 +10:00
Brian May
33d09ffcaf
Merge pull request #501 from lnaundorf/patch-1
...
Add missing package in OpenWRT documentation
2020-08-12 07:56:10 +10:00
Brian May
45f8cce2f8
Merge pull request #502 from joshuarli/ref/require-remote
...
fix: require -r/--remote
2020-08-12 07:36:37 +10:00
Joshua Li
d4001c11f9
fix: workaround
2020-08-10 15:44:08 -07:00
Joshua Li
450ad79b18
Revert "fix: require -r/--remote"
...
This reverts commit 5debf1f11a51ff545b8eef034dc5d7429aa9b67c.
2020-08-10 15:31:20 -07:00
Joshua Li
5debf1f11a
fix: require -r/--remote
2020-08-10 15:12:24 -07:00
Leif Naundorf
79181043bc
Add missing package in OpenWRT documentation
...
The package 'iptables-mod-extra' also needs to be installed
2020-08-10 16:35:05 +02:00
Akimasa Shimobayashi
c0a81353ab
Fix doc about --listen option ( #500 )
...
* Can't use this option twice, separate by comma actually.
* Broke the line because it was too long.
2020-08-05 20:28:36 +10:00
Brian May
5bdf36152a
Merge pull request #498 from sshuttle/dependabot/pip/pytest-6.0.1
...
Bump pytest from 6.0.0 to 6.0.1
2020-08-01 18:07:00 +10:00
dependabot-preview[bot]
a9ee66d905
Bump pytest from 6.0.0 to 6.0.1
...
Bumps [pytest](https://github.com/pytest-dev/pytest ) from 6.0.0 to 6.0.1.
- [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.0.0...6.0.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-07-31 08:26:00 +00:00
Brian May
094d3d9b97
Merge pull request #497 from sshuttle/dependabot/pip/pytest-6.0.0
...
Bump pytest from 5.4.3 to 6.0.0
2020-07-31 07:57:58 +10:00
dependabot-preview[bot]
19b677892e
Bump pytest from 5.4.3 to 6.0.0
...
Bumps [pytest](https://github.com/pytest-dev/pytest ) from 5.4.3 to 6.0.0.
- [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/5.4.3...6.0.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-07-29 08:13:07 +00:00
Brian May
319c122861
Merge pull request #495 from AsciiWolf/patch-1
...
README: add Ubuntu
2020-07-25 08:55:57 +10:00
AsciiWolf
f4bd290919
README: add Ubuntu
2020-07-24 17:38:16 +02:00
Brian May
f353701f24
Merge pull request #490 from erikselin/42-is-not-the-answer
...
Douglas Adams and Deep Thought was wrong, 42 is not the answer
2020-07-17 11:09:04 +10:00
Erik Selin
3037a91e51
Increase IP4 ttl to 63 hops instead of 42
2020-07-16 20:51:27 -04:00
Brian May
cdd1e2c538
Merge pull request #487 from sshuttle/brianmay-patch-2
...
Fix formatting in installation.rst
2020-07-17 07:08:39 +10:00
Brian May
eb01c0b184
Fix formatting in installation.rst
2020-07-15 08:14:51 +10:00
Brian May
c5dcc918db
Add changelog entry for 1.0.3
2020-07-12 19:09:32 +10:00
Brian May
329b9cd0a0
Merge pull request #483 from chrisburr/patch-1
...
Fix formatting typos in usage docs
2020-07-05 11:00:18 +10:00
Chris Burr
5537a90338
Fix formatting typos in usage docs
2020-07-04 12:02:44 +02:00
Brian May
636e0442e5
Merge pull request #476 from sshuttle/brianmay-patch-1
...
Add missing import
2020-06-30 07:36:57 +10:00
Brian May
dc526747b1
Add missing import
...
Fixes #474 .
2020-06-27 18:54:02 +10:00
Brian May
73eb3b6479
Merge pull request #471 from wilsonehusin/deprecate-py2-setuptools
...
Restrict setuptools from executing on Python2
2020-06-18 15:27:29 +10:00
Wilson E. Husin
1b50d364c6
Ask setuptools to require Python 3.5 and above
...
python_requires will be evaluated by setuptools to ensure the package is compatible
with currently active Python interpreter.
Reference: https://packaging.python.org/guides/distributing-packages-using-setuptools/#python-requires
Closes #470
Signed-off-by: Wilson Husin <wilsonehusin@gmail.com>
2020-06-17 22:17:03 -07:00
Brian May
8c91958ff3
Prepare to release 1.0.2
2020-06-18 07:45:08 +10:00
Tony Kasparick
d2f751f0d3
leave use of default port to ssh command
...
to prevent overwriting ports configured in ~/.ssh/config
if no port is specified, don't set the port explicitly to 22
2020-06-17 08:04:35 +10:00
dependabot-preview[bot]
9d79bb82c5
Bump pytest-cov from 2.9.0 to 2.10.0
...
Bumps [pytest-cov](https://github.com/pytest-dev/pytest-cov ) from 2.9.0 to 2.10.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.9.0...v2.10.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-15 19:14:10 +10:00
Brian May
a53f026056
Merge pull request #461 from joshuarli/doc/update-py2-removal
...
doc: py2 removal clean sweep
2020-06-11 09:55:36 +10:00
Joshua Li
ae4c7e3a7b
remove outdated comment
2020-06-10 16:47:23 -07:00
Joshua Li
61bbbca956
another python 3.5 change
2020-06-10 16:46:52 -07:00
Joshua Li
e56f8f2349
server side is py3.5+
2020-06-10 16:46:10 -07:00
josh
0a36eac686
ref: replace usage of deprecated imp ( #449 )
...
* Use types instead of imp.new_module.
I can follow up with https://docs.python.org/3/library/importlib.html#importlib.util.module_from_spec if need be.
* use source loader from importlib
* Revert "use source loader from importlib"
This reverts commit 1f255704f7bf618fb7e0432e1fccef6ee22364d4.
* use inspect.getsource, but alas
* placate linter
* use find_spec to resolve a module spec to a file path
* better function naming
* remove outdated comment
2020-06-11 06:57:46 +10:00
Brian May
16b462880b
Merge pull request #460 from alekseymykhailov/fix_connection
...
fix connection with @ sign in username
2020-06-11 06:15:19 +10:00
Oleksii Mykhailov
500aa65693
fix connection with @ sign in username
2020-06-10 08:20:28 -07:00
dependabot-preview[bot]
7d998f6d42
Bump flake8 from 3.8.2 to 3.8.3
...
Bumps [flake8](https://gitlab.com/pycqa/flake8 ) from 3.8.2 to 3.8.3.
- [Release notes](https://gitlab.com/pycqa/flake8/tags )
- [Commits](https://gitlab.com/pycqa/flake8/compare/3.8.2...3.8.3 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-09 18:48:45 +10:00
Brian May
8c9dad1c6b
Fix errors in long_documentation
2020-06-05 08:19:24 +10:00
Brian May
7fde5b6fa6
Release version 1.0.0
2020-06-05 08:13:23 +10:00
Brian May
734168531f
Update changelog
2020-06-05 08:05:41 +10:00
dependabot-preview[bot]
d058d9bc93
Bump pytest from 5.4.2 to 5.4.3
...
Bumps [pytest](https://github.com/pytest-dev/pytest ) from 5.4.2 to 5.4.3.
- [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/5.4.2...5.4.3 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-03 19:44:52 +10:00
Joshua Li
1db3281c16
shutil.which is 3.3+
2020-06-03 14:30:37 +10:00
Joshua Li
bef54e778d
remove ImportError based branching
2020-06-03 14:30:37 +10:00
Joshua Li
9bcca27965
reduce
2020-06-03 14:30:37 +10:00
Joshua Li
d0f0aa9f17
remove version_info based branching
2020-06-03 14:30:37 +10:00
dependabot-preview[bot]
ec2018d664
Bump setuptools-scm from 4.1.1 to 4.1.2
...
Bumps [setuptools-scm](https://github.com/pypa/setuptools_scm ) from 4.1.1 to 4.1.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/v4.1.1...v4.1.2 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-01 19:30:15 +10:00
Brian May
c9bc389992
Remove legacy travis file
2020-05-29 07:45:49 +10:00
Brian May
9f27c1943b
Updated supported Python versions
...
* Drop 2.7
* Add 3.7 and 3.8
2020-05-29 07:44:51 +10:00
Brian May
6c21addde9
Fix Python 3.8 file operations
...
Under Python 3.8 we can not wrap a File in a Sock.
Note this currently requires Python >= 3.5
2020-05-29 07:44:51 +10:00
dependabot-preview[bot]
4b320180c4
Bump setuptools-scm from 4.1.0 to 4.1.1
...
Bumps [setuptools-scm](https://github.com/pypa/setuptools_scm ) from 4.1.0 to 4.1.1.
- [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/v4.1.0...v4.1.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-27 20:53:12 +10:00
dependabot-preview[bot]
994ce07466
Bump setuptools-scm from 4.0.0 to 4.1.0
...
Bumps [setuptools-scm](https://github.com/pypa/setuptools_scm ) from 4.0.0 to 4.1.0.
- [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/v4.0.0...v4.1.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-26 19:38:26 +10:00
dependabot-preview[bot]
34197c492c
Bump setuptools-scm from 3.5.0 to 4.0.0
...
Bumps [setuptools-scm](https://github.com/pypa/setuptools_scm ) from 3.5.0 to 4.0.0.
- [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/v3.5.0...v4.0.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-26 07:26:46 +10:00
dependabot-preview[bot]
75eaac7e06
Bump pytest-cov from 2.8.1 to 2.9.0
...
Bumps [pytest-cov](https://github.com/pytest-dev/pytest-cov ) from 2.8.1 to 2.9.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.8.1...v2.9.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-26 07:26:15 +10:00
dependabot-preview[bot]
b0c87b01b7
Bump flake8 from 3.8.1 to 3.8.2
...
Bumps [flake8](https://gitlab.com/pycqa/flake8 ) from 3.8.1 to 3.8.2.
- [Release notes](https://gitlab.com/pycqa/flake8/tags )
- [Commits](https://gitlab.com/pycqa/flake8/compare/3.8.1...3.8.2 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-26 07:25:59 +10:00
dependabot-preview[bot]
cf32a5cfa8
Bump flake8 from 3.6.0 to 3.8.1
...
Bumps [flake8](https://gitlab.com/pycqa/flake8 ) from 3.6.0 to 3.8.1.
- [Release notes](https://gitlab.com/pycqa/flake8/tags )
- [Commits](https://gitlab.com/pycqa/flake8/compare/3.6.0...3.8.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-22 08:10:45 +10:00
dependabot-preview[bot]
f674aacdc8
Bump setuptools-scm from 1.15.6 to 3.5.0
...
Bumps [setuptools-scm](https://github.com/pypa/setuptools_scm ) from 1.15.6 to 3.5.0.
- [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/v1.15.6...v3.5.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-21 08:17:31 +10:00
dependabot-preview[bot]
432f86f253
Bump attrs from 19.1.0 to 19.3.0
...
Bumps [attrs](https://github.com/python-attrs/attrs ) from 19.1.0 to 19.3.0.
- [Release notes](https://github.com/python-attrs/attrs/releases )
- [Changelog](https://github.com/python-attrs/attrs/blob/master/CHANGELOG.rst )
- [Commits](https://github.com/python-attrs/attrs/compare/19.1.0...19.3.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-21 08:15:06 +10:00
Brian May
b63e58f494
Create github workflow
2020-05-21 08:12:26 +10:00
Brian May
88ce5c0bca
Update flake8
2020-05-21 08:12:26 +10:00
dependabot-preview[bot]
50a4c36635
Bump pytest from 3.4.2 to 5.4.2
...
Bumps [pytest](https://github.com/pytest-dev/pytest ) from 3.4.2 to 5.4.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/3.4.2...5.4.2 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-21 07:58:44 +10:00
dependabot-preview[bot]
25461c70a3
Bump pytest-cov from 2.6.0 to 2.8.1
...
Bumps [pytest-cov](https://github.com/pytest-dev/pytest-cov ) from 2.6.0 to 2.8.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.6.0...v2.8.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-21 07:55:53 +10:00
jtagcat
365d30de14
Add 'My VPN broke and need a solution fast' to the docs.
2020-05-15 07:23:43 +10:00
Mark Heiges
6e19496fb7
remove debug message for getpeername failure
2020-05-10 14:20:38 +10:00
Mark Heiges
534ad8dfed
fix crash triggered by port scans closing socket
2020-05-10 14:20:38 +10:00
Mike Reider
535eb62928
sshuttle as service link
2020-05-10 14:19:36 +10:00
tobigrimm
966fd0c523
Fix parsing of hostnames to allow ssh aliases defined in ssh configs) ( #418 )
...
* Fix parsing of hostnames to allow ssh aliases defined in ssh configs)
* nicer formatting, pep8 applied
* Properly parse IPv6 addresses with port specification
* Now also handles hostnames with port specified and IPv6 addresses without port properly
* Updated parameter description for the remotehost specification
* Make the urlparse import backwards compatible to python2
Co-authored-by: Tobi <tobi-git@grimm.gr>
2020-04-25 09:40:39 +10:00
vBlackOut
580462156e
# Fix 410 Issue Correcte syntax write for connect server ( #411 )
2020-03-28 17:44:28 +11:00
vBlackOut
9e78abd2c2
Add password in prompt cmd ( #401 )
...
* Add auto password prompt
Add auto password with sshpass
use user:password@host or user:password:port@host
* Update ssh.py
* Fix for IPv4 only
* Delete print sorry bad commit
* ipv4 fix
* Fix IPv4 args
* Fix for ipv6
* Fix ipv6 no password
* Add function parse_hostport
* Fix minor bug detect port
* Fix minor bug password detect
* Clear Code
* bad write "=" replace with "=="
* Rewrite code for more understand logical and fix minor bug
* add default define port
* delete old variable unused
* replace "==" per "is" try fix code reviews
* reback
* try define password with len
* Fix consistence variable password PR
* simplify function split ipv4 or ipv6
* clear code
2020-03-24 16:19:21 +11:00
rjharmon
e3201969b5
systemd integration doc adjustment
...
* the default NotifyAccess (=main) works now, no need to suggest =all
2020-03-24 16:15:41 +11:00
rjharmon
9b10df21b6
Arrange systemd notification to clarify the meaning
...
* this spot in the lifecycle is precisely when we know that the
remote server is running AND that the local firewall-control
daemon is started.
2020-03-24 16:15:41 +11:00
rjharmon
accb4ecc97
Run all systemd notifications from main process
2020-03-24 16:15:41 +11:00
Chris Lawrence
ee36cc0d00
Trap UnicodeError to handle cases where hostnames returned by DNS are invalid.
2020-03-24 16:13:33 +11:00
Brian May
f0c13eafe9
Fix formatting error in CHANGES.rst
2020-02-09 19:45:13 +11:00
Brian May
36d34b18da
Fix various errors in documentation
2020-02-09 19:45:13 +11:00
Julian Wollrath
3edeb726b8
Simplify nftables based method
2020-02-07 07:53:47 +11:00
Haw Loeung
6e9c58b4b4
Fixed, removed unused imports
2020-02-04 07:41:29 +11:00
Haw Loeung
13db89916a
Added nft_chain_exists() and fixed nft to use that
2020-02-04 07:41:29 +11:00
Haw Loeung
84076f29fa
Handle when default chains already exists ( #392 )
2020-02-04 07:41:29 +11:00
Nathan Aclander
ad31ac4e18
Link Directly to TCP Over TCP Explanation
...
See Below was confusing because it linked to the entire documentation section.
This provides a direct link to the section explaining why TCP over TCP is a bad idea.
2019-12-13 15:56:57 +11:00
William Mantly
69d3f7dc64
Auto sudoers file ( #269 )
...
* added sudoers options to command line arguments
* added sudoers options to command line arguments
* template for sudoers file
* Added option for GUI sudo
* added support for GUI sudo
* script for auto adding sudo file
* sudoers auto add works and validates
* small change
* Clean up for CI
* removed code that belongs in another PR
* added path for package bins
* added sudoers bin
* added sudoers-add to setup file
* fixed issue with sudoers bash script
* auto sudoers now works
* added --sudoers-no-modify option
* bin now works with ./run
* removed debug print
* Updated sudoers-add script
* Fixed error passing sudoers config to script
* more dynamic building of sudoers file
* added option to specify sudoers.d file name
* fixed indent issue
* fixed indent issue
* indent issue
* clean up
* formating
* docs
* fix for flags
* Update usage.rst
* removed shell=true
* cleared CI errors
* cleared CI errors
* removed random
* cleared linter issue
* cleared linter issue
* cleared linter issue
* updated sudoers-add script
* safer temp file
* moved bin directory
* moved bin directory
* removed print
* fixed spacing issue
* sudoers commands must only containe upper case latters
2019-12-13 08:15:31 +11:00
Ben Wiederhake
6ad4473c87
Make hostwatch locale-independent ( #379 )
...
* Make hostwatch locale-independent
See #377 : hostwatch used to call netstat and parse the result,
without setting the locale.
The problem is converting the binary output to a unicode string,
as the locale may be utf-8, latin-1, or literally anything.
Setting the locale to C avoids this issue, as netstat's source
strings to not use non-ASCII characters.
* Break line, check all other invocations
2019-11-09 11:27:57 +11:00
Joseph Barker
23516ebd71
Add option for latency control buffer size
...
This commit resolves #297 , allowing the buffers used in the latency control to be changed with a command line option ‘--latency-buffer-size’.
We do this by changing a module variable in ssnet.py (similar to the MAX_CHANNEL variable) which seems to be the simplest code change without extensive hacking.
Documentation is also updated.
2019-11-08 08:01:52 +11:00
Joseph Barker
c69b9d6f4b
Fix broken string substitution from a765aa32
...
The changes in a765aa32 removed a more complex pieced of code for parsing which sudo command to use. The %(eb)s no longer refers to any variable and is directly printed to the command line.
%(eb)s is now replaced with ‘sudo’.
2019-10-27 14:47:55 +11:00
Li-Wen Hsu
2d92090625
README: add FreeBSD
2019-10-24 07:25:51 +11:00
Norman Rasmussen
502b36e990
Add tproxy udp port mark filter that was missed in #144 , fixes #367 .
2019-10-13 11:45:04 +11:00
unl89
fe1df00be7
readme: add Nix
2019-10-03 11:12:29 +10:00
Brian May
a32689d030
Lock version of attrs
...
Latest version of attrs breaks pytest, see:
https://stackoverflow.com/questions/58189683/typeerror-attrib-got-an-unexpected-keyword-argument-convert
2019-10-03 11:08:39 +10:00
Nick Sokolov
a7193f508a
Fix capturing of local DNS servers
...
Regression was introduced in #337 that is skipping all local traffic,
including DNS. This change makes UDP port 53 (DNS) LOCAL traffic to be
treated as special case.
Fixes #357
2019-09-22 10:37:49 +10:00
unl89
7ebff92637
docs: openwrt
2019-09-22 10:34:27 +10:00
Nick Sokolov
138d2877c6
Fix crashing on ECONNABORTED
...
In certain cases socket.connect fails with ECONNABORTED, which is
treated as "unknown" error causing sshuttle to crash.
Fixes #356
2019-09-22 10:32:37 +10:00
Anthony Cornehl
21ef365c59
The size of pf_rule grew in OpenBSD 6.4
2019-09-22 10:29:28 +10:00
Anthony Cornehl
a765aa3235
Use prompt for sudo, not needed for doas
2019-09-22 10:28:19 +10:00
cptpcrd
71f2248b07
Fix Arch linux installation instructions
...
`pacman -Sy` does a partial upgrade, which is specifically documented as being unsupported.
2019-07-25 07:42:26 +10:00
José Augusto
935393b261
update readme to correct flag for arch linux.
...
Correct the install flag for arch linux installation example.
2019-06-21 07:34:28 +10:00
Daniel Jeffery
3e2ad68796
Fix tests for existing PR-312 ( #337 )
...
* use addrtype match to return the LOCAL trafik
* Add assertion for the new LOCAL firewall rule added in PR 312.
* Fix linter complaints
2019-06-08 12:12:21 +10:00
Jeremy Eder
635cf8605e
Add install instructions for Fedora
2019-06-08 10:34:53 +10:00
Elijah Lynn
cb917d7e6c
Add install instructions for Arch Linux
2019-04-04 12:31:10 +11:00
Thomas Bouve
4372c6c117
Hyphen in hostname fix
2019-02-14 14:14:56 +11:00
Thomas Bouve
4e945ca4de
assembler import fix ( #319 )
...
* assembler import fix.
* Added noqa to import statements.
2019-02-14 12:11:11 +11:00
Bastian Venthur
3bfb975ed9
Fix/pep8 ( #277 )
...
* 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
2019-02-11 09:59:13 +11:00
Brian May
752a953101
Release 0.78.5
2019-01-28 16:28:57 +13:00
Brian May
61f4cd9de5
Update CHANGES.rst for new release
2019-01-28 11:36:14 +13:00
Vasil Kolev
8e35f049e2
auto-nets: retrieve routes only if using auto-nets
...
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.
2019-01-28 08:53:51 +13:00
Alex Tomlins
0e99adc5d1
Fix potential deadlock condition in nft_get_handle
...
This was susceptible to the same deadlock issue that ipt_chain_exists
had and was fixed in d43db80 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.
2019-01-23 18:53:45 +13:00
Alex Tomlins
04849df7e3
Use subprocess.check_output instead of run
...
subprocess.run only exists for python3, and this needs to also support
python 2.7
2019-01-23 18:53:45 +13:00
André Draszik
531a17c151
docs: document --ns-hosts --to-ns and update --dns
...
--ns-hosts is available since commit d2ee34d71c0e
("dns: Added --ns-hosts to tunnel only some requests")
(released as v0.72), but was never documented.
--to-ns is available since commit be559fc78b88
("Fix case where there is no --dns.") after several
bugfixes, released as v0.78.4, but was never
documented.
2018-12-29 15:02:18 +11:00
Alex Tomlins
d43db80dec
Fix deadlock with iptables with large ruleset
...
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.
2018-12-09 18:03:54 +11:00
David Landry
0b1a260436
Fix typo in docs
2018-12-03 14:34:42 +11:00
Todor Gaidarov
efc854c33e
Document --version option
2018-11-29 08:02:58 +11:00
João Vieira
ca41026c89
Changes pf exclusion rules precedence
...
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."
2018-11-03 12:24:32 +11:00
Brian May
b473b91633
Close stdin, stdout, and stderr when using syslog or forking to daemon ( #283 )
...
* Close stdin, stdout, and stderr when using syslog or forking to daemon
Fixes #139
* Ensure we close devnull after use
2018-11-01 09:27:50 +11:00
João Vieira
7a54d12f80
Fixes support for OpenBSD (6.1+) ( #282 )
...
* 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+
2018-10-23 07:31:29 +11:00
Bastian Venthur
d4bbf3b68d
Added coverage report to tests
2018-10-17 20:54:28 +11:00
AbbalYouness
41f5b3e9c1
replace path /dev/null by os.devnull
2018-10-17 20:53:06 +11:00
Bastian Venthur
c780597de3
updated bandit config
2018-10-17 20:52:04 +11:00
Bastian Venthur
d085a419b2
updated path
2018-10-17 20:52:04 +11:00
Bastian Venthur
842768f9cf
Moved sshuttle/tests into tests to.
...
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.
2018-10-17 20:52:04 +11:00
Brian May
97ed2030f3
Fix missing string formatting argument
2018-10-07 11:30:41 +11:00
Brian May
6dc368bde8
Merge pull request #271 from usabilla/no-sudo-pythonpath
...
Add --no-sudo-pythonpath option
2018-09-22 17:57:33 +10:00
Steven McDonald
f528bb9846
Add --no-sudo-pythonpath option
...
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.
2018-09-21 18:48:31 +02:00
tony godshall
561b648e4b
works on ChromeOS with Crostini VM ( #262 )
...
* 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
2018-08-25 10:30:45 +10:00
Brian May
0dba8a8beb
Don't crash if we can't look up peername
...
Peername is only used for information display messages.
Fixes #259
2018-08-21 08:36:51 +10:00
David Patino
7b6f082454
Doc Update
...
Remove reference to autossh per
https://github.com/sshuttle/sshuttle/issues/143
2018-06-29 07:38:55 +10:00
Daisuke Taniwaki
1ec17e1b1b
Update README.rst
2018-06-22 16:02:11 +10:00
Benedikt Waldvogel
cecccc2efd
Doc: Fix typo
2018-06-07 07:00:17 +10:00
desbma
db69ba6d8d
Doc: Improve Systemd service recommendation ( fixes #238 )
2018-06-03 07:38:21 +10:00
Ivan Shvedunov
2bb92cd6d4
Fix sudo/doas
...
Fixes #227
2018-05-13 20:35:18 +10:00
evitalis
ae5bd28dcf
Add doas support for client
2018-05-09 17:46:33 +10:00
Antoine POPINEAU
55bd78fd43
Fix line length for CI.
2018-04-30 07:40:58 +10:00
Antoine POPINEAU
1f5ed9c66e
Fix concatening string to tuple. Allow for forwarding a single port.
2018-04-30 07:40:58 +10:00
Brian May
6ec42adbf4
Prepare for 0.78.4
2018-04-02 14:52:22 +10:00
Brian Hill
2200d824bf
Improve formatting
2018-03-22 07:59:10 +11:00
Brian Hill
9715a1d6f2
Preserve peer and port properly
2018-03-22 07:59:10 +11:00
Brian Hill
8bfc03b256
Make --to-dns and --ns-host work well together
2018-03-22 07:59:10 +11:00
Brian May
884bd6deb0
Remove test that fails under OSX
...
Fixes #213
2018-03-16 18:40:32 +11:00
Brian May
a215f1b227
Remove Python 2.6 from automatic tests
...
Automatic python 2.6 testing is becoming harder, especially as pytest
3.4.2 is unavailable for Python 2.6.
2018-03-16 18:34:15 +11:00
Brian May
11455d0bcd
Various updates to tests
2018-03-16 18:27:50 +11:00
Brian May
74acc10385
Add entries to .gitignore
2018-03-16 18:10:09 +11:00
Brian May
084bf5f0f2
Specify pip requirements for tests
2018-03-16 18:10:09 +11:00
Julian Wollrath
1940b524f1
Add nat-like method using nftables instead of iptables
2018-03-13 07:36:00 +11:00
cclauss
d11f5b9d16
Use flake8 to find Python syntax errors or undefined names
2018-02-22 18:02:36 +11:00
Quentin Santos
93b969a049
Fix compatibility with the sudoers file
...
Starting sshuttle without having to type in one's password requires to
put the sudo-ed command in the `/etc/sudoers` file. However, sshuttle
sets an environment variable, which cannot be done as-is in the sudoers
file. This fix prepend the /usr/bin/env command, which allows one to
pass fixed environment variables to a sudo-ed command.
In practice, the sub-command:
```
sudo PYTHONPATH=/usr/lib/python3/dist-packages -- \
/usr/bin/python3 /usr/bin/sshuttle --method auto --firewall
```
becomes
```
sudo /usr/bin/env PYTHONPATH=/usr/lib/python3/dist-packages \
/usr/bin/python3 /usr/bin/sshuttle --method auto --firewall
```
2018-02-16 08:07:02 +11:00
Ivan Ramello
f27b27b0e8
Stop using SO_REUSEADDR on sockets
2018-02-16 08:04:22 +11:00
cclauss
fc08fb4086
Declare 'verbosity' as global variable to placate linters
2018-02-15 21:34:05 +11:00
Petr Blaho
e82d5a8e7c
Adds 'cd sshuttle' after 'git' to README and docs
2018-02-15 07:37:15 +11:00
vieira
d9d61e6ab2
Documentation for loading options from configuration file
2018-01-30 17:08:30 +11:00
vieira
179bb107e1
Load options from a file
...
This small change will allow a file path to be passed as argument from which
the command line options will be loaded.
Extra command line options can be passed (in addition to those already in the
file) and existing ones can be overriden.
Example sshuttle.conf file:
192.168.0.0/16
--remote
user@example.com
Example sshuttle call:
sshuttle @/path/to/sshuttle.conf
Example sshuttle call with verbose flags added:
sshuttle @/path/to/sshuttle.conf -vvv
Example sshuttle call overriding the remote server:
sshuttle @/path/to/sshuttle.conf -r otheruser@test.example.com
2018-01-30 17:08:30 +11:00
kroozo
9a176aa96f
Update firewall.py
2018-01-01 09:35:41 +11:00
Becz Tamás
6b48301b86
move sdnotify after setting up firewall rules
2018-01-01 09:35:41 +11:00
Dario Bertini
be90cc8abd
Fix tests on Macos
...
Swap hardcoded AF_INET(6) values for Python-provided values as they
differ between Darwin and Linux (30 vs 10 for AF_INET6 for instance).
2018-01-01 09:33:41 +11:00
Brian May
512396e06b
Add changelog entry about fixed license
2017-11-16 19:57:33 +11:00
Brian May
7a71ae1380
Remove trailing whitespace
2017-11-16 18:06:33 +11:00
Brian May
3a6f6cb795
Add changes entry for next release
2017-11-16 18:06:01 +11:00
Henri Yandell
81ab587698
Updating per @brianmay correspondence in https://github.com/sshuttle/sshuttle/issues/186
2017-11-16 18:05:39 +11:00
vieira
817284c2f8
Use more standard filename and format for bandit conifguration
2017-11-13 11:58:43 +11:00
vieira
71d65f3831
Fixes some style issues and minor bugs
2017-11-13 11:58:43 +11:00
Tony
9f238ebca8
Properly decode seed hosts argument in server.py
...
When I starting sshuttle with option `--seed-hosts example.com`, got the following error:
```
hostwatch: Starting hostwatch with Python version 3.5.2
hostwatch: Traceback (most recent call last):
---> File "sshuttle.server", line 144, in start_hostwatch
---> File "sshuttle.hostwatch", line 272, in hw_main
---> File "sshuttle.hostwatch", line 234, in check_host
---> File "sshuttle.hostwatch", line 32, in _is_ip
---> File "/usr/lib/python3.5/re.py", line 163, in match
---> return _compile(pattern, flags).match(string)
---> TypeError: cannot use a string pattern on a bytes-like object
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "assembler.py", line 37, in <module>
File "sshuttle.server", line 393, in main
File "sshuttle.ssnet", line 596, in runonce
File "sshuttle.server", line 324, in hostwatch_ready
sshuttle.helpers.Fatal: hostwatch process died
```
It seems like the list of hosts is not properly decoded on the server side. This is an attempt to fix that.
2017-11-11 10:06:37 +11:00
vieira
9b315746d1
Using exec in the assembler is okay
2017-11-09 12:02:31 +11:00
vieira
6a488b3db9
Initial configuration for Bandit and Prospector
...
With this configuration it should be feasible to achieve a perfect score
without contortion.
Rules skiped for Bandit:
B101: assert_used
B104: hardcoded_bind_all_interfaces
B404: import_subprocess
B603: subprocess_without_shell_equals_true
B606: start_process_with_no_shell
B607: start_process_with_partial_path
Rules skiped for pylint:
- too-many-statements
- too-many-locals
- too-many-function-args
- too-many-arguments
- too-many-branches
- bare-except
- protected-access
- no-else-return
2017-11-09 12:02:31 +11:00
vieira
112931dd2c
Changes methods that do not reference the instance to static methods
2017-11-08 16:17:06 +11:00
vieira
ad676029c7
Fix no value passed for argument auto_hosts in hw_main call
2017-11-08 16:17:06 +11:00
vieira
47030e846b
Remove trailing whitespaces
2017-11-08 16:17:06 +11:00
vieira
416636fa9b
Mock socket bind to avoid depending on local IPs being available in test box
2017-11-07 10:08:16 +11:00
vieira
4300a02343
Remove unused variable 'timeout'
2017-11-07 10:08:16 +11:00
vieira
4e8c5411b5
Also register por for dns proxy and for pairs in use by other procs
2017-11-07 10:08:16 +11:00
vieira
6cdc4da1e4
Fixes UDP and DNS proxies binding to the same socket address
...
As suggested by @colinmkeith the UDP and DNS proxies should listen on different
ports otherwise the DNS proxy can get traffic intended to the UDP proxy (or
vice-versa) and handle it incorrectly as reported in #178 .
At first sight it seems that we had the code in place to try another port if
the one we are binding is already bound, however, with UDP and REUSEADDR the
OS will not refuse to bind two sockets to the same socket address, so both
the UDP proxy and DNS proxy were being bound to the same pair.
2017-11-07 10:08:16 +11:00
vieira
8add00866c
turn off debugging
2017-10-23 06:58:21 +11:00
vieira
94ea0a3bed
nested if should be and
2017-10-23 06:58:21 +11:00
vieira
9b7ce2811e
Use versions of python3 greater than 3.5 when available (e.g. 3.6)
...
Some Linux distros, like Alpine, Arch, etc and some BSDs, like FreeBSD, are
now shipping with python3.6 as the default python3. Both the client and the
server are failing to run in this distros, because we are specifically looking
for python3.5.
These changes make the run shell script use python3 if the version is greater
than 3.5, otherwise falling back as usual.
On the server any version of python3 will do, use it before falling back to
python, as the server code can run with any version of python3.
2017-10-23 06:58:21 +11:00
vieira
7726dea27c
Test double restore (ipv4, ipv6) disables only once; test kldload
2017-10-21 12:10:31 +11:00
vieira
3635cc17ad
Load pf kernel module when enabling pf
...
When the pf module is not loaded our calls to pfctl will fail with
unhelpful messages.
This change spares the user the pain of decrypting those messages and manually
enabling pf. It also keeps track if pf was loaded by sshuttle and unloads on
exit if that was the case.
Also fixed the case where both ipv4 and ipv6 anchors were added by sshuttle
but the first call of disable would disable pf before the second call had the
chance of cleaning it's anchor.
2017-10-21 12:10:31 +11:00
vieira
ae13316e83
Just skip empty lines of routes data instead of stopping processing
2017-10-19 13:45:34 +11:00
vieira
e173eb6016
Skip empty lines on incoming routes data
...
If we receive no routes from server or if, for some reason, we receive
some empty lines, we should skip them instead of crashing.
Fixes on of the problems in #147 .
2017-10-19 13:45:34 +11:00
vieira
29cd75b6f7
Make hostwatch find both fqdn and hostname
...
Currently hostwatch only adds hostnames even when FQDNs are available.
This commit changes found_host so that when the name is a FQDN, both the FQDN
and an hostname are added, e.g., given api.foo.com both api and api.foo.com
will be added.
Fixes #151 if merged.
N.B.: I rarely use hostwatch, it would probably be a good idea to get feedback
from people who actually use it before merging. Not too sure about this...
2017-10-17 07:12:06 +11:00
vieira
4c50be0bc7
Use getaddrinfo to obtain a correct sockaddr
...
While with AF_INET sockaddr is a 2-tuple composed by (address, port),
with AF_INET6 it is a 4-tuple with (address, port, flow info, scope id).
We were always passing a 2-tuple to socket.connect which would fail whenever
the address was, for instance, a link-local IPv6 address that needs a scope id.
With this change we now use getaddrinfo to correctly compute the full tuple.
Fixes #156 .
2017-10-15 12:43:04 +11:00
max
2fa0cd06fb
Route traffic by linux user
2017-09-17 15:33:34 +10:00
William Entriken
4d8b758d32
Add homebrew instructions
...
Per https://github.com/apenwarr/sshuttle/pull/45/files
2017-08-03 13:55:04 +10:00
vieira
4e8c2b9c68
Avoid port forwarding from loopback address
...
When doing port forwarding on lo0 avoid the special case where the
traffic on lo0 did not came from sshuttle pass out rule but from the lo0
address itself. Fixes #159 .
2017-07-29 17:15:32 +10:00
Itamar Turner-Trauring
be559fc78b
Fix case where there is no --dns.
2017-07-18 17:15:03 +10:00
Itamar Turner-Trauring
d2e97a60f7
Add new option for overriding destination DNS server.
2017-07-18 17:15:03 +10:00
Itamar Turner-Trauring
cdbb379910
Talk to custom DNS server on pod, instead of the ones in /etc/resolv.conf
2017-07-18 17:15:03 +10:00
Brian May
b65bb29023
Update changelog for 0.78.3
2017-07-09 09:12:04 +10:00
Brian May
c093b4bd96
Get version for sphinx from sshuttle.version
2017-07-09 09:08:48 +10:00
Brian May
e76d1e14bd
Fix error in requirements.rst
2017-07-09 09:08:48 +10:00
Brian May
6c6a39fefa
Pin version in requirements.txt
2017-07-09 09:08:48 +10:00
Brian May
714bd9f81b
Update setup.cfg
2017-07-09 09:08:48 +10:00
Brian May
c746d6f7db
Update and reformat changelog
2017-07-09 09:08:48 +10:00
vieira
f9361d7014
Order first by port range and only then by swidth
...
This change makes the subnets with the most specific port ranges come
before subnets with larger, least specific, port ranges. Before this
change subnets with smaller swidth would always come first and only for
subnets with the same width would the size of the port range be
considered.
Example:
188.0.0.0/8 -x 0.0.0.0/0:443
Before: 188.0.0.0/8 would come first meaning that all ports would be
routed through the VPN for the subnet 188.0.0.0/8
After: 0.0.0.0/0:443 comes first, meaning that port 443 will be
excluded for all subnets, including 188.0.0.0/8. All other ports of
188.0.0.0/8 will be routed.
2017-05-08 16:56:42 +10:00
João Vieira
c4a41ada09
Adds support for tunneling specific port ranges ( #144 )
...
* Adds support for tunneling specific port ranges
This set of changes implements the ability of specifying a port or port
range for an IP or subnet to only tunnel those ports for that subnet.
Also supports excluding a port or port range for a given IP or subnet.
When, for a given subnet, there are intercepting ranges being added and
excluded, the most specific, i.e., smaller range, takes precedence. In
case of a tie the exclusion wins.
For different subnets, the most specific, i.e., largest swidth, takes
precedence independent of any eventual port ranges.
Examples:
Tunnels all traffic to the 188.0.0.0/8 subnet except those to port 443.
```
sshuttle -r <server> 188.0.0.0/8 -x 188.0.0.0/8:443
```
Only tunnels traffic to port 80 of the 188.0.0.0/8 subnet.
```
sshuttle -r <server> 188.0.0.0/8:80
```
Tunnels traffic to the 188.0.0.0/8 subnet and the port range that goes
from 80 to 89.
```
sshuttle -r <server> 188.0.0.0/8:80-89 -x 188.0.0.0/8:80-90
```
* Allow subnets to be specified with domain names
Simplifies the implementation of address parsing by using
socket.getaddrinfo(), which can handle domain resolution, IPv4 and IPv6
addresses. This was proposed and mostly implemented by @DavidBuchanan314
in #146 .
Signed-off-by: David Buchanan <DavidBuchanan314@users.noreply.github.com>
Signed-off-by: João Vieira <vieira@yubo.be>
* Also use getaddrinfo for parsing listen addr:port
* Fixes tests for tunneling a port range
* Updates documentation to include port/port range
Adds some examples with subnet:port and subnet:port-port.
Also clarifies the versions of Python supported on the server while
maintaining the recommendation for Python 2.7, 3.5 or later.
Mentions support for pfSense.
* In Py2 only named arguments may follow *expression
Fixes issue in Python 2.7 where *expression may only be followed by
named arguments.
* Use right regex to extract ip4/6, mask and ports
* Tests for parse_subnetport
2017-05-07 13:18:13 +10:00
vieira
ef83a5c573
Work around non tabular headers in BSD netstat
...
netstat outputs some headers in BSD (that the Linux version does not)
that are not tabular and were breaking our 'split line into columns
and get nth column' logic. We now skip such headers.
Should fix #141 .
2017-04-05 13:11:08 +10:00
S-trace
af9ebd0f4b
Fix UDP and DNS support on Python 2.7 with tproxy method
...
There was runtime failure on UDP or DNS processing, because "socket" was redefined to PyXAPI's socket_ext in tproxy.py, but still was plain Python's socket in client.py
Fixed https://github.com/sshuttle/sshuttle/issues/134 for me
2017-02-21 16:42:18 +11:00
vieira
9a9015a75e
Fixed tests after adding support for iproute2
2017-02-11 09:07:50 +11:00
vieira
d7d24f956b
Small refactoring of netstat/iproute parsing
2017-02-11 09:07:50 +11:00
vieira
809fad537f
Add support for iproute2
...
`netstat` has been deprecated for some time and some distros might
start shipping without it in the near future. This commit adds support
for `ip route` and uses it when available.
2017-02-11 09:07:50 +11:00
Stephen Levine
abce18cfc2
Allow remote hosts with colons in the username
2017-02-11 09:02:28 +11:00
Ermal Luci
5e90491344
Re-introduce ipfw support for sshuttle on FreeBSD with support for --DNS option as well
...
Sponsored-by: rsync.net
2017-01-28 11:36:26 +11:00
vieira
e8ceccc3d5
Add support for PfSense
...
PfSense is based on FreeBSD and its pf is pretty close to the one
FreeBSD ships, however some structures have different fields and two
offsets had to be fixed.
2017-01-15 19:08:53 +11:00
vieira
e39c4afce0
Set started_by_sshuttle False after disabling pf
...
We set it to true when we enable pf, but do not set it back to False
after disabling. When using IPv4 and IPv6 we end up trying to disable
twice which procudes an error while undoing changes in FreeBSD 11.
2017-01-09 10:07:38 +11:00
vieira
0e52cce9d1
Fix punctuation and explain Type=notify
...
Added missing full stops and explain that Type=notify is needed in the
systemd service unit.
2016-10-30 10:58:03 +11:00
vieira
6d5d0d766f
Tests and documentation for systemd integration
...
Some tests and documentation for the systemd notification feature.
Also fixes some corner case issues detected while writing the tests.
2016-10-30 10:58:03 +11:00
vieira
08fb3be7a0
Move pytest-runner to tests_require
...
As it is only required to run the tests move pytest-runner from
setup_requires to tests_require as suggested by @jonathanunderwood
on #115 .
2016-10-29 12:04:22 +11:00
Jason Woods
fee5868196
Fix warning: closed channel got=STOP_SENDING
2016-10-28 08:25:21 +11:00
vieira
fbbcc05d58
Support sdnotify for better systemd integration
...
These changes introduce support for sdnotify allowing sshuttle to notify
systemd when it finishes connecting to the server and installing
firewall rules, and is ready to tunnel requests.
2016-10-24 17:54:33 +11:00
Joao Vieira
15b394da86
Fix #117 to allow for no subnets via file (-s)
...
This should fix an issue introduced in #117 where when no subnets are
given via file (-s file) the variable is None instead of an empty list
and the concatenation with the subnets given as positional parameters
fails.
2016-10-13 17:52:58 +11:00
Felix Dreissig
0ed5ef9a97
Fix argument splitting for multi-word arguments
...
By just splitting at spaces, multi-word arguments are torn apart even if
quoted. In case of custom ssh-cmd, this makes it practically impossible
to set certian options through `ssh -o`.
shlex splits arguments like a shell and e.g. respects quotes.
2016-10-04 18:19:59 +11:00
vieira
c0c3612e6d
Allow subnets to be given only by file (-s)
...
This should fix #116 . Handling this while still having the positional
arguments and -s both write to the same list turned out to be more
complicated than it's worth so each writes to their own variable and we
merge them at the end.
2016-09-27 08:12:39 +10:00
Brian May
0033efca11
Merge pull request #113 from RichiH/patch-1
...
requirements.rst: Fix mistakes
2016-09-05 07:32:38 +10:00
Richard Hartmann
ae6e25302f
requirements.rst: Fix mistakes
2016-09-04 18:54:12 +02:00
Brian May
ffd95fb776
Fix typo, space not required here
2016-09-01 18:38:13 +10:00
Brian May
acb5aa5386
Update installation instructions
...
Closes #111 .
2016-09-01 18:37:39 +10:00
Brian May
4801ae6627
Support using run from different directory
2016-08-30 19:03:46 +10:00
Brian May
f57ad356b9
Ensure we update sshuttle/version.py in run
2016-08-30 18:52:26 +10:00
Brian May
a441a03e57
Don't print python version in run
2016-08-30 18:52:06 +10:00
Brian May
d2fdb6c029
Add CWD to PYTHONPATH in run
2016-08-30 18:51:19 +10:00
Brian May
2c20a1fd5a
New release
2016-08-06 18:58:00 +10:00
Brian May
915f72de35
Add changes for next release
2016-08-06 18:52:26 +10:00
Brian May
1ffc3f52a1
Merge pull request #108 from vieira/pf-ipv6
...
IPv6 support for OSX and BSDs
2016-07-29 07:57:35 +10:00
vieira
8520ea2787
Use == instead of is to compare with AF_INET
2016-07-27 23:18:25 +00:00
vieira
6a394deaf2
Fixes missing comma from tuple in pf tests
2016-07-27 23:06:36 +00:00
vieira
83d5c59a57
Tests for IPv6 on pf
2016-07-27 22:17:02 +00:00
vieira
1cfd9eb9d7
Be more specific and consistent in some pf rules
2016-07-27 22:15:47 +00:00
vieira
f8d58fa4f0
IPv6 support for BSD and OSX
...
Adds IPv6 support for OpenBSD and OSX.
2016-07-24 22:04:29 +00:00
vieira
d2d5a37541
AF_INET6 is different between BSDs and Linux
...
AF_INET is the same constant on Linux and BSD but AF_INET6
is different. As the client and server can be running on
different platforms we can not just set the socket family
to what comes in the wire.
2016-07-24 22:02:17 +00:00
vieira
e9be2deea0
Exclude the IP where sshuttle is really listening
...
We were always excluding 127.0.0.1/8 but sshuttle might be listening on
other IP, e.g., ::1 for IPv6 or any other defined with -l
2016-07-24 21:58:20 +00:00
Brian May
22b1b54bfd
Add pytest-runner support
2016-07-10 11:26:32 +10:00
vieira
a43c668dde
Fixes type mismatch between str and bytes
...
Should fix issue #104 .
2016-07-09 22:49:12 +00:00
Huiqiang Liu
e0dfb95596
Fix OpenBSD pf test failure
2016-06-17 17:18:43 +08:00
Huiqiang Liu
5d28ce8272
Merge pull request #1 from vieira/patch-1
...
Add <forward_subnets> to divert rule in OpenBSD
2016-06-17 08:25:59 +08:00
João Vieira
f876c5db5e
Add <forward_subnets> to divert rule in OpenBSD
...
Fixes bug where all traffic routed to loopback would end up being diverted to the same port.
2016-06-16 22:34:19 +01:00
Huiqiang Liu
2e1beefc9a
Hack pf to enable multiple instances in Mac OS X 10.10 and above
2016-06-16 12:31:02 +08:00
Dan Lenski
5a20783baa
tweak docs to match @vieira's changes
2016-05-02 21:40:53 -07:00
vieira
495b3c39ea
Seed hosts without auto hosts
...
A possible implementation for the change requested in #94 , so that seed
hosts can be used without auto hosts. In this scenario only the
specified hosts (or ips) will be looked up (or rev looked up).
2016-05-03 00:18:32 +00:00
Brian May
f3cbc5018a
Fix PEP8 issues
2016-04-30 18:08:46 +10:00
Brian May
e73e797f33
Update files list
2016-04-30 18:05:47 +10:00
Brian May
1d64879613
Fix tests
2016-04-23 13:19:06 +10:00
Brian May
8fad282bfd
Ensure locale is set to C for external commands
...
Otherwise the output can vary and confuse our attempts to parse it.
Fixes: 93
2016-04-23 12:53:45 +10:00
Brian May
1dda9dd621
Add ENETUNREACH to NET_ERRS
...
We shouldn't come up with a fatal error because of a ENETUNREACH when
trying to contact the DNS server. Although this error shouldn't happen
either.
Fixes #89 .
2016-04-20 15:18:59 +10:00
vieira
74e308a29f
Don't mix tab and spaces in shell script
...
Sometime ago I was in python mode and incorrectly indented a line of the
shell script with spaces instead of tabs. Shame on me. This should bring
things back to their natural order.
2016-04-20 15:17:07 +10:00
vieira
516ff7bc4a
Correctly obtains the python executable to use
...
Previously the sshuttle shell script would pass the python to use as the
first argument of the command. The new run script no longer does this.
Instead we can obtain the python being used via sys.executable.
Fixes #88 .
2016-04-20 15:15:44 +10:00
Brian May
89c5b57019
Attempt readthedocs workaround
...
readthedocs alters docs/conf.py which in turn means python_scm detects a
version and incorrectly adjusts the version number. Here we try to work
around this problem.
We do this by renaming the docs/conf.py file and copying it back to
docs/conf.py when setup.py is invoked. This way, hopefully, scm won't
see the changes to docs/conf.py
References:
http://stackoverflow.com/questions/35811267/readthedocs-and-setuptools-scm-version-wrong/36386177
https://github.com/pypa/setuptools_scm/issues/84
2016-04-18 11:44:05 +10:00
Brian May
a8b288338b
Release version 0.78.0
2016-04-08 12:01:37 +10:00
Brian May
6fd02933dd
Revert "Test for RTD"
...
This reverts commit 7ea2d973c7baf2aa6e9920b8b87c68f32884cf4a.
2016-04-08 12:00:45 +10:00
Brian May
7ea2d973c7
Test for RTD
2016-04-06 11:28:41 +10:00
Brian May
8ec5d1a5ac
Update changes
...
In preparation for new release.
2016-04-05 21:14:50 +10:00
vieira
4241381d82
Backward compatibility with Python 2.4 (server)
...
It is often the case that the user has no administrative control over
the server that is being used. As such it is important to support as
many versions as possible, at least on the remote server end. These
fixes will allow sshuttle to be used with servers that have only
python 2.4 or python 2.6 installed while hopefully not breaking the
compatibility with 2.7 and 3.5.
2016-04-03 13:14:02 +10:00
vieira
6e15e69029
Support multiple subnet files (multiple -s options)
...
When passing multiple subnet files, e.g., by using -s/--subnets
multiple times or by using it together with subnets passed as positional
arguments append the content from all sources instead of only using the
subnets from the last source. This makes the behaviour of -s/--subnets
consistent with -x/--exclude.
2016-03-31 11:46:12 +11:00
vieira
8fa45885cc
Remove --server option
...
As @brianmay observed in #82 this option is no longer used and can be
dropped.
2016-03-28 22:01:54 +00:00
Brian May
b8160c4a37
Fix pep8 issues
2016-03-22 13:19:32 +11:00
vieira
05bacf6fd6
Use argparse for command line options
...
Fixes the kind of problems reported on #75 but does break the command
line "API" (hopefully).
2016-03-22 13:12:59 +11:00
Brian May
dea3f21943
Write more server tests
2016-03-16 18:24:43 +11:00
Brian May
d522d1e1bd
Split client/server tests
...
This allows disabling all client tests using a conftest.py file, if for
example #56 gets merged and the server supports more python versions
then the server.
The server side tests are very incomplete.
2016-03-16 17:40:48 +11:00
Brian May
3541e4bdfe
Fix shell quoting
...
Due to nested shells, we need to have multiple layers of quoting. Yuck.
Closes #80
2016-03-16 16:38:22 +11:00
vieira
efdb9b8f94
If 3.5 not available, try to fallback to 2.7
...
In situations where 2.7 is available and some unsupported 3.x is the
system's default we should probably fallback to 2.7 instead of the
default (that might be e.g. 3.4). This might fix #78 .
2016-03-16 16:16:53 +11:00
Andrew Gillham
7875d1b97a
Explicitly call /bin/sh for compatibility with non POSIX shells.
...
The fish shell doesn’t support ‘||’ and requires a ‘—python python’
workaround. This change explicitly calls /bin/sh for the remote shell
commands.
2016-03-08 15:30:59 -08:00
Brian May
2b0d0065c7
Don't force IPv6 if IPv6 name servers
...
Just because we may have found IPv6 DNS servers from /etc/resolv.conf
doesn't mean we should force IPv6 support.
Instead we should disable the IPv6 DNS servers if IPv6 is disabled.
Note: this will also result in any IPv6 servers specified on the command
line being silently ignored too.
Specifying an IPv6 subnet will still require IPv6 support.
Closes #74
2016-03-08 18:49:47 +11:00
Brian May
9e3f02c199
Fix LGPL2 license.
2016-03-07 10:03:22 +11:00
Brian May
8bdefcd10d
Release 0.77.1
2016-03-07 09:46:01 +11:00
Brian May
29b6e8301f
Update GPL2 license text
...
Closes #73 .
2016-03-06 17:27:02 +11:00
Brian May
083293ea0d
Version 0.77
2016-03-03 10:38:33 +11:00
Brian May
2c07985924
Prepare documentation for release
2016-03-03 10:35:45 +11:00
Brian May
756025b1bc
Add date and version to docs
2016-03-03 10:30:20 +11:00
vieira
cedc8dc146
Add support for OpenBSD
2016-03-02 18:50:37 +11:00
Brian May
e8047ce3a9
Fixed Python 3 issue
2016-03-02 18:38:43 +11:00
vieira
fae4cb1dbf
Override the skip on lo that ends up in the chain
...
In some cases (see #43 ) it seems that some network configurations may
end up setting a skip on lo. As sshuttle adds rules that rely on
filtering/translating packets on lo, this causes problem. This fix
overrides the skip and makes the rules be applied again.
Should fix at least some of the problems reported on #43 .
2016-03-02 18:36:14 +11:00
vieira
7d8309ef05
Refactor OS specific portions of PF
...
This will make it easier to support other platforms/versions in the
future, e.g., OpenBSD.
2016-03-02 18:04:43 +11:00
Brian May
b7d37e44fb
Remove legacy file
2016-03-02 12:47:45 +11:00
Matt Boswell
4a954c547a
fix byte/string bug introduced in 1c46f25e
...
This is the error message that this commit fixes:
TypeError: sequence item 142: expected a bytes-like object, str found
Complete what 1c46f25e started, more or less.
2016-01-31 16:26:21 -05:00
Brian May
4fcf7c73da
Fix regression: ensure we do bind
...
Closes : #68
2016-01-31 19:15:02 +11:00
Brian May
ba8e948c0d
Don't allocate socket until we need it
...
Wew were trying to allocate an IPv6 socket even though we weren't using
IPv6, causing failures on systems without IPv6 support available.
This change means a number of methods on MultiListener, e.g. setsockopt,
should not be called until after the bind call.
Closes #68
2016-01-30 11:28:59 +11:00
Brian May
e06f0240cb
Make sure we use Python 3.5
2016-01-30 11:27:37 +11:00
Veljko Tornjanski
517fc2c930
Remove references to number of years
...
Closes : #65
2016-01-21 08:42:34 +11:00
KS Chan
11533869a8
Fix description of excludes in Windows setup
...
And some subtle grammar.
Closes : #66
2016-01-21 08:38:38 +11:00
Brian May
0392a779a2
Update usage documentation
2016-01-20 21:19:44 +11:00
Brian May
ee26157faa
Add Windows documentation
...
Copied from https://coderwall.com/p/adfxgw/sshuttle-on-windows
Closes #64
2016-01-20 20:55:10 +11:00
Brian May
0bdfb883aa
Don't distribute sshuttle/version.py
...
It is autogenerated.
2016-01-18 09:00:00 +11:00
Brian May
ff9756f290
Release version 0.76
2016-01-17 18:38:43 +11:00
Brian May
59865269ac
Update documentation
...
Closes #60 .
2016-01-17 18:34:10 +11:00
Brian May
28017303f2
Add link to documentation
2016-01-17 18:20:42 +11:00
Brian May
c5af6fef8c
Remove table.
...
Suspect it is causing sphinx to crash on readthedocs. See
https://github.com/sphinx-doc/sphinx/issues/1871
2016-01-17 18:07:52 +11:00
Brian May
6835183b37
Attempt work around of sphinx bug
2016-01-17 17:58:48 +11:00
Brian May
242c266e7d
Move recvmsg to requirements
2016-01-17 17:58:36 +11:00
Brian May
7408ab3c53
Remove coverage
...
Not required as we are not documenting the source code.
2016-01-17 17:24:13 +11:00
Brian May
ea10ff1305
Fix broken link.
2016-01-17 16:43:25 +11:00
Brian May
d9939b8460
Add changelog to documentation
2016-01-17 16:37:47 +11:00
Brian May
80f363842d
Add requirements.txt for readthedocs
2016-01-17 16:32:53 +11:00
Brian May
262affe94f
Use Sphinx for documentation
...
See #60
2016-01-17 16:19:13 +11:00
shaiay
d80b590a71
Fix joining of seed hosts to be compatible with python 3.5
...
this should also be backwards compatible with python 2
2016-01-17 12:05:23 +11:00
Brian May
7f0b5c698b
Fix installation from wheel
...
Fix the following error. Looks like we have to have a function to call
for the entrypoint.
$ pip install dist/sshuttle-0.76.dev8_ngf59508f-py2-none-any.whl
Processing ./dist/sshuttle-0.76.dev8_ngf59508f-py2-none-any.whl
Installing collected packages: sshuttle
Exception:
Traceback (most recent call last):
File "/tmp/ddd/local/lib/python2.7/site-packages/pip/basecommand.py", line 211, in main
status = self.run(options, args)
File "/tmp/ddd/local/lib/python2.7/site-packages/pip/commands/install.py", line 311, in run
root=options.root_path,
File "/tmp/ddd/local/lib/python2.7/site-packages/pip/req/req_set.py", line 646, in install
**kwargs
File "/tmp/ddd/local/lib/python2.7/site-packages/pip/req/req_install.py", line 803, in install
self.move_wheel_files(self.source_dir, root=root)
File "/tmp/ddd/local/lib/python2.7/site-packages/pip/req/req_install.py", line 998, in move_wheel_files
isolated=self.isolated,
File "/tmp/ddd/local/lib/python2.7/site-packages/pip/wheel.py", line 479, in move_wheel_files
maker.make_multiple(['%s = %s' % kv for kv in console.items()])
File "/tmp/ddd/local/lib/python2.7/site-packages/pip/_vendor/distlib/scripts.py", line 364, in make_multiple
filenames.extend(self.make(specification, options))
File "/tmp/ddd/local/lib/python2.7/site-packages/pip/_vendor/distlib/scripts.py", line 353, in make
self._make_script(entry, filenames, options=options)
File "/tmp/ddd/local/lib/python2.7/site-packages/pip/_vendor/distlib/scripts.py", line 244, in _make_script
script = self._get_script_text(entry).encode('utf-8')
File "/tmp/ddd/local/lib/python2.7/site-packages/pip/wheel.py", line 396, in _get_script_text
"import_name": entry.suffix.split(".")[0],
AttributeError: 'NoneType' object has no attribute 'split'
2016-01-17 10:21:21 +11:00
Brian May
f59508f41b
Be explicit
...
These files were included, however just to make sure.
2016-01-13 20:51:09 +11:00
Nathan Aclander
329867a090
Move pyXAPI requirement
2016-01-13 19:34:20 +11:00
Brian May
1e82571b3d
Experimental: Use setuptools-scm
...
Closes : #58
2016-01-13 19:00:08 +11:00
Nathan Aclander
aab973f12e
Small grammar changes
2016-01-13 19:00:08 +11:00
Nathan Aclander
d982b36521
Remove verbose debugging from example usage
2016-01-13 19:00:08 +11:00
Nathan Aclander
a90877b49b
Use correct rst formatting for inline monospace
2016-01-13 19:00:08 +11:00
Nathan Aclander
fc5545ccde
Remove a print from tproxy used for debug
...
Closes : #61
2016-01-13 19:00:08 +11:00
Nathan Aclander
629c386dc5
Add the option to disable sshuttle ipv6 support
...
Using --disable-ipv6 will now force sshuttle not to capture
ipv6 traffic, even if the client supports ipv6.
2016-01-12 13:07:07 +11:00
Brian May
45f572f7a8
Version 0.75
2016-01-12 12:29:08 +11:00
Brian May
e7fe040e10
Revert "fixes the sshuttle entry-point in setup.py"
...
See #57 for details.
This reverts commit b4b283b2145f937248e90032d6944178278fb1f5.
2016-01-12 12:25:04 +11:00
Brian May
2e237b8fbe
Remember to increment version.
2016-01-10 10:05:50 +11:00
Brian May
098916a8de
Version 0.74
2016-01-10 10:02:14 +11:00
Brian May
d3624332dc
Fix documentation.
...
Should work even with different python versions on client and server.
2016-01-10 10:01:47 +11:00
zimbatm
b4b283b214
fixes the sshuttle entry-point in setup.py
...
This fixes the following error:
"import_name": entry.suffix.split(".")[0],
AttributeError: 'NoneType' object has no attribute 'split'
See
https://pythonhosted.org/setuptools/setuptools.html#automatic-script-creation
2016-01-09 20:04:58 +00:00
vieira
1c46f25e13
Fixed str being used as bytes in hostwatch
...
This should solve the TypeError reported in #53 and some others I found
while testing the fix.
Closes : #53
2016-01-07 14:16:03 +11:00
vieira
11838d65c2
Adds support for FreeBSD PF
...
The PF firewall that is included in the FreeBSD base system does not
have exactly the same data structures as the OSX version. This commit
fixes the offsets and some field types that are also different. Tested
with FreeBSD 10.2 and OSX 10.11.2.
2016-01-05 18:00:57 +11:00
Brian May
e433c599e4
IPv6 routes must be added manually
2015-12-15 14:26:39 +11:00
Brian May
ba60d22478
Add another test.
2015-12-15 14:23:42 +11:00
Brian May
3db38c992a
Replace numbered points with dot points.
2015-12-15 14:23:19 +11:00
Brian May
1e81bf3dfc
Mirror setup/restore logic
2015-12-15 13:39:00 +11:00
Brian May
7362ba9f52
If listenip_v6 we should declare ipv6 required
2015-12-15 13:31:03 +11:00
Brian May
b207d1d0d6
Fixes for --auto-nets
2015-12-15 13:30:34 +11:00
Brian May
56e3b22820
Add FIXME comment.
2015-12-15 13:29:04 +11:00
Brian May
02fa49627f
Fix server side Python3 issues.
...
Closes : #49 .
2015-12-15 12:51:29 +11:00
Brian May
ce5187100c
Add to TPROXY documentation
2015-12-15 11:48:34 +11:00
Brian May
bdc7d3a97c
Fix UDP Python 3.5 issues.
...
Closes : #48
2015-12-15 11:41:48 +11:00
Brian May
90654b4fb9
Simplify selection of features
2015-12-15 11:40:55 +11:00
Brian May
6b4e36c528
Declare DNS support as feature
2015-12-14 21:00:31 +11:00
Brian May
eed917f062
Don't declare udp feature without recvmsg
2015-12-14 20:59:26 +11:00
Brian May
74f2d9ca7e
Ensure Fatal errors are really Fatal
2015-12-14 20:51:49 +11:00
Brian May
1e04eb1616
Updates to TPROXY docs.
2015-12-14 20:27:47 +11:00
vieira
117afc7a68
Fixed dictionary changed size during iteration
...
The removal loop should probably be outside the iteration loop.
2015-12-14 16:46:11 +11:00
Brian May
c61984088b
Test PF on non-darwin.
2015-12-14 09:28:43 +11:00
Brian May
e63e121354
Print PF rules used.
...
Also support multiline debug output better.
2015-12-14 09:21:15 +11:00
Brian May
2b235331d0
Split setup_firewall method.
...
* setup_firewall sets the firewall up.
* restore_firewall restores the firewall to initial state.
2015-12-13 11:56:18 +11:00
vieira
2eeea9536a
Fixed str being used as bytes in daemonize
2015-12-09 16:32:39 +11:00
vieira
9a77d03edf
Respect --syslog as soon as possible
...
When executing with the option --syslog start redirecting to
syslog immediately after the command line options are validated.
This way when using with some init daemon, e.g., upstart all the
relevant information (connection failures, etc) can be retrieved from
the log instead of being lost to stdout or stderr.
2015-12-09 14:46:11 +11:00
Brian May
4fdd715bc1
Don't change object while iterating
...
Closes : #40
2015-12-09 10:29:40 +11:00
Brian May
bea723c598
Add tox.ini file.
2015-12-07 13:17:09 +11:00
Brian May
1ae4fce6b3
Fix logging with pf method and Python 3.5
2015-12-07 13:16:47 +11:00
Brian May
118171af7f
Fix get_tcp_dstip with MacOSX/Python3.5
2015-12-07 07:14:26 +11:00
Brian May
3367124e6b
Fix more brokenness.
2015-12-06 11:45:49 +11:00
Brian May
aaa6062329
Remove IPFW support.
...
This is no longer used by modern MacOSX and not getting tested.
It also required a do_wait() function which was a complication for
sshuttle as a whole.
Can get resurrected if required.
2015-12-06 11:33:52 +11:00
Brian May
da4ce19121
Fix MacOSX tests.
2015-12-06 11:24:38 +11:00
Brian May
12d4b304c3
Fix another MacOSX/Python3.5 issue.
2015-12-06 11:24:11 +11:00
Brian May
bd97506f7d
Fixup firewall tests.
2015-12-06 11:02:31 +11:00
Brian May
53c07f7d90
hostmap shouldn't be global.
2015-12-06 11:00:12 +11:00
Brian May
7e0c1534df
Be more explicit
2015-12-06 10:58:51 +11:00
Brian May
a3fbf860ff
Fix more MacOSX/Python3.5 issues.
2015-12-05 20:21:36 +11:00
Brian May
7a9e36d211
Fix MacOSX/Python3.5 issues.
...
Closes : #36 .
2015-12-05 16:41:33 +11:00
Brian May
65e81d51c6
Try Python3.5 by default.
...
Python 3.0, 3.1, 3.2, and 3.4 not supported however.
2015-12-05 14:41:22 +11:00
Brian May
43084eb49a
Fix typo.
2015-12-05 14:40:33 +11:00
Brian May
bbb4d31c3f
Add accidentally removed line.
2015-12-05 14:39:07 +11:00
Brian May
f7682d4c33
Make firewall messages consistent
2015-12-05 14:26:20 +11:00
Brian May
d07a775d50
Don't fail if can't revert errors
...
We will log the errors, however no point in failing; not only can this
hide errors that occured setting up the firewall, but is pointless as we
can't actually handle these errors in a good way anyway.
2015-12-05 14:14:01 +11:00
Brian May
50a6e87237
Don't use Xtoken if not set
2015-12-05 14:12:57 +11:00
Brian May
ed0a92e714
Remove reference to obsolete global
2015-12-05 14:12:24 +11:00
Brian May
36a1d7ead9
Python 3.5 fix.
2015-12-01 10:29:24 +11:00
Brian May
43d6ad6a51
Print Python version used for the various stages.
2015-12-01 10:03:24 +11:00
Brian May
5ab76a6ba9
Merge pull request #33 from felixonmars/master
...
Fix bug reported by @matiwinnetou in #31
2015-12-01 09:47:41 +11:00
Felix Yan
61f9ae6fb4
Fix bug reported by @matiwinnetou in #31
2015-11-30 23:45:24 +08:00
Brian May
191df92824
Ensure tempfiles are chmod 600
2015-11-28 16:13:56 +11:00
Brian May
6dfbc467c0
Ensure verbose is never None.
...
None >= 1 not valid under Python3.
Fixes #31 .
2015-11-28 16:03:01 +11:00
Brian May
c06c972039
Prefer Python3 by default.
2015-11-28 16:02:47 +11:00
Brian May
da62fe5b80
Merge pull request #30 from felixonmars/master
...
Add tests_require into setup.py
2015-11-27 20:01:30 +11:00
Felix Yan
698351cf44
Add tests_require into setup.py
...
pytest and mock are needed for running tests.
2015-11-27 12:52:03 +08:00
Brian May
13457c773b
Improve summary line.
2015-11-27 14:28:52 +11:00
Brian May
780997e8a7
New release 0.73.
2015-11-27 14:22:09 +11:00
Brian May
d41579c265
Add comment about IPFW support.
2015-11-27 14:18:16 +11:00
Brian May
974f9aee81
Remove legacy Debian packaging.
...
This needs to be redone; will do so at a later stage.
2015-11-27 14:13:45 +11:00
Brian May
4252e81fb0
Update documentation.
2015-11-27 14:13:18 +11:00
Brian May
7e10fc0756
Add to debugging messages.
2015-11-25 13:06:43 +11:00
Brian May
2c2ee12e58
Formatting change.
2015-11-25 12:59:48 +11:00
Brian May
256ed7d244
Fix reversed debug messages.
2015-11-25 12:59:17 +11:00
Brian May
151634cd8c
Fix typo setting up UDP.
2015-11-25 12:58:39 +11:00
Brian May
c0748c2388
Support IPV6 DNS servers.
...
Closes #28 .
2015-11-24 12:23:17 +11:00
Brian May
71d46d77bf
Add sock paramater to Handler callbacks
...
As Handler objects can have multiple sockets, we need to know which one
was involved in the incoming event.
2015-11-24 12:19:31 +11:00
Brian May
c1083e983f
Pass correct method back from firewall.
...
Don't pass auto back.
2015-11-24 12:08:12 +11:00
Brian May
9944b97629
Remove legacy MACOSX files.
...
Broken and not been maintained in some time. See #21 .
2015-11-24 07:17:19 +11:00
Brian May
eaad54f68b
Add FIXME comment.
2015-11-18 20:08:15 +11:00
Brian May
6ebf76a5d8
Avoid hardcoding packed address lengths.
2015-11-18 20:07:41 +11:00
Brian May
51eb7862c4
Fix tests under PyPy.
2015-11-18 20:07:03 +11:00
Brian May
75b6865a1d
Tests for pf method.
2015-11-17 20:52:31 +11:00
Brian May
e3a1c56e54
Add more methods tests.
...
Fix bug in tproxy recv_udp() method.
2015-11-17 17:55:30 +11:00
Brian May
99050aacb3
Fix for Python3.5.
2015-11-17 13:14:28 +11:00
Brian May
021e6f57af
Add more tests.
2015-11-17 13:08:12 +11:00
Brian May
9cc6d63684
Fix firewall tests.
2015-11-17 12:46:35 +11:00
Brian May
43566ebda6
Remove unused import.
2015-11-17 10:58:44 +11:00
Brian May
537899c1df
Remove unused function.
2015-11-17 10:58:29 +11:00
Brian May
641a193d3d
Use readline instead of next.
2015-11-17 09:39:53 +11:00
Brian May
71d17e449e
Disable Python 2.6 tests
...
importlib is Python 2.7 only.
2015-11-17 09:33:46 +11:00
Brian May
9d443e4155
Don't use nested.
...
Is Python 2.x only. Not supported under Python 3.x.
2015-11-17 09:32:40 +11:00
Brian May
cf0aaa7134
Fix PYTHONPATH for tests.
2015-11-17 09:28:58 +11:00
Brian May
54de23aae3
Add firewall tests.
2015-11-17 09:19:20 +11:00
Brian May
ac723694bf
Restructure code
...
Pull out firewall methods code into seperate files.
Fix problems starting with method=='auto'; we were making decisions
based on the method, before the method had been finalized by the
firewall.
Only very basic testing so far. What could go wrong?
2015-11-16 18:55:56 +11:00
Brian May
bcd3205db1
Fix passing latency_control to server.
2015-11-16 11:32:17 +11:00
Brian May
a651d748cd
Remove unused code.
2015-11-16 09:23:24 +11:00
Brian May
fe48c7c026
Fix PEP8 issues.
2015-11-16 09:10:02 +11:00
Brian May
4bd6ec8f01
Remove broken su fallback.
...
Was broken by passing environment variable PYTHONPATH to process. Will
fix this if there is a use case for it.
2015-11-16 09:09:02 +11:00
Brian May
ba1cf58a6c
Add Python 3.5 support.
2015-11-16 09:09:01 +11:00
Brian May
dd8e68b6dc
More formatting fixes.
2015-11-15 17:17:16 +11:00
Brian May
1f2117917f
Fix up formatting.
2015-11-15 17:10:04 +11:00
Brian May
e6f2395dac
Fixup PEP8 issues.
2015-11-15 16:49:20 +11:00
Brian May
d4f10b232a
Restructure code
...
* Make compatible with setuptools.
* Load modules via ssh into separate modules, not the one name space.
2015-11-15 16:45:26 +11:00
Brian May
41b8ad4c97
Merge pull request #25 from vieira/ns-hosts
...
Import resolvconf_nameservers, fix wrong types
2015-11-11 13:09:59 +11:00
vieira
a82224c141
Import resolvconf_nameservers, fix wrong types
...
Add resolvconf_nameservers to the list of functions imported from
helpers.
Fixed an instance where the method client.main was being called with
ns_hosts (string obtained from optional argument --ns-hosts) instead of
nslist (list of tuples that was already being passed to other methods).
Should fix issue #24 .
2015-11-08 01:27:10 +00:00
Brian May
0fb714893a
Merge pull request #23 from vieira/ns-hosts
...
dns: Added --ns-hosts to tunnel only some requests
2015-10-29 13:13:59 +11:00
João Vieira
28be71ef9a
Removed commented out code
2015-10-27 17:53:35 +00:00
Joao Vieira
d2ee34d71c
dns: Added --ns-hosts to tunnel only some requests
...
By default, the --dns flag configures the firewall to only intercept
queries made to the nameservers defined in resolvconf. This flag enables
the user to explicitly specify the nameservers which queries will be
redirected. This can be useful when the local nameserver forwards
queries to some domains to a nameserver on the remote site of the
tunnel.
2015-10-27 17:28:52 +00:00
Brian May
3cf5002b62
Merge pull request #19 from naclander/patch-1
...
Remove no-latency-control assertion
2015-09-16 13:08:23 +10:00
Nathan Aclander
f71704f54d
Remove no-latency-control assertion
...
Remove an assertion that would fail when --no-latency-control is set.
2015-09-15 19:30:34 -07:00
Brian May
ad83059da8
Merge pull request #17 from elasticdog/master
...
Update ui-macos sources.list with new icon names
2015-09-08 12:00:50 +10:00
Aaron Bull Schaefer
d211fc28ee
Update ui-macos sources.list with new icon names
...
I looks like building the app UI for OS X has been broken since
9eced8d049
due to the sources.list.do file still referencing the old .png images.
Without this fix the build will stop at:
do chicken-tiny.png
do: Users/elasticdog/sshuttle/src/ui-macos/chicken-tiny.png: no .do file
do: Sshuttle VPN.app: got exit code 1
do: Sshuttle VPN.app.zip: got exit code 1
do: dist: got exit code 1
do: ui-macos/all: got exit code 1
do: all: got exit code 1
2015-09-07 18:22:30 -07:00
Brian May
f4dac68dc0
Merge pull request #16 from prutschman/localhost_fix
...
Don't redirect excluded subsets of included subnets
2015-09-04 17:30:26 +10:00
Phil Rutschman
3a73520310
Don't redirect excluded subsets of included subnets
2015-09-03 21:25:23 -07:00
Brian May
e127aab776
Merge pull request #14 from reactormonk/patch-1
...
Switched the ./sshuttle to src/sshuttle
2015-07-26 11:15:56 +10:00
reactormonk
5f90ee1f04
Switched the ./sshuttle to src/sshuttle
2015-07-25 17:38:42 +02:00
Brian May
d70b5f2b89
Merge pull request #13 from shaiay/master
...
Fixed issue #12
2015-07-23 08:08:09 +10:00
Shai Ayal
3f2de26f67
Fixed issue #12
...
family should be an integer. fixed parsing routes
2015-07-22 22:52:25 +03:00
Brian May
53d5260f8f
Merge pull request #11 from douglas/master
...
Fix the excludes rule for OS X Yosemite and OS X El Captain
2015-06-19 17:34:14 +10:00
Douglas Soares de Andrade
f870ceba00
Fix the excludes rule for OS X Yosemite and OS X El Captain
...
Without this fix, the rdr rule is executed sending the packages that
should be excluded to the ssh tunnel.
What I did was make sure that the packages that are going to the
excluded subnets are processed first and only after that, the remaining
packages will be sent to the ssh tunnel.
Thanks Warr1024 on #openssh channel in freenode for telling me about
the quick keyword and the rest of guys in the channel who tried to help.
2015-06-18 18:09:18 -03:00
Brian May
a38963301e
Merge pull request #10 from jbd/patch-1
...
Check for fileno attribute in _tty_width function
2015-05-13 11:01:05 +10:00
jbd
bbd54e150d
Check for fileno attribute in _tty_width function
...
When using Options parser within a unittest.TextTestRunner with buffering enabled (buffer=True), it fails with:
AttributeError: StringIO instance has no attribute 'fileno'
This change will prevent this kind of error.
2015-05-12 16:43:38 +02:00
Brian May
00f20657e3
Merge pull request #9 from scommab/patch-1
...
Make firewall.py use the right params for islocal
2015-05-03 14:42:23 +10:00
Saul
84b30be904
Make firewall.py use the right params for islocal
2015-05-01 23:36:08 -07:00
Brian May
5825dddb02
Merge pull request #8 from nanoant/patch/osx-improvements
...
Patch/osx improvements
2015-04-21 09:49:18 +10:00
Adam Strzelecki
9eced8d049
OSX: New Retina compatible menu & app icon
...
This icons are using scale independent PDF template images which make menu item
icon look great on both Yosemite light & dark theme. Also adding new flatter
and higher resolution app icon.
2015-04-20 20:32:02 +02:00
Adam Strzelecki
fecb53413d
OSX: Remove status item on application quit
...
This ensures application is not leaving empty status item.
2015-04-20 20:23:20 +02:00
Adam Strzelecki
1b1ed4d495
OSX: Improve app startup time
...
Importing everything (*) from AppKit takes a while, since we got 3 scripts
doing that, startup could take up to few seconds. This change makes script
import only what they need, improving startup time to fraction of second.
2015-04-20 18:53:06 +02:00
Brian May
b19272a67a
Merge pull request #7 from xtaran/master
...
Fix the most blatant issues of the generated .deb
2015-04-20 10:39:55 +10:00
Axel Beckert
bc2a0b7fbc
Fix path to main.py in .deb
2015-04-18 14:46:55 +02:00
Axel Beckert
6a96ace497
autossh is not required but nice to have
2015-04-18 14:40:00 +02:00
Axel Beckert
163aab2ca1
Fix typo in long description of .deb
2015-04-18 14:31:30 +02:00
Axel Beckert
964977220e
Change .deb section from utils to net
2015-04-18 14:30:35 +02:00
Axel Beckert
db67834164
Add missing dependency on iptables in the .deb
2015-04-18 14:30:30 +02:00
Axel Beckert
1bc2f84d16
Use a less confusing version for .deb packages built from git
2015-04-18 14:30:30 +02:00
Axel Beckert
a229fc020c
Properly separate short and long description in .deb
2015-04-18 14:30:30 +02:00
Axel Beckert
d6e7a9b6ad
Update homepage header of .deb
2015-04-18 14:30:30 +02:00
Axel Beckert
e6ca7148fa
Fix formatting of versioned dependency in the .deb
2015-04-18 14:30:21 +02:00
Axel Beckert
95529a5137
Don't include MacOS X stuff in .deb
2015-04-18 14:30:21 +02:00
Axel Beckert
93c4af6fc8
There's no need to have hard dependency on a init system in the .deb
...
Otherwise the package is only installable on current Ubuntu releases
and neither on future Ubuntu releases (which will use systemd) nor on
Debian and other Debian derivatives (where the administrator can
decided which init system is used).
2015-04-18 14:30:16 +02:00
Axel Beckert
2ca9aaa450
The .deb is and needs to be architecture-independent
2015-04-18 14:14:33 +02:00
Brian May
2cfc39fac8
Fix UDP channel expiration.
2015-04-12 09:59:49 +10:00
Brian May
29819ea0af
Merge pull request #6 from lkorth/patch-1
...
Fix clone url in README
2015-04-11 10:15:20 +10:00
Luke Korth
e43a40565b
Fix clone url in README
2015-04-09 09:22:31 -07:00
Brian May
57d1cb1e11
Merge pull request #5 from seanzxx/yosemite_support_sudo_fix
...
fix sudo issue in yosemite
2015-03-23 14:11:16 +11:00
Sean Zeng
6e32d1445a
add -e/-d support
2015-03-21 22:43:12 -07:00
Sean Zeng
bdad253ef5
fix mistake
2015-03-21 15:36:42 -07:00
Sean Zeng
49c55f6825
use -E/-X to enable/disable pf on yosemite
2015-03-21 15:28:17 -07:00
Sean Zeng
1874aaceb4
refine firewall initlization
2015-03-21 00:00:15 -07:00
Sean Zeng
4c31bc02a4
add anchor rule directly
2015-03-20 18:21:00 -07:00
Sean Zeng
84047089a9
fix sudo issue
2015-03-19 02:43:11 -07:00
Brian May
8be9270fdb
Merge pull request #4 from seanzxx/yosemite_support
...
Yosemite support
2015-03-19 09:55:39 +11:00
Sean Zeng
10dc229125
fix bootstrapping issue when pf started before
2015-03-18 09:25:41 -07:00
Sean Zeng
cd77ad5e7b
refine error message
2015-03-15 22:53:08 -07:00
Sean Zeng
c13cb9b8ca
optimize the ctypes import
2015-03-15 22:45:32 -07:00
Sean Zeng
0fe48a4682
initial support for pf in yosemite
2015-03-15 22:34:40 -07:00