Not Just Paranoid

Another site by Pete Maynard

SSH and tsocks

Install tsocks on your client machine. Tsocks is a application which replaces all connect() calls with it’s own, which means you can run any application though the server/proxy even if it dosent have support for proxy/SOCKS.

apt-get install tsocks

Update /etc/tsocks.conf server = server_port = 1080

These will need to match the SSH setting, as seen later on.

You might want to configure local networks, but that’s up to you. Local allows you to directly access the address, instead of through the server/proxy.

Setup your SSH connection to your sever.

ssh -w  -D 1080 user@server

That’s it, you should be all set up. To run an application though the server/proxy simply open a terminal and enter:

tsocks <application>

For example force firefox to use the server/proxy

tsocks firefox

25 Jun 2012 | Tags ( Encrypted proxy SOCKS SSH )

Website Last Updated on 15 Sep 2023 (CC BY-SA 4.0)

This site uses JQuery and nanogallery2 hosted by
for the Flickr photo feed and GoatCounter for user insights.