2012年8月29日 星期三

tsocks

1. install epel first
http://fedoraproject.org/wiki/EPEL
1. insatll tsocks
yum install tsocks
2. add file /etc/tsocks.conf
server = 127.0.0.1
server_type = 5
server_port = 1234
3. establish ssh tunnel
ssh -D 1234 user@xxx.remote.host
4. wget with socks proxy
tsocks wget http://get.something
5. you might want to unset the http_proxy variable
unset http_proxy

沒有留言:

張貼留言