linux_wiki:ssh_proxy_tunnel

This is an old revision of the document!


SSH Proxy Tunnel

General Information

You are somewhere that has a restrictive firewall/web proxy, but allows SSH. This SSH trick allows you to tunnel your web browser's traffic to your own SSH server and browse the web as if you were at home.

Checklist

  • Distro(s): Any
  • Other: You already have a remote SSH server setup that is accessible from the internet. (At home, hosted, etc)

1) Open a tunnel to your SSH server, and specify a dynamic application listening port:

ssh -D 4777 user@yourhome.com

2) Edit your browser proxy settings to use the same port SSH is listening on.

Firefox

  • Edit→Preferences→Advanced→Network→Connection→Settings…
    • Check “Manual proxy configuration”
    • SOCKS host: localhost
    • Port: 4777
    • Select SOCKSv4
    • Click OK
  • You may also have to set the “network.proxy.socks_remote_dns” value to true (http://about:config)
  • linux_wiki/ssh_proxy_tunnel.1458355792.txt.gz
  • Last modified: 2019/05/25 23:50
  • (external edit)