Setup Firefox to use your server as a SOCKS VPN with sshd

Type: ssh -D 1337 -N -f -q -C

This starts ssh and makes it listen on port 1337.

  • -N tells ssh not to execute a remote command; needed since we're just forwarding a connection
  • -f starts the program in the background (after you enter your password for the server, if needed)
  • -q suppresses warnings
  • -C compresses the connection

Then open Firefox. Go to preferences. Then network settings. Then click manual proxy settings. Enter these details:

  • SOCKS Host:
  • Port: 1337.
  • Click SOCKS v5
  • Click Proxy DNS when using SOCKS v5.


unix ssh

Edit on github
comments powered by Disqus
Click me