Multiple IPs for one host override
-
I've setup a host override with multiple IPs. My reasoning for doing so is I have several vlans that do not have interaction with each other. They all need to pass through a proxy and be have access to wpad. I am hosting the wpad on the pfsense box with lighttpd.
This is an example of what I have:
192.168.1.1 wpad
192.168.2.1 wpad
192.168.3.1 wpadI wasn't sure exactly how to implement for my needs. It seems to be working so far. However, e.g., if I am on the 192.168.1.x network and ping wpad sometimes it tries to hit the 192.168.2.x or the 192.168.3.x address. Same with any of the other networks. I understand why is this happening, but want to make sure it isn't a problem or if there is a better solution.
-
You can try with the forwarder (dnsmasq) and localise-queries in advanced config.
-
Isn't the first query wpad suppose to be using the fqdn of the domain the client is in.. So you could use different subdomains for your different segments.
so for example
lan1.something.tld
lan2.something.tld
lan3.something.tldSo if in lan1 they would query for wpad.lan1.something.tld would they not, and in 2 would be wpad.lan2.something.tld
-
I just ran into this same scenario. We have separate lan segments for our wired and wireless lans. I was asked to setup squidGuard to stop misuse.
I wasn't sure how to do multiple host overrides with the same name (wpad), so instead, I used the following in my forwarder (dnsmasq) advanced config:
localise-queries
host-record=wpad,wpad.domain.com,172.21.100.10
host-record=wpad,wpad.domain.com,172.21.99.15So far it's working great!