Proxychains 配置
ProxyChains is a tool that forces any TCP connection made by a given application to follow through a proxy like TOR or any other SOCKS4, SOCKS5 or HTTP(S) proxy.
1. Installation
Section titled “1. Installation”Ubuntu / Debian
Section titled “Ubuntu / Debian”sudo apt updatesudo apt install proxychains4CentOS / RHEL
Section titled “CentOS / RHEL”sudo yum install proxychains-ngManjaro / Arch Linux
Section titled “Manjaro / Arch Linux”sudo pacman -S proxychains-ng# or using yayyay -S proxychains-ng2. Configuration
Section titled “2. Configuration”Edit the configuration file at /etc/proxychains.conf (or /etc/proxychains4.conf).
-
Open the file:
Terminal window sudo vim /etc/proxychains.conf -
Modify settings:
- Scroll to the bottom to the
[ProxyList]section. - Add your proxy server (e.g., SOCKS5 at 127.0.0.1:1080).
[ProxyList]# add proxy here ...# meanwile# defaults set to "tor"# socks4 127.0.0.1 9050# Example:socks5 127.0.0.1 1080[!TIP] If you encounter DNS resolution issues, you might need to comment out
proxy_dnsin the configuration file, although keeping it enabled is recommended for privacy. - Scroll to the bottom to the
3. Usage
Section titled “3. Usage”Prepend proxychains (or proxychains4) to any command you want to run through the proxy.
# Example: Download a file using curlproxychains curl https://www.google.com
# Example: Run a shellproxychains bash