Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Multiple IPs for one host override

    Scheduled Pinned Locked Moved DHCP and DNS
    4 Posts 4 Posters 2.1k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      maverik1
      last edited by

      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  wpad

      I 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.

      1 Reply Last reply Reply Quote 0
      • D
        doktornotor Banned
        last edited by

        You can try with the forwarder (dnsmasq) and localise-queries in advanced config.

        1 Reply Last reply Reply Quote 0
        • johnpozJ
          johnpoz LAYER 8 Global Moderator
          last edited by

          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.tld

          So if in lan1 they would query for wpad.lan1.something.tld would they not, and in 2 would be wpad.lan2.something.tld

          An intelligent man is sometimes forced to be drunk to spend time with his fools
          If you get confused: Listen to the Music Play
          Please don't Chat/PM me for help, unless mod related
          SG-4860 24.11 | Lab VMs 2.8, 24.11

          1 Reply Last reply Reply Quote 0
          • J
            Jiveformation
            last edited by

            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.15

            So far it's working great!

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.