Index

Subject : Re: LUG: Question about web proxies

From : Richard Carter <rwcarter@ncsu.[redacted]>

Date : Sat, 13 Mar 2010 08:36:07 -0500

Parent


If you don't need inbound forwarding like everyone else is trying to solve, the matter of a tunnel is actually pretty simple using PuTTY. I used it last summer when I was working for a company that had strict web filtering but no outbound port blocking. It's interesting to note, by the way, that Flash and Java inside Firefox will adhere to the proxy settings, so any communications via those plugins will also be tunneled. I assume/hope that it is the same case with all other Firefox plugins but I've only tested those two.

Open PuTTY, put in the desired hostname to tunnel through (i.e. a VCL linux computer). Click SSH under Connection and check "Enable compression" (this is an optional step, I haven't actually tested speed differences but I'd like to think it might help). Then expand SSH and click Tunnels. Enter a source port (I typically choose something like 8080), leave Destination blank, change to Dynamic and optionally to IPv4, and then click Add. Now open the connection, log in, and just minimize the SSH console (leave it open! the tunnel is open only as long as this window remains open).

Now go to Firefox or your SOCKS5-compatible program that you want to tunnel through the remote computer. Go to a website like whatismyip.com and see your IP address. Now, in Firefox go to Tools > Options > Advanced, Network tab and click Settings. Change to Manual proxy configuration. Leave all the boxes blank (clear them if anything is in them) and next to SOCKS Host, put 127.0.0.1 and the source port you specified earlier (8080). Leave the radio button at SOCKS v5, and click OK and OK. Refresh the whatismyip.com page and you'll find that it has changed to the IP address of your tunnel.

These are the steps that work for me in Windows. I know that PuTTY exists in Linux, but I don't know for sure that the above steps will work.


Ricket


On Fri, Mar 12, 2010 at 8:40 PM, Daniel Underwood < daniel.underwood@ncsu.[redacted] > wrote:
What's the simplest way to route all internet traffic through a
particular server running on Linux with a static IP?  Suppose the server
has IP address 1.2.3.4.  I want all internet traffic to move as follows

[internet] <==> [1.2.3.4] <==> [my computer]

TIA,
Daniel
--
Daniel Underwood
North Carolina State University
Graduate Student - Operations Research
email: daniel.underwood@ncsu.[redacted]
phone: XXX.302.3291
web: http://www4.ncsu.edu/~djunderw/



Replies :