Stern inaktivStern inaktivStern inaktivStern inaktivStern inaktiv
 

I just had to tunnel inside a VPN to be able to connect to my home network. I tried OpenVPN and Wireguard but had issues to get it working. Therefore I decided to use ssh tunneling inside the existing VPN. There is a nice too called sshuttle available which easily allows to tunnel any requests through ssh.

 

 

Unfortunately I had an connection setup issue. I I used

sshuttle --dns -r <user>Diese E-Mail-Adresse ist vor Spambots geschützt! Zur Anzeige muss JavaScript eingeschaltet sein!:22 0.0.0.0/0 -vv

but every time I got

packet_write_wait: Connection to <ip> port 22: Broken pipe

It took me some time to detect in sshuttle github there's an issue which face a lot of people. For some reasons I don't understand you have to exclude the target host in the command. So that's the command to use to get rid of the broken pipe error:

sshuttle --dns -r <user>Diese E-Mail-Adresse ist vor Spambots geschützt! Zur Anzeige muss JavaScript eingeschaltet sein!:22 -x <hostname> 0.0.0.0/0 -vv

and sshuttle will work perfectly :-)


Kommentar schreiben

*** Hinweis ***

Kommentare sind erwünscht. Aber um lästige Spamposts abweisen zu können gibt es ein paar Dinge die zu beachten sind:
  1. Kommentare mit dem Text http werden sofort zurückgewiesen mit der Meldung Sie sind nicht berechtigt den Tag zu verwenden. zz
  2. Kommentare werden manuell überprüft und es dauert deshalb in der Regel einen Tag bis sie veröffentlicht werden.