一 简介
ProxyChains4 是linux平台的一个代理切换软件。最近在ubuntu 上使用ss 进行上网,每次代理的切换都是非常麻烦。
ProxyChains4 能很好的解决socks代理的系统设置问题。
二 安装
git clone https://github.com/rofl0r/proxychains-ng.git #如果clone 不下来就下载zip 我就存在下载不动的情况
cd proxychains-ng
./configure --prefix=/usr --sysconfdir=/etc #此处的prefix路径一定是/usr 如果换成其他会出现couldnt locate libproxychains4.so
make #需要gcc环境
sudo make install
sudo make install-config
三 配置
sudo vi /etc/proxychains.conf
[ProxyList]
#add proxy here …
#meanwile
#defaults set to “tor”
socks5 127.0.0.1 1080
四 用法
proxychains4 firefox
proxychains4 ping www.google.com
proxychains4 telnet somehot.com
vim ~/.ssh/config #
添加如下内容
Host github.com
Hostname github.com
ProxyCommand nc -x localhost:1080 %h %p (注:1080代理的端口)
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_rsa
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)