OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 19.7 Legacy Series »
  • 3 WAN interfaces, 3 IPs, same gateway
« previous next »
  • Print
Pages: [1]

Author Topic: 3 WAN interfaces, 3 IPs, same gateway  (Read 3511 times)

gbr

  • Newbie
  • *
  • Posts: 23
  • Karma: 0
    • View Profile
3 WAN interfaces, 3 IPs, same gateway
« on: February 01, 2020, 06:02:28 pm »
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
Logged

gbr

  • Newbie
  • *
  • Posts: 23
  • Karma: 0
    • View Profile
Re: 3 WAN interfaces, 3 IPs, same gateway
« Reply #1 on: February 01, 2020, 06:18:40 pm »
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
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 17707
  • Karma: 1618
    • View Profile
Re: 3 WAN interfaces, 3 IPs, same gateway
« Reply #2 on: February 03, 2020, 01:17:10 pm »
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
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 19.7 Legacy Series »
  • 3 WAN interfaces, 3 IPs, same gateway
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2