From the course: Learning VPN

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Using SSH as a SOCKS proxy

Using SSH as a SOCKS proxy

From the course: Learning VPN

Start my 1-month free trial

Using SSH as a SOCKS proxy

- [Instructor] To send web traffic through the remote SSH server and through the remote network, we can set up SSH with dynamic forwarding acting as a SOCKS proxy. To do that, I'll write ssh -D and I'll use local port 1080. And then I'll provide my credentials for the SSH server. Now, when I send traffic to SSH on local port 1080 it will dynamically deal with the traffic it gets. The SSH client on my system here is acting as a SOCKS proxy which can take web traffic and send the request elsewhere. So instead of browsing from your local computer, the traffic goes through the tunnel, to the remote system, and it appears that your traffic comes from there. This can be useful for getting around network limitations. Once the tunnel is up I need to tell my system about it. The SOCKS proxy can accommodate most kinds of traffic, though they're most frequently used for web browsing. Browsers offer a place to set up proxy information and some operating systems offer the settings as well. I'll…

Contents