计算机技术

利用proxychains在终端使用socks5代理

最近用各种脚本下载东西的时候发现有的站点需要当地IP才能下,比如…..nico, youtube等;所以就找了下能在终端用socks5代理的工具,最后找到了proxychains,从此再无压力=w=

proxychains安装

git clone https://github.com/rofl0r/proxychains-ng.git
cd proxychains-ng
./configure
make && make install
cp ./src/proxychains.conf /etc/proxychians.conf
cd .. && rm -rf proxychains-ng

编辑proxychains配置

vim /etc/proxychains.conf

将socks4 127.0.0.1 9095改为

socks5  127.0.0.1 1080  //1080改为你自己的端口

使用方法

在需要代理的命令前加上 proxychains4 ,如:

proxychains4 wget http://xxx.com/xxx.zip

Related Articles

发表回复

Check Also
Close
Back to top button