Total Pageviews

Friday, 28 December 2012

Tsocks

Tsocks ("SOCKS servers are a form of proxy that are commonly used in firewalled LAN environments to allow access between networks, and often to the Internet. The problem is that most applications don't know how to gain access through SOCKS servers.").
Usages:
+ Config files : /usr/local/etc/tsocks.conf để config address server, version socks, server ports. (đọc manpages)
+ Add value LD_PRELOAD cho shell enviroment
Ex in csh : $ setenv LD_PRELOAD /usr/local/lib/libtsocks.so.1
+ In shell can call direct command.Here is my tsocks.conf
# We can access 192.168.0.* directly
#local = 172.16.0.0/255.255.255.0
local = 172.16.9.219
# Otherwise we use the server
server = 172.16.9.219 #tsocks server
server_type = 5 #tsocks type
server_port = 3128 #tsocks ports