I've been trying to use sshuttle but I simply can't get anywhere.
I have it installed and can run it but it just outputs loads of waffle and leaves me with no command prompt so I can't see how I can possibly do anything.
I'm probably doing something stupid or not doing something vital but I can't find any tutorials that actually say 'type this' and then you will have a working sshuttle VPN.
So, does anyone here use it, or has anyone here played with it?
On Mon, Nov 08, 2021 at 10:35:39PM +0000, Chris Green wrote:
I've been trying to use sshuttle but I simply can't get anywhere.
I have it installed and can run it but it just outputs loads of waffle and leaves me with no command prompt so I can't see how I can possibly do anything.
I'm probably doing something stupid or not doing something vital but I can't find any tutorials that actually say 'type this' and then you will have a working sshuttle VPN.
So, does anyone here use it, or has anyone here played with it?
Here's what happens (well, once case of what happens) :-
root@t470# sshuttle -vNHr chris@isbd.uk Starting sshuttle proxy (version 1.0.5). fw: Starting firewall with Python version 3.9.7 fw: ready method name nat. c : IPv6 disabled since it isn't supported by method nat. c : Method: nat c : IPv4: on c : IPv6: off (not available with nat method) c : UDP : off (not available with nat method) c : DNS : off (available) c : User: off (available) c : Subnets to forward through remote host (type, IP, cidr mask width, startPort, endPort): c : NOTE: Additional subnets to forward may be added below by --auto-nets. c : Subnets to exclude from forwarding: c : (<AddressFamily.AF_INET: 2>, '127.0.0.1', 32, 0, 0) c : TCP redirector listening on ('127.0.0.1', 12300). c : Starting client with Python version 3.9.7 c : Connecting to server... chris@isbd.uk's password: s: Starting server with Python version 3.8.10 s: latency control setting = True s: auto-nets:True c : Connected to server. c : seed_hosts: [] s: available routes: s: 2/46.226.104.0/22 s: 2/92.243.24.0/22 hostwatch: Starting hostwatch with Python version 3.8.10 hostwatch: ['netstat', '-n'] failed: FileNotFoundError(2, 'No such file or directory') hostwatch: Found: isbd: 46.226.106.243 hostwatch: Found: isbd.uk: 46.226.106.243 fw: setting up. fw: iptables -t nat -N sshuttle-12300 fw: iptables -t nat -F sshuttle-12300 fw: iptables -t nat -I OUTPUT 1 -j sshuttle-12300 fw: iptables -t nat -I PREROUTING 1 -j sshuttle-12300 fw: iptables -t nat -A sshuttle-12300 -j RETURN -m ttl --ttl 63 fw: iptables -t nat -A sshuttle-12300 -j RETURN -m addrtype --dst-type LOCAL fw: iptables -t nat -A sshuttle-12300 -j RETURN --dest 127.0.0.1/32 -p tcp fw: iptables -t nat -A sshuttle-12300 -j REDIRECT --dest 46.226.104.0/22 -p tcp --to-ports 12300 fw: iptables -t nat -A sshuttle-12300 -j REDIRECT --dest 92.243.24.0/22 -p tcp --to-ports 12300 client_loop: send disconnect: Broken pipe fw: undoing changes. fw: iptables -t nat -D OUTPUT -j sshuttle-12300 fw: iptables -t nat -D PREROUTING -j sshuttle-12300 fw: iptables -t nat -F sshuttle-12300 fw: iptables -t nat -X sshuttle-12300 c : fatal: ssh connection to server (pid 8849) exited with returncode 255 root@t470#
On Mon, 8 Nov 2021 22:35:39 +0000 Chris Green cl@isbd.net allegedly wrote:
I've been trying to use sshuttle but I simply can't get anywhere.
I have it installed and can run it but it just outputs loads of waffle and leaves me with no command prompt so I can't see how I can possibly do anything.
I'm probably doing something stupid or not doing something vital but I can't find any tutorials that actually say 'type this' and then you will have a working sshuttle VPN.
So, does anyone here use it, or has anyone here played with it?
I have just installed it and run it with no problem whatsoever.
In one terminal I ran :
mick@shed ~ $ sshuttle -r sink 0.0.0.0/0 -v Starting sshuttle proxy. [local sudo] Password: firewall manager: Starting firewall with Python version 3.8.10 firewall manager: ready method name nat. IPv6 enabled: False UDP enabled: False DNS enabled: False User enabled: False TCP redirector listening on ('127.0.0.1', 12300). Starting client with Python version 3.8.10 c : connecting to server... Starting server with Python version 3.5.3 s: latency control setting = True s: auto-nets:False c : Connected. firewall manager: setting up.
iptables -t nat -N sshuttle-12300 iptables -t nat -F sshuttle-12300 iptables -t nat -I OUTPUT 1 -j sshuttle-12300 iptables -t nat -I PREROUTING 1 -j sshuttle-12300 iptables -t nat -A sshuttle-12300 -j RETURN --dest 127.0.0.1/32 -p tcp iptables -t nat -A sshuttle-12300 -j REDIRECT --dest 0.0.0.0/0 -p tcp --to-ports 12300 -m ttl ! --ttl 42
(where "sink" is one of my remote VPS machines)
And in another I then ran:
curl https://ipinfo.io/ip
and received back the IP address of sink - so it is working fine
--------------------------------------------------------------------- Mick Morgan gpg fingerprint: FC23 3338 F664 5E66 876B 72C0 0A1F E60B 5BAD D312 https://baldric.net/about-trivia ---------------------------------------------------------------------