Introduce proxy-ns (a proxychains alternative)2022-07-28
Table of Contents
proxy-ns is a lightweight(about 100 lines of code) tool to redirect any programs' traffic to your local socks5 server.
proxychains (which uses
LD_PRELOAD hack), it sets up a
tun2socks) within a specific linux network namespace, and
execute the target program there.
It has several advantages over
- UDP support
- Works for statically linked programs
2.1. Arch Linux
proxy-ns is available at AUR
You may need to change
SOCKS5_PORT=1080 DNS=126.96.36.199 # Set TCP_ONLY to 1 to force DNS over TCP TCP_ONLY=0
4.1. Error: "Could not resolve host"
Your proxy server probably doesn't have UDP support, so dns lookup won't work by default.
You can enable
/etc/proxy-nsd.conf, to force dns lookup
to use TCP instead.