3 WAN interfaces, 3 IPs, same gateway

Started by gbr, February 01, 2020, 06:02:28 PM

Previous topic - Next topic
Hi,

- I have three static IP's from my provider, all with the same gateway.
- I have three network cards
- Each card gets an IP.
    - I can't set the gateway on two of the cards, so I leave it at auto-detect

Traffic flows fine on the WAN interface, but I can't get traffic on the other two. I can ping and traceroute  from them, but a web server (with a NAT rule) behind the firewall never connects.

It was working fine when I had all three IPs attached to the same network card, but that requires a special config on my providers part (they need to multi-home to the same MAC address). I decided not to use that because their multi-home config stopped working for a day, and took me offline.

My question: Is it possible to have three network interfaces, different IPs, same gateway, configured and working? If the question is yes, I don't know what I'm doing wrong.

I think what is happening is OPNSense is responding from the default IP instead of the interface the request came from, but I'm not sure.

Thanks,
Gerald

So, I reboot to see if there was an issue there. On startup, the gateway reported as down, and a ping from the command line lost packets until I disabled the other network cards.

Gerald

Same-gateway-different-interfaces doesn't work as per FreeBSD. Your only chance is to use VIPs/1:1 NAT from one consolidated WAN interface.


Cheers,
Franco