[SOLVED] Gateway group as default?



  • I have just setup multi WAN on my pfSense box for failover purposes (two WANs, different tiers). The last step to do is to change the gateway setting of my firewall's LAN rules (I have several of them).
    It would be comfortable to keep it as default and setup my new gateway group as default instead. But that apparently is not possible, only single gateways have the checkbox "Default gateway".

    Does it really mean I have to manually change all my LAN rules so they can use this new failover gw group? Haven't you guys found some workaround?



  • OK, so I can answer myself:  :)
    There is a workaround (if it as a workaround at all). There is an option "Allow default gateway switching" in System: Advanced: Miscellaneous which works just the way I want. If the primary gateway is down system chooses next available one which is the secondary gw as I have only two. After the primary gw gets back online pfSense switches back to it. I have just tried it a few times and works like a charm.  :)

    But the gateway groups are still a good tool if you have more than two gateways and in case of failure you want pfSense to switch to the other ones in certain order (that's what tiers are for). Or if you need load balancing (you then adjust the weight option in gw settings).



  • May I ask what version you were using? I tried this on 2.0.1, and it didn't do anything, i.e. the default route just disappeared when I pulled the plug.

    Risto



  • There have been bugs with default gateway switching scenarios and 2.0.1 is now a very old version.
    In a scenario with just 2 WANs to choose from, default gateway switching is easy and I know it works in 2.2-RELEASE.



  • Thank you, Phil.

    I'll think about upgrading. Now it seems to work for the clients, with the more complicated system using a gateway group. The only question is, whether it really matters that the box itself doesn't have a gateway, if the primary connection breaks.

    Risto



  • Yes, I normally use gateway groups for the clients, because also that way you can load-balance the traffic, and/or send some particular traffic out WANA and other traffic out WANB.
    Default gateway switching is only good for dumping everything from primary-WAN to other-WAN. And as you say, if primary-WAN is down then often you do not care so much that the pfSense version check, package download etc do not work for that time.