Multi WAN - DNS routing when default gateway is down



  • 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?



  • 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



  • @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.