Quantcast
Channel: Server – BinaryTides
Viewing all articles
Browse latest Browse all 13

Use your Linux server as a proxy (SSH Tunnel + SOCKS Proxy Forwarding)

$
0
0
Socks proxy via ssh Tunnel
I often come across websites that block me because my isp is on some blacklist somewhere. The only option then is to access the website through some kind of proxy server, which are quite hard to find.
The best solution for me was to use my own linux servers as proxy servers. Its quite easy to convert your linux server into a socks proxy server and it works very nice.
1. Start a socks proxy server
Run the following ssh command on your local command to connect to your server and also open a socks proxy on a local port.
The port number used here is 9999, but could be anything of your choice. Just make sure that nothing else is running on the same port.
$ ssh -D 9999 user@yourserver.com
According to the ssh man page, the -D option is used for -
Specifies a local "dynamic" application-level port forwarding. This works by allocating a socket to listen to port on the local side, optionally bound to the specified bind_address. Whenever a connection is made to this port, the connection is forwarded over the secure channel, and the application protocol is then used to determine where to connect to...

Read full post here
Use your Linux server as a proxy (SSH Tunnel + SOCKS Proxy Forwarding)


Viewing all articles
Browse latest Browse all 13

Trending Articles