Tsocks

From Halfface
Revision as of 11:30, 7 May 2012 by Ekaanbj (talk | contribs) (Created page with '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…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

How to run apt-get with tsocks. Could be used for may applications

  1. install tsocks
  2. 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
  1. In another terminal window create socks tunnel.
ssh -v -D 1080 ipmon10.ny1.jumpbox.com
  1. Enable terminal for socks. (you might have to change path)
export LD_PRELOAD=/lib/libtsocks.so
  1. Now run your command tsocks:fied.
sudo apt-get install vncviewer