2010年6月8日星期二

Using putty tunneling to bypass firewall

移除选定内容的格式设置During my developement, I need to open a SMSC simulator on my own PC, and let a server to connect to this simulator, but there is a firewall block the server open a connection to my PC. Here is how to use putty to configure it.

My simulator listens to port 8003, so configure putty tunnel like the following figure,

Select the type as Remote. Enter source port as 8003(you can also choose other port), and enter Destination as localhost:8003. Now the server also opens port 8003, so now you can direct all traffic to the server localhost, and the tunnel will direct the traffic to my own PC.

Attention: in the above configuration, the option "Local ports accept connections from other ports" must be checked.

没有评论: