redsocks

arbitrary TCP connection redirector to a SOCKS or HTTPS proxy server

Install

All systems
curl cmd.cat/redsocks.sh
Debian Debian
apt-get install redsocks
Ubuntu
apt-get install redsocks
Alpine
apk add redsocks
image/svg+xml Kali Linux
apt-get install redsocks
Windows (WSL2)
sudo apt-get update sudo apt-get install redsocks
OS X
brew install redsocks
Raspbian
apt-get install redsocks
Docker
docker run cmd.cat/redsocks redsocks powered by Commando

redsocks

arbitrary TCP connection redirector to a SOCKS or HTTPS proxy server

Redsocks is a daemon running on the local system, that will transparently tunnel any TCP connection via a remote SOCKS4, SOCKS5 or HTTP proxy server. It uses the system firewall's redirection facility to intercept TCP connections, thus the redirection is system-wide, with fine-grained control, and does not depend on LD_PRELOAD libraries. Redsocks supports tunneling TCP connections and UDP packets. It has authentication support for both, SOCKS and HTTP proxies. Also included is a small DNS server returning answers with the "truncated" flag set for any UDP query, forcing the resolver to use TCP.