Using an existing SSH Server as a proxy.

in linux •  7 years ago 

Ok this one is assuming that you already have an SSH connection that you use to access your computer. This allows you to use your SSH server as a proxy.

ssh -p (remoteport) -D (portforsocks) (remotehost) -Nf

The remote port is the port your SSH, by default it is 22 but for security purposes you should use another port.
The port for socks is the port you want to be utilized by your browser. This does not need to be configured on the server side.

-N don't run commands on the server
-f run as a damon

Be aware that this does not forward DNS requests these requests will go through your LAN by default.

After the set up tell your browser to use your proxy to connect to the web.

If you run -f and run as a damon close the connection by closing the process.

Must close through ps kill

ps -Afl|grep ssh

kill process

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!