Proxify applications with torsocks

By | March 25, 2013

Many applications do not directly support the use of socks proxy. Torsocks enables such applications to use the tor socks proxy.

Shell wrapper to simplify the use of the torsocks library to transparently allow an application to use a SOCKS proxy.

Torsocks gets installed along with the tor package on ubuntu for example

$ sudo apt-get install tor

Proxify applications

Lets say we want to proxify the telnet command to connect through a proxy. This can be done by wrapping the telnet command with torify/usewithtor.

$ torify telnet 80


$ usewithtor telnet 80

Now all network calls made by the telnet programs shall be routed through the tor proxy. To see the proxy effect try opening the the url through curl. The url echos the public ip of the requesting user.

Without proxy it would look something like this

$ curl

Now using it with torsocks.

$ usewithtor curl

Now the ip is changed because the url was opened through the tor proxy.

Check the project homepage to find out what applications work well with torsocks. For example pidgin works with torsocks. Just launch it with the usewithtor command

$ usewithtor pidgin
Last Updated On : 25th March 2013

2 thoughts on “Proxify applications with torsocks

  1. mtyamantau

    Thanks for this. It helps a lot for routing separate processes to the Tor network without going through SOCKS proxy configuration and socat.

Leave a Reply

Your email address will not be published. Required fields are marked *