Accessing Your Proxy Remotely With SSH

Posted: November 30, 2009 in archlinux, Debian, Slackware

In order to use the proxy remotely, from your remote machine create an SSH tunnel to the proxy server/port:

ssh -p 22 username@ssh-server-ip -L 8080:proxy-server-ip:proxy-port -N

Where… “-p 22” is the default port of your SSH server (change it if it is different), “username” is your username on the SSH server, “ssh-server-ip” is the IP address of your remote SSH server, “proxy-server-ip” is the local IP address of your proxy server (i.e. its internal address, 192.168.1.whatever – If the SSH server and proxy server are on the same machine, use 127.0.0.1), and “proxy-port” is the… proxy port (8080 if you’ve been following along).

Now, you can go into a web browser on your remote machine, to proxy settings, and for the IP of the proxy server, type “localhost” OR “127.0.0.1” and for the port, 8080. Your web traffic will now be tunneled across SSH to your server, then passed to your proxy server for protected surfing!

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s