2月 282015
 

参考:

tsocks 代理

  • 通过重写connect等网络函数实现
  • 主要是一个 libtsocks.so ;tsocks本身是个脚本,原理是设置LD_PRELOAD 环境变量
  • tsocks的几种用法(参看 tsocks脚本)
    • tsocks command
    • tsocks <CR>  (这样会启动一个新的shell)
    • . tsocks -on    (在当前shell中设置 LD_PRELOAD 环境变量,注意: 前面需要一个 dot 即: . tsocks -on 或写作:  source tsocks -on)
  • man页: http://linux.die.net/man/8/tsocks   or  man 8 tsocks
  • 配置文件 (man 5 tsocks.conf)
    • path { … } 可以有多个,但是每个path中至少含有 server 指令和 reaches指令
 Posted by at 下午 3:46

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">

(required)

(required)

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据