Cookie policy

EU e-Privacy Directive

This website uses cookies to manage authentication, navigation, and other functions. By using our website, you agree that we can place these types of cookies on your device.

You have declined cookies. This decision can be reversed.

You have allowed cookies to be placed on your computer. This decision can be reversed.

As you have seen, Compassh is very useful with ssh itself and all the software that support SOCKS protocol, like web browsers. But what if the software you're using doesn't support SOCKS? Well, don't dispair: UNIX comes in rescue as usual.

There's a wonderful feature of UNIX linker called LD_PRELOAD. Using library preloading, the linker can replace some standard function with substitutes coming from additional libraries. Exploiting this feature, many software allows you to socksify software otherwise unable to make a SOCKS connection. One great example is tsocks, available at http://tsocks.sourceforge.net. Download it and edit its file /etc/tsocks.conf by adding the following lines:

server = 127.0.0.1
server_type = 5
server_port = 1080

where server_port is the SOCKS port of the VPN you want to route your application through. Now you can socksify any software, just by adding tsocks in front of the command line. Let's say you need to log in on a remote router which does not support SSH, so you need to use telnet:

tsocks telnet 192.168.1.254

That's it.


  The Cog In The Machine On Which All Depends