天天看點

ubuntu 16.04 ProxyChains4 編譯安裝

一 簡介

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 (installs proxychains.conf)
           

三 配置

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
           

這樣 我們打開ss連接配接伺服器後 然後proxychains4 指令打開g..gle 等 都是沒問題的.

吐槽,中國的網絡環境太差