Use OpenSSH port forwarding to browse web from public place.
ssh(1) can act as a SOCKS server. SOCKS4 and SOCKS5 protocols are supported. All you need is shell access to remote machine.
Example:
ssh -D 4545 user@IP
Now you can specify “localhost” as SOCKS host and “4545” as SOCKS port in connections settings of your browser.
Is this really all you have to do? If so, I must be doing it wrong, as I cannot get it to work. In the past, I’ve tunneled my browsing to a proxy server (Polipo), but if this works it’d be much simpler.
My command line is
ssh -f -N -D 4545 chet@[host]
and I’ve configured my browser (FF) to use localhost 4545 as a proxy, but I’m not getting anywhere. Ideas? Is 4545 significant?
Comment by chet — September 7, 2006 @ 19:43
Your command line is right, but what type of proxy you specify in browser? You must use SOCKS, other types of proxy not supported by “-D” option of ssh.
You can use any port, but port <1024 can be opened only by root. I use port “4545” just for sample.
Comment by alenitchev — September 7, 2006 @ 21:15
Yes, I almost did the same thing, filling in the first “HTTP Proxy” field I saw in Firefox. Just skip over that and look down for “SOCKS Host”, if you’re using Firefox.
Comment by Reid — September 8, 2006 @ 18:53
Another hot tips is installing tsocks. Then you can secure any TCP/UDP application over the tunnel!
Permanent steps:
sudo apt-get install tsocks
sudo echo ’server = 127.0.0.1′ > /etc/tsocks.conf
To start the tunnel:
ssh -D 1080 user@host
Now you can secure any application by starting it through tsocks:
tsocks [arguments]
It is also useful to install either Switchproxy or FoxyProxy for firefox.
Comment by Dag Odenhall — September 8, 2006 @ 21:53
The blog didn’t escape my previous input properly.
“Now you can secure any application by starting it through tsocks:
tsocks >application
Comment by Dag Odenhall — September 8, 2006 @ 21:55
Gee, it wasn’t able to escape that either. Here we go again.
“Now you can secure any application by starting it through tsocks:
tsocks APPLICATION [arguments]”
*jeez*
Comment by Dag Odenhall — September 8, 2006 @ 21:57
another product worth looking in, Mighty Key, you do have to pay for it, but iot offers secure surfing and data backup
also use firefox as a platform
Comment by Ariel — October 14, 2006 @ 1:57
Bush and the Republicans were not protecting us on 9-11, and we aren’t a lot safer now. We may be more afraid due to george bush, but are we safer? Being fearful does not necessarily make one safer. Fear can cause people to hide and cower. What do you think? Why has bush turned our country from a country of hope and prosperity to a country of belligerence and fear.
Are we safer today than we were before?
The more people that the government puts in jails, the safer we are told to think we are. The real terrorists are wherever they are, but they aren’t living in a country with bars on the windows. We are.
Comment by Antibush — February 16, 2007 @ 9:57
Welcome to my site – Myusenet-pics
Comment by Pics — December 3, 2007 @ 5:16