最近在國外的vps上搭建了一個ss服務器,在瀏覽器里面設置socks5代理上網很方便,
但是終端里面卻只支持http方式的代理配置,網上有socks轉http代理的方式,但是最近發現一個更為簡單的方式 proxychains;
proxychains安裝
git clone https://github.com/rofl0r/proxychains-ng.git cd proxychains-ng ./configure make && make install cp ./src/proxychains.conf /etc/proxychians.conf
編輯proxychains配置
vim /etc/proxychains.conf
將socks4 127.0.0.1 9095改為
socks5 127.0.0.1 1080 //1080改為你自己的端口
使用方法
在需要代理的命令前加上 proxychains4 ,如:
proxychains4 -f /etc/proxychians.conf wget google.com
