huang zuxing blog @ home the quieter you become, the more you are able to hear.

27Feb/09Off

ssh tunnel and socket proxy

1. build tunnel using linux/unix machine

allow all traffic to localhost port 9191, and tunnel traffic to machine abc.com port 3306 , only allow to use tunnel one day.

> ssh -l huangzx -L 9191:abc.com:3306  -f -g  localhost  sleep 86000

2. build a socket proxy

on linux/unix client machine, abc.com is the machine running sshd service:

> ssh -2CNqTf  -D 3128 abc.com

In browser, set your proxy to use socket5  proxy , host: localhost  port: 3128

on windows machine use putty:

click "connection" --> "ssh" --> "tunnels" -->  select "auto" and "dynamic" ; in "source port"  fill in "3128"  and click "add" .

click " session" --> fill in "abc.com" , port "22" --> "save" it --> click open

In browser, set your proxy to use socket5  proxy , host: localhost  port: 3128

Tagged as: Comments Off
Comments (0) Trackbacks (0)

Sorry, the comment form is closed at this time.

Trackbacks are disabled.