I want to set up a Raspberry Pi on my home network that I can use as a socks proxy from work or other location (parents' house). In other words, I want to navigate the web and have it appear that it's happening from my home network regardless of where I'm connecting from.
I know this question has been asked multiple times, but I just can't seem to figure out what I'm doing wrong or missing.
I am close to making it work, but after hours and hours of searching and trying, I can't quite put it all together.
Here's what I have so far.
RPi at home ----> Linux VPS <----- me, on windows box
From the RPI, I issue the command:
ssh -f -N -T -R 2210:localhost:22 me@myVPS.com
This appears to set up the reverse tunnel on the VPS (I can see it listening on port 2210 on the VPS):
tcp 0 0 0.0.0.0:2210 0.0.0.0:* LISTEN
From my local windows workstation, I can use Putty to ssh into the Linux VPS and issue:
ssh -p 2210 RPi-account@localhost
ssh -l RPi-account -p 2210 localhost
I have keys set up on the RPI and the VPS so they can log into each other without a password.
This connects me from my windows workstation through the VPS to the RPI and I'm able to get an SSH connection to the RPi, but the socks proxy isn't working.
What I cannot figure out is how to configure the SSH command from the VPS and also Putty on my workstation to make this connection and pass the socks connection through the RPI so I can browse. I have tried many combinations of SSH tunnel configs in Putty (port forwarding, dynamic ports), but the best I can do is get a socks proxy connection that goes out to the Net from the Linux VPS (the mid-point).
From the VPS, I've tried:
ssh -p 2210 -D 8888 RPi-account@localhost
and then from Putty on my workstations I set up the connection to the VPS with a tunnel like this:
setting the socks proxy locally to 127.0.0.1 port 50000 doesn't give the browser access to the outside world.
What am I missing to allow me to socks proxy from my local workstation to the VPS and chain it to and through the RPi?