ubuntu 16.04 ProxyChains4 编译安装(以及配置github)

一 简介
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

  • 2
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值