Setup a SOCKS5 proxy via SSH
mouse 4619 · person cloud · link
Last update
2018-07-25
2018
07-25
« — »
  • Have a host with SSH server installed.

  • Optional: keep alive your connection, see SSH tunnel howto and hints

  • Start the proxy with this command:

1
ssh -f -C -N -D 127.0.0.1:1080 exit.hostname
  • Configure your browser proxy settings to connect to the SOCKS5 proxy at localhost port 1080 and remember to forward DNS lookups through it.
    In Firefox open about:config and set network.proxy.socks_remote_dns = true, and if you are using FoxyProxy then also set extensions.foxyproxy.socks_remote_dns = true.

Source: Catonmat, Lifehacker

See also: tinyproxy, privoxy