Route lan over a socks5 proxy

Hello there, I have a bit of a problem. How do I route traffic from LAN over a SOCKS5 proxy, like LAN > WAN > Proxy > Internet , with zero configuration needed for the LAN devices?

Configure the proxy in all clients.

Not an option in my use case

There's https://serverfault.com/questions/707586/is-it-possible-to-configure-proxy-setting-through-dhcp, but I have no idea if all client honor it.

Same solution is provided in Set Proxy server automatically for clients.

Take a look at redsocks package.

1 Like

Yeah, but that only works with HTTP proxy. I need a SOCKS5 proxy that just sends TCP/UDP over a tunnel, and in my opinion, it should be possible. I know in Linux it's certainly possible by using proxychains (app launch command), and this routes all the traffic from that app through the proxies.

Realistically speaking, if you do something without any lan host configuration, it means you want to do intercept/hijacking. This is described in the wiki for dns and http.
But as soon as the client sends something encrypted, the whole thing will break. And encrypted is the majority nowadays.

1 Like

the only solution I see for now is to provide an HTTP proxy via DHCP and do the translation to socks5 via some 3rd arty tool like 3proxy or some other (google seems to provide some alternatives as well)

And this workaround is TCP only - sorry

1 Like