Using an existing SSH Server as a proxy.

in #linux6 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

Coin Marketplace

STEEM 0.20
TRX 0.13
JST 0.030
BTC 64856.09
ETH 3426.71
USDT 1.00
SBD 2.56