Global SOCKS5 Proxy with Redsocks + iptables on Linux
Original post: https://groups.google.com/g/go-gost/c/c7QCorgZiLU.
I previously wrote a similar document, but it was more complex because it included VPN configuration. Here is the simplified version.
Applications on Linux typically require manual proxy configuration within each app, and some apps don't support proxies at all. With redsocks + iptables, you can achieve VPN-like functionality by redirecting all TCP traffic through a SOCKS5 (or HTTPS) proxy.