Home arrow Journal arrow Tunneling SSH for http use with a browser
Tunneling SSH for http use with a browser PDF
Saturday, 12 May 2012
By using SSH you can tunnel your http trafic from your browser over SSH. For that run the following command from command line:

  ssh -D 127.0.0.1:8080 This e-mail address is being protected from spam bots, you need JavaScript enabled to view it -p 22

or:

  ssh -fND 127.0.0.1:8080 This e-mail address is being protected from spam bots, you need JavaScript enabled to view it -p 22

which will run in background ( -f ), and will not run remote commands ( -N ).

Then configure your browser to use sock proxy and by adding 127.0.0.1, port 8080 (at proxy section / sock proxy in your browser).

Then all your http traffic for that browser will be tunneled through the ssh server. This is usefull to setup a quick and simple tunnel (an advanced setup would be to use VPN instead) for example if you are in a coffee shop and you are accessing a free wifi network which is not secure.

Last Updated ( Saturday, 12 May 2012 )
 
< Prev   Next >

Other BSD Systems

OpenBSD

Misc

Solaris

Polls

Best BSD firewall?