Serving different WPADs per subnet with Unbound
-
Hello fellow Netgate community members,
Can you please help?
I have two subnets on my network:-
192.168.1.0/24 (LAN): main network with an active WPAD pointing to a proxy
-
10.0.0.0/24 (Guest): guest network with a dummy WPAD that should just use direct connections
I want to configure Unbound so that:
-
Clients on the internal network get the WPAD that points to the proxy
-
Clients on the guest network get a WPAD that bypasses the proxy
-
All other DNS queries still resolve normally
Currently, the WPAD “bleeds over” onto both interfaces because of the Unbound resolver host override on the guest network. Apple devices in particular will constantly search for a WPAD file when set to auto and never default to “none,” which is why I need a dummy WPAD for guests.
How can I accomplish this using custom options, host overrides, or zones in Unbound so that the correct WPAD is automatically served depending on the client’s subnet?
Thanks in advance! -
-
This : Wpad for two networks ?