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

    Multi WAN - DNS routing when default gateway is down

    Scheduled Pinned Locked Moved Routing and Multi WAN
    3 Posts 2 Posters 1.4k 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
      mvrk
      last edited by

      Hi,

      I've just noticed today, after my primary internet access went down, that i couldn't resolve dns, then i noticed that the routing to the DNS servers i got configured in pfsense was going throw my default gateway.

      Shouldn't the default gateway of pfsense change when i'ts down?

      Or can i configure a firewall rule to make all traffic from 127.0.0.1 to DNS server go through my failover group?

      1 Reply Last reply Reply Quote 0
      • H
        heper
        last edited by

        Did you specify a dns server for each gateway in System: General Setup ?

        [Shouldn't the default gateway of pfsense change when i'ts down? /quote]
        Not by default, you can however, enable this if you wish (System: Advanced: Miscellaneous: Allow default gateway switching)

        Or can i configure a firewall rule to make all traffic from 127.0.0.1 to DNS server go through my failover group?

        Yes, create a floating rule - direction out - for tcp/udp on dns port (53) - check option quick - select gateway-group. (you would need to set dns servers reacheable from all your isp's

        enjoy

        1 Reply Last reply Reply Quote 0
        • M
          mvrk
          last edited by

          @heper:

          Did you specify a dns server for each gateway in System: General Setup ?

          No, i've selected "none" on the "Use Gateway" option for all my DNS.
          I guess i could make one DNS go through my primary gateway and the other through the secondary, but automatic change of default gateway seems a better option.

          @heper:

          Shouldn't the default gateway of pfsense change when i'ts down?
          Not by default, you can however, enable this if you wish (System: Advanced: Miscellaneous: Allow default gateway switching)

          I will activate this option and make some tests.

          Thankx.

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