## 需要先安装c 和 gcc
## 下载源码
sudo git clone https://github.com/rofl0r/proxychains-ng.git
## 进入安装目录
cd proxychains-ng
## 配置
./configure --prefix=/usr --sysconfdir=/etc
## 编译
make
## 安装
sudo make install-config
## 配置代理
sudo vim /etc/proxychains.conf
##编辑proxychains.conf配置文件最后一行,根据代理类型选择
将socks4 127.0.0.1 9095 改为 socks5 代理IP 代理端口 -----> 格式 : socks5 192.168.90.35 7070
##测试 在需要翻墙前加上 proxychains4
proxychains4 curl www.google.com
proxychains4 wget www.google.com
proxychains4 npm install n
等等...
ubuntu@sweet:~/workspace/proxy$ proxychains4 telnet google.com 80
[proxychains] config file found: /etc/proxychains.conf
[proxychains] preloading /usr/lib/libproxychains4.so
[proxychains] DLL init: proxychains-ng 4.12-git-15-gbb30d86
Trying 224.0.0.1...
[proxychains] Strict chain ... 192.168.5.130:7070 ... google.com:80 ... OK
Connected to google.com.
Ubuntu16.04 设置代理
最新推荐文章于 2025-03-20 22:22:45 发布