Passing all client traffic through proxy

Reference post: https://forum.gl-inet.com/t/how-can-i-forward-all-inbound-traffic-to-local-http-or-socks-proxy/39349

How to pass all openwrt traffic through http(s)/socks proxy?

My router ip is 192.168.49.1

On one of the clients with ip 192.168.49.2, I have http(s) proxy server running on port 8888

Whenever someone connects to my router,

I want to pass all their traffic through proxy server 192.168.49.2:8888 in my network.

For example on windows we have Manual proxy setup option which sets a proxy system wide

similarly I want to set http(s)/socks proxy OpenWrt wide

thanks in advance

something like Setup transparent redirect of local traffic to proxy - #4 by frollic ?

2 Likes

I just stumbled upon it a few days ago, but someone(tm) could test how well this is supported by clients...

Works very well for windows clients.

An excellent transparent socks5-proxy-client is hev-socks5-tproxy (i.g. on openwrt-router) and hev-socks5-server (i.e. on VPS). Unfortunately, the package on openwrt is completely broken, regarding setup (firewall+routing). Proxies TCP and UDP, even UDP-over-TCP (DNS). Compact, small code.