Tsocks
Jump to navigation
Jump to search
How to run apt-get with tsocks. Could be used for may applications
- install tsocks
- Create config file
/etc/tsocks.conf local = 10.151.101.0/255.255.255.0 server = 127.0.0.1 # Server type defaults to 4 so we need to specify it as 5 for this one server_type = 5 # The port defaults to 1080 but I've stated it here for clarity server_port = 1080
- In another terminal window create socks tunnel.
ssh -v -D 1080 ipmon10.ny1.jumpbox.com
- Enable terminal for socks. (you might have to change path)
export LD_PRELOAD=/lib/libtsocks.so
- Now run your command tsocks:fied.
sudo apt-get install vncviewer