将Tor,tsocks安装好后

编辑配置文件
sudo vim /etc/tsocks.conf

内容为:
server = 127.0.0.1
server_type = 5
server_port = 9050

然后可以使用了,方法有二:
1. 直接tsocks回车,得到一个新的shell

2. 用tsocks wget http://...包裹一个命令

参考:
http://blog.linux.org.tw/~jserv/archives/001486.html
TOR的推荐:/etc/TOR/TOR-tsocks.conf

# This is the configuration for libtsocks (transparent socks) for use
# with ×, which is providing a socks server on port 9050 by default.
#
# See tsocks.conf(5) and ×ify(1) manpages.
server = 127.0.0.1
server_port = 9050
# We specify local as 127.0.0.0 - 127.191.255.255 because the
# Tor MAPADDRESS virtual IP range is the rest of net 127.
local = 127.0.0.0/255.128.0.0
local = 127.128.0.0/255.192.0.0

© 2006 Matt’s Blog for UBUNTU | Wordpress | dKret2 2.2 | XHTML | CSS | Top |