Force an application's traffic through a SOCKS proxy
Wikipedia lists a number of open-source proxifiers. Of those, proxychains-ng
seems to be the most actively developed, judging by GitHub activity.
To install and configure,
- Download the latest release
- Unzip and
cd
into the directory ./configure && make
- Optional:
sudo make install && sudo make install-config
nano /usr/local/etc/proxychains.conf
- At the end of the config file, set the SOCKS IP port address
Usage:
proxychains4 -q curl icanhazip.com
Related videos on Youtube
Dan Dascalescu
Updated on September 18, 2022Comments
-
Dan Dascalescu over 1 year
How can the TCP traffic initiated by a specific application be forced to go through a SOCKS proxy, regardless of the remote IP or port?
A VPN would direct all outbound traffic on a host through an interface (
tun0
typically), so it's an overkill solution. But in a split tunnel configuration, instead of doing that by default, the VPN client offers a SOCKS proxy for specific applications. While browsers support connecting through a SOCKS proxy, many other applications don't.I've tried dante socksify but it didn't work with common programs like
curl
andwget
. (I've sent a message to their mailing list, but it's not archived anywhere so I can't link to it.)-
Ipor Sircer over 6 yearsuse tsocks
-
-
intika about 6 yearsseems cool from that tool we could develop a gui to mimic proxifier on windows