Multiple static routes WAN



  • Hello,

    I wan't to use a pfSense router/firewall for my colocation servers i have only one question i can't find a answer.

    I need to route my own IP block and i get a single IP from my datacenter i can use for my own router, i get 2 gateway/router IP's from my datacenter, one primair and a fallback.

    So i need a single WAN interface with multiple gateways or 0.0.0.0/0 routes.

    How can i do this with pfSense?

    Thank you.

    Sander



  • Similar to Multi WAN you have to create a gateway group.
    https://doc.pfsense.org/index.php/Multi-WAN#Gateway_Groups

    If the lower tier gateway fails, pfSense will direct traffic to the next higher one.


  • Netgate

    Depends on what the data center is giving you. If it is two different interfaces then no problem.

    If it is two different gateways on the same interface I think you can still do Multi-WAN but it'd be an uncommon scenario. And it would be a single point of failure on your side.

    I don't see any reason you can't put multiple gateways on one interface, make a gateway group, and policy route to it though I have never seen it done (which doesn't mean it hasn't).

    Only one of them can be the default gateway.