20 users online | 20 Guests and 0 Registered

SSH as a VPN using tsocks

Very simple:

sudo ap-get install tsocks -y

Once installed, edit the config file

nano /etc/tsocks.conf

Go all the way down and replace, server with your loopback IP and server port, to whatever you want as long as it not being used by other apps.


server =

# The port defaults to 1080 
server_port = 1080


Now to connect from another location

ssh -D 1080 yourusername@yourTsocksMachine.com -p22 ;

Note: you don't need to change or add any forwarding to port 1080 from the router, you only need to forward port 22 or whatever you use for SSH to that machine.


Once you have successfully connected, open a new terminal (Don't use the same) and type:

tsocks firefox

or try any other browser or compatible app.

such as 

tsocks midori

tsocks google-chrome

tsocks thunderbird

tsocks filezilla


Make sure these apps are not already open, for example for my local browsing I use chrome, and for my tsocks connections I use firefox or midory, you can create independent links to these apps so you know where you are connecting to.



Tags: port forwarding, Proxy, ssh VPN, tsocks
Last update:
2013-12-31 08:12
Eric P
Average rating:0 (0 Votes)

You cannot comment on this entry

Chuck Norris has counted to infinity. Twice.

Records in this category


Sticky FAQs