linux_wiki:ssh_proxy_tunnel

This is an old revision of the document!


SSH Proxy Tunnel

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.

Assumptions

  • You already have a SSH server setup that is accessible from the internet.

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

ssh -D 4777 -v 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
  • linux_wiki/ssh_proxy_tunnel.1416529701.txt.gz
  • Last modified: 2019/05/25 23:50
  • (external edit)