sshuttle / sshuttle

Transparent proxy server that works as a poor man's VPN. Forwards over ssh. Doesn't require admin. Works with Linux and MacOS. Supports DNS tunneling.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] Seemingly random error

c0des1ayr opened this issue · comments

EDIT 2: Fixed by nuking and reinstalling python.
Literally an hour ago, all was fine, then suddenly, I got this error when trying to use sshuttle:

  File "<string>", line 1
    /bin/sh -c 'P=python3; $P -V 2>/dev/null || P=python; exec "$P" -c '"'"'import sys, os; verbosity=0; sys.stdin = os.fdopen(0, "rb"); exec(compile(sys.stdin.read(1702), "assembler.py", "exec")); sys.exit(98);'"'"'; exit 97'
SyntaxError: ('code: /',)
c : fatal: server died with error code 1

The only thing I did in that time was installing xonsh with pip and removing my system-package version. Did xonsh break anything perchance?
EDIT: The full -vvv log is included, if it helps:

Starting sshuttle proxy (version 1.1.2).
c : Starting firewall manager with command: ['/usr/bin/python3', '/usr/bin/sshuttle', '-v', '-v', '-v', '--method', 'tproxy', '--firewall']
fw: Starting firewall with Python version 3.11.9
fw: which() found 'iptables' at /usr/sbin/iptables
fw: which() found 'ip6tables' at /usr/sbin/ip6tables
fw: ready method name tproxy.
c : IPv6 enabled: Using default IPv6 listen address ::1
c : Method: tproxy
c : IPv4: on
c : IPv6: on
c : UDP : on
c : DNS : off (available)
c : User: off (not available with tproxy method)
c : Subnets to forward through remote host (type, IP, cidr mask width, startPort, endPort):
c :   (<AddressFamily.AF_INET: 2>, '0.0.0.0', 0, 0, 0)
c :   (<AddressFamily.AF_INET6: 10>, '::', 0, 0, 0)
c : NOTE: Additional subnets to forward may be added below by --auto-nets.
c : Subnets to exclude from forwarding:
c :   (<AddressFamily.AF_INET: 2>, '192.168.49.1', 32, 0, 0)
c :   (<AddressFamily.AF_INET: 2>, '127.0.0.1', 32, 0, 0)
c :   (<AddressFamily.AF_INET6: 10>, '::1', 128, 0, 0)
c : Trying to bind redirector on port 12300
c : TCP redirector listening on ('::1', 12300, 0, 0).
c : TCP redirector listening with <socket.socket fd=5, family=10, type=1, proto=0, laddr=('::1', 12300, 0, 0)>.
c : TCP redirector listening on ('127.0.0.1', 12300).
c : TCP redirector listening with <socket.socket fd=7, family=2, type=1, proto=0, laddr=('127.0.0.1', 12300)>.
c : UDP redirector listening on ('::1', 12300, 0, 0).
c : UDP redirector listening with <socket.socket fd=8, family=10, type=2, proto=0, laddr=('::1', 12300, 0, 0)>.
c : UDP redirector listening on ('127.0.0.1', 12300).
c : UDP redirector listening with <socket.socket fd=9, family=2, type=2, proto=0, laddr=('127.0.0.1', 12300)>.
c : Starting client with Python version 3.11.9
c : Connecting to server...
c : which() found 'ssh' at /usr/bin/ssh
c : executing: ['/usr/bin/ssh', '-p', '8022', '192.168.49.1', '--', '/bin/sh -c \'P=python3; $P -V 2>/dev/null || P=python; exec "$P" -c \'"\'"\'import sys, os; verbosity=3; sys.stdin = os.fdopen(0, "rb"); exec(compile(sys.stdin.read(1702), "assembler.py", "exec")); sys.exit(98);\'"\'"\'; exit 97\'']
c :  > channel=0 cmd=PING len=7 (fullness=0)
  File "<string>", line 1
    /bin/sh -c 'P=python3; $P -V 2>/dev/null || P=python; exec "$P" -c '"'"'import sys, os; verbosity=3; sys.stdin = os.fdopen(0, "rb"); exec(compile(sys.stdin.read(1702), "assembler.py", "exec")); sys.exit(98);'"'"'; exit 97'
SyntaxError: ('code: /',)
c : fatal: server died with error code 1