proxychains 使用指北
前言
proxychains 新的版本已经称为 proxychains-ng 由 rofl0r 托管在 GitHub 中维护,一般使用 proxychains 用于加速更新和下载国外的一些开源组件,比如 yum 和 pip。proxychains 使用十分简单,甚至都不必编译安装。
proxychains ng (new generation)
更新历史
2017 年 04 月 16 日 - 初稿
阅读原文 - https://liaojiaxin158.github.io/post/proxychains/
扩展阅读
proxychains-ng - https://github.com/rofl0r/proxychains-ng
proxychains 简介
ProxyChains is a UNIX program, that hooks network-related libc functions in DYNAMICALLY LINKED programs via a preloaded DLL (dlsym(), LD_PRELOAD) and redirects the connections through SOCKS4a/5 or HTTP proxies. It supports TCP only (no UDP/ICMP etc).
The way it works is basically a HACK; so it is possible that it doesn’t work with your program, especially when it’s a script, or starts numerous processes like background daemons or uses dlopen() to load “modules” (bug in glibc dynlinker).
It should work with simple compiled (C/C++) dynamically linked programs though.
If your program doesn’t work with proxychains, consider using an iptables based solution instead; this is much more robust.
Supported Platforms: Linux, BSD, Mac.
proxychains 安装配置
1 | # needs a working C compiler, preferably gcc |
proxychains.conf 配置文件
1 | [root@centos7 ~]# cat /etc/proxychains.conf |