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 :-)