ProxyChains over SSH - chhwang/devel-note GitHub Wiki
-
Install ProxyChains via apt.
sudo apt install -y proxychains
-
Connect to the proxy server via SSH. Open a SOCKS proxy on local port 1337.
ssh -D 1337 -N <user>@<host>
-N
means port forwarding only, not executing remote commands. -
Write
proxychains.conf
file under the current directory or/etc
.[ProxyList] socks4 127.0.0.1 1337
-
Execute a command to use the proxy server.
proxychains <command>