sudo ap-get install tsocks -y
Once installed, edit the config file
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 = 127.0.0.1
# 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:
or try any other browser or compatible app.
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