I've generally considered an SSH tunnel as a poor man's VPN.
If you're going to the effort to spinup a machine, and use SSH anyway, i find it much easier to use `ssh user@server.com -D 4444` then I can set my browser's proxy settings to use localhost:4444 as a SOCKS5 proxy.
For those apps that don't have native proxy support, I use proxychains to force them over a proxy connection.
Ofcourse this is only useful for a single user, and for devices that can use ssh and proxies.
Just be careful with -D, as it is relatively easy to accidentally make it possible for other computers to use your computer as a proxy too. By default, GatewayPorts in the sshd config is set to 'no', which will prevent this from happening. However, you or someone else may have set this to 'yes' at some point for some purpose. To be safe even in that case, you may want to use 'ssh -D127.0.0.1:4444' instead of just '-D4444'.
I have accidentally opened an internal network to the public this way. (Nothing bad happened.)
Haha I came here to say just that. Using NAT and routing you can setup the machine initiating the client ssh connection to act as an internet gateway for the clients that have its IP set as their gateway. Did this with a raspberry pi before.
Easiest option in the book. The only downside I face with this is frequent captcha requests as the IP range (Hetzner/IPv6) is marked suspicious. Probably because it is flagged as a server range vs domestic.
This is what I've always done should I face some blocking or whatever - spin up the lowest tier vm on gcp in whichever region suits me, do my business, kill and bury the vm.
qiqitori|4 years ago
I have accidentally opened an internal network to the public this way. (Nothing bad happened.)
forty|4 years ago
[1] https://github.com/sshuttle/sshuttle
ShortStretto|4 years ago
rkeene2|4 years ago
https://rkeene.org/viewer/tmp/ssh-ip-tunnel.txt.htm
anotherhue|4 years ago
suifbwish|4 years ago
adevx|4 years ago
axegon_|4 years ago
daxuak|4 years ago
[1] https://github.com/darkk/redsocks
unknown|4 years ago
[deleted]
chinathrow|4 years ago