Star InactiveStar InactiveStar InactiveStar InactiveStar Inactive
 

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>This email address is being protected from spambots. You need JavaScript enabled to view it.: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>This email address is being protected from spambots. You need JavaScript enabled to view it.:22 -x <hostname> 0.0.0.0/0 -vv

and sshuttle will work perfectly :-)


Add comment

*** Note ***

Comments are welcome. But in order to reject spam posts please consider following rules:
  1. Comments with string http are rejected with message You have no rights to use this tag
  2. All comments are reviewed by hand and thus it usually takes one day until a comment will be published.