This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Wanted: specify primary GW in multi GW setups

I'm hoping that ASL can get the GW order feature back in 4.x as it was in 3.x.  Common example is with two internet connections and you specify which GW is the primary.

It seems that the PCI slot order determines which GW is first.  But after swapping cards I think it also depends on which NIC comes online first.  I have a cable modem (DHCP) and DSL (PPPoE) and wish to default to DSL.  They are both business accounts but function like home accounts. 

The DHCP cable modem always comes online first and will be the default GW at boot time and whenever the DSL IP changes or any other route changes are made.  I can manually set the GW order from the console but it will go back the other way if I make any other routing changes in Webadmin.

Ideally we can get to automagic fallback GW but I'd settle for a set and forget GW ordering feature.  Any plans or problems with that?  Or maybe a better manual hack that will survive a reboot and Webadmin changes?

     


This thread was automatically locked due to age.
  • The Rep I get my license from called Astaro about the missing option to set the primary GW in v4. He was told it was taken out because it did not work correctly for the way they wanted it to work.

    We aren't sure what way they wanted it to work, but it was a nice feature to use as you described. 

    So we came up with an other way to get around it. Not as easy, but it works. What we do now is only set one default gateway per external nic. Then, when we want to other to be the default GW, we add the default to the second nic and remove the first.

    For example, I have two public connections. eth0 from provider A and eth1 from provider B. Provider A is primary, so eth0 has the default gw set. eth1 has no default gw. If I want to change my default, I add the default gw to eth1, then remove the default gw from eth0.

    This way the system stays the way I set it even when I reboot.

    Hope that helps you. 
  • That would set GW where you want it.  But don't you loose the ability to have any inbound connections on the line without a gateway?  I've been running the webserver on the line that isn't the primary GW and I'd loose that if ASL didn't know how to route back.

    Static routes would be o.k. for VPNs and such but generaly it isn't enough for other services.  Wonder if ASL is still working on the problem?
      
  • Astaro can't handel multiple gateways. Even if you have a default gw set on both nics, the box will only use the first default gw for outbound connections and replies.

    So any connections coming in the backup connection will have it's replies set back through the default gw of the primary nic unless the connection is coming from the same subnet.

    To get around this you have to do policy routing which isn't supported through the ASL WebAdmin. There is a doc (hack) that shows how you can do policy routing from the command line. It can be found in the docs area.

    We have used it and it works great.