Tsocks: Difference between revisions

From Halfface
Jump to navigation Jump to search
(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…')
 
No edit summary
 
Line 3: Line 3:


# install tsocks
# install tsocks
# Create config file
# Create config file /etc/tsocks.conf
/etc/tsocks.conf
# local subnet
  local = 10.151.101.0/255.255.255.0
local = 10.151.101.0/255.255.255.0
# Where you socks server is running. Your ssh socks server.
  server = 127.0.0.1
  server = 127.0.0.1
  # Server type defaults to 4 so we need to specify it as 5 for this one
  # Server type defaults to 4 so we need to specify it as 5 for this one

Latest revision as of 11:32, 7 May 2012

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

  1. install tsocks
  2. Create config file /etc/tsocks.conf
# local subnet
local = 10.151.101.0/255.255.255.0
# Where you socks server is running. Your ssh socks server.
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