Home » Debian, Internet, Linux, Quick Tip, Security, Windows

Quick Tip: Socks for everyone !

2 October 2009 No Comment

I’m talking about Socks PROXY and not my/your foot socks :). Socks is a layer 5 proxy and can “route” your packets (TCP and UDP) through other host(server). Usually you need to install a Socks proxy somewhere on a server, but if you have a openSSH server somewhere then you can use ssh as Socks Proxy. SSH clients know proxy? Yes! openSSH Client (Linux) and even putty (Windows) know Socks proxy.

For Linux, connect with ssh client to the server with -D option

$ ssh root@host -D 12345

and in your localhost port 12345 you will have an socks proxy. New version of openSSH also know address binding. That means, if you have multiple interfaces in your computer, then you can specify on what interface your socks should bind.

$ ssh root@host -D 10.0.0.1:12345

Under Windows you can use putty. Configure a normal session. On Tunnel (expand SSH tree if is not already) menu just check Dynamic (normally is Local) and write the port on source port and on destination hostname:port. Press Add and it should appear under “forwarded ports”.

Now you can enjoy your SOCKS proxy.


BlinkList Diigo Digg Facebook Furl Google Mister Wong Newsvine Reddit StumbleUpon Simpy Technorati Yahoo DZone

Hide Bookmarks

Leave your response!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.