nitinjs
November 13, 2025, 2:11pm
1
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
frollic
November 13, 2025, 2:16pm
2
2 Likes
_bernd
November 13, 2025, 3:04pm
3
I just stumbled upon it a few days ago, but someone(tm) could test how well this is supported by clients...
The Web Proxy Auto-Discovery (WPAD) Protocol is a method used by clients to locate the URL of a configuration file using DHCP and/or DNS discovery methods. Once detection and download of the configuration file is complete, it can be executed to determine the proxy for a specified URL.
The WPAD protocol only outlines the mechanism for discovering the location of this file, but the most commonly deployed configuration file format is the proxy auto-config format originally designed by Netscape in 1...
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.