Routing problem with dual WAN interfaces

Started by meyergru, April 26, 2021, 02:01:58 PM

Previous topic - Next topic
April 26, 2021, 02:01:58 PM Last Edit: April 26, 2021, 06:02:26 PM by meyergru
I have two pppoe WAN interfaces, WAN (pppoe0) and WAN2(pppoe1), only the first of which is in active use.

Thus, only WAN ist active under System->Gateways->Single. The other interface is a standby fallback, although it is online most of the time.

Whenever pppoe1 gets a new IP, /usr/local/etc/rc.newwanip gets called, which I can see by these log entries:


Apr 26 09:38:35 OPNsense.mgsoft opnsense[77773]: /usr/local/etc/rc.newwanip: IPv4 renewal is starting on 'pppoe1'
Apr 26 09:38:35 OPNsense.mgsoft opnsense[77773]: /usr/local/etc/rc.newwanip: On (IP address: 87.158.128.89) (interface: WAN2[opt11]) (real interface: pppoe1).
Apr 26 09:38:35 OPNsense.mgsoft opnsense[88206]: /usr/local/etc/rc.newwanipv6: IPv6 renewal is starting on 'pppoe1'
Apr 26 09:38:35 OPNsense.mgsoft opnsense[88206]: /usr/local/etc/rc.newwanipv6: On (IP address: ) (interface: WAN2[opt11]) (real interface: pppoe1).
Apr 26 09:38:35 OPNsense.mgsoft opnsense[88206]: /usr/local/etc/rc.newwanipv6: Failed to detect IP for WAN2[opt11]
Apr 26 09:38:35 OPNsense.mgsoft opnsense[77773]: /usr/local/etc/rc.newwanip: ROUTING: entering configure using 'opt11'
Apr 26 09:38:35 OPNsense.mgsoft opnsense[77773]: /usr/local/etc/rc.newwanip: ROUTING: IPv4 default gateway set to wan
Apr 26 09:38:35 OPNsense.mgsoft opnsense[77773]: /usr/local/etc/rc.newwanip: ROUTING: skipping IPv4 default route
Apr 26 09:38:35 OPNsense.mgsoft opnsense[77773]: /usr/local/etc/rc.newwanip: ROUTING: IPv6 default gateway set to wan
Apr 26 09:38:35 OPNsense.mgsoft opnsense[77773]: /usr/local/etc/rc.newwanip: ROUTING: skipping IPv6 default route
Apr 26 09:38:35 OPNsense.mgsoft opnsense[77773]: /usr/local/etc/rc.newwanip: The WAN_DHCP6 monitor address is empty, skipping.
Apr 26 09:38:35 OPNsense.mgsoft opnsense[77773]: /usr/local/etc/rc.newwanip: The WAN_PPPOE monitor address is empty, skipping.
Apr 26 09:38:35 OPNsense.mgsoft opnsense[77773]: /usr/local/etc/rc.newwanip: The WAN2_GW monitor address is empty, skipping.
Apr 26 09:38:35 OPNsense.mgsoft opnsense[77773]: /usr/local/etc/rc.newwanip: The WAN2_PPPOE monitor address is empty, skipping.
Apr 26 09:38:36 OPNsense.mgsoft opnsense[77773]: /usr/local/etc/rc.newwanip: Resyncing OpenVPN instances for interface WAN2.


I this situation, there seems to be a problem when the new default route gets set: Every open TCP connection is reset and gets disconnected. This should never happen when these interfaces are disabled on the gateway page - not even if they were active, but lower in priority than existing gateways.

It seems like the route is always deleted and then created again, even if it does not really change.
Intel N100, 4 x I226-V, 16 GByte, 256 GByte NVME, ZTE F6005

1100 down / 800 up, Bufferbloat A+