# Passing all client traffic through proxy

**URL:** <https://forum.openwrt.org/t/passing-all-client-traffic-through-proxy/243003>\
**Category:** Installing and Using OpenWrt\
**Created:** [November 13, 2025, 2:11pm UTC](https://forum.openwrt.org/t/passing-all-client-traffic-through-proxy/243003 "2025-11-13T14:11:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![nitinjs](https://forum.openwrt.org/user_avatar/forum.openwrt.org/nitinjs/32/10648_2.png) [@nitinjs](https://forum.openwrt.org/u/nitinjs)\
**Post date:** [November 13, 2025, 2:11pm UTC](https://forum.openwrt.org/t/passing-all-client-traffic-through-proxy/243003/1 "2025-11-13T14:11:13Z")

</div>

Reference post: [https://forum.gl-inet.com/t/how-can-i-forward-all-inbound-traffic-to-local-http-or-socks-proxy/39349](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

 ![image](https://forum.openwrt.org/uploads/default/original/3X/a/3/a39f0a918853ab434d5e06e7822d54a01cda727c.png)

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

thanks in advance

---

<div class="post-metadata">

**Author:** ![frollic](https://forum.openwrt.org/user_avatar/forum.openwrt.org/frollic/32/30113_2.png) [@frollic](https://forum.openwrt.org/u/frollic)\
**Post date:** [November 13, 2025, 2:16pm UTC](https://forum.openwrt.org/t/passing-all-client-traffic-through-proxy/243003/2 "2025-11-13T14:16:55Z")

</div>

something like [Setup transparent redirect of local traffic to proxy - #4 by frollic](https://forum.openwrt.org/t/setup-transparent-redirect-of-local-traffic-to-proxy/235219/4) ?

---

<div class="post-metadata">

**Author:** ![\_bernd](https://forum.openwrt.org/user_avatar/forum.openwrt.org/_bernd/32/124645_2.png) [@\_bernd](https://forum.openwrt.org/u/_bernd)\
**Post date:** [November 13, 2025, 3:04pm UTC](https://forum.openwrt.org/t/passing-all-client-traffic-through-proxy/243003/3 "2025-11-13T15:04:44Z")

</div>

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

> **[Web Proxy Auto-Discovery Protocol](https://en.wikipedia.org/wiki/Web_Proxy_Auto-Discovery_Protocol)**
>
> 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...

---

<div class="post-metadata">

**Author:** ![reinerotto](https://forum.openwrt.org/letter_avatar/reinerotto/32/6_449c533f586939b6e5f246632a46421f.png) [@reinerotto](https://forum.openwrt.org/u/reinerotto)\
**Post date:** [November 13, 2025, 5:57pm UTC](https://forum.openwrt.org/t/passing-all-client-traffic-through-proxy/243003/4 "2025-11-13T17:57:32Z")

</div>

Works very well for windows clients.

---

<div class="post-metadata">

**Author:** ![reinerotto](https://forum.openwrt.org/letter_avatar/reinerotto/32/6_449c533f586939b6e5f246632a46421f.png) [@reinerotto](https://forum.openwrt.org/u/reinerotto)\
**Post date:** [November 13, 2025, 7:24pm UTC](https://forum.openwrt.org/t/passing-all-client-traffic-through-proxy/243003/5 "2025-11-13T19:24:56Z")

</div>

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.
