We use ProxyChains for terminal SSH proxy service
download
Get the source code in GitHub
git clone https://github.com/haad/proxychains
Or use release
ZIP format:
wget https://github.com/haad/proxychains/archive/4.3.0.zip
TAR format:
wget https://github.com/haad/proxychains/archive/4.3.0.tar.gz
Unzip J and enter the file directory
Compile
./configure --prefix=/usr --sysconfdir=/etc
make
sudo make install
sudo make install-config
Configuration
Proxychains will look for configuration files in the following order:
./proxychains.conf
$(HOME)/.proxychains/proxychains.conf
/etc/proxychains.conf
When I was in Ubuntu, the configuration file directory was/usr/etc/proxychains.conf
Another way to quickly view the configuration file directory is to run proxychains directly
pi@raspberrypi:~ $ proxychains4 curl ip.cn
[proxychains] config file found: /usr/etc/proxychains.conf
[proxychains] preloading /usr/lib/libproxychains4.so
[proxychains] DLL init
You can find the currently used configuration file path in config file found, and then use VIM to edit it
sudo vim /usr/etc/proxychains.conf
Find [ProxyList] and append the following proxy server configuration information after it:
socks5 [IP] [Port]
use
proxychains4 [命令] [参数列表]