BACKUP's downed WAN can be re-upped by rc.linkup / interface reconfigure (dual-WAN) #3
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
eric/10-wancarp#3
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Severity: High · Location:
10-wancarp:423-430(BACKUP branch) and the runtime-only design in generalThe BACKUP branch only takes WAN down in memory;
config.xmlstill hasenable=1, which the README prerequisite requires. Anything in OPNsense that re-reads the config and reconfigures the interface undoes the script, and no CARP event fires to correct it.Confirmed path in OPNsense core:
src/etc/devd/ifnet.conf: aLINK_UPevent runsconfigctl interface linkup start <dev>.src/etc/rc.linkup: if the on-diskenableis set, it callsinterface_configure(false, $interface, true, true). That brings WAN up, starts DHCP and restores the default route.How it fails: the modem or ISP equipment reboots, a cable is re-seated, or (on virtio) the host toggles the link. A NIC that still reports carrier while administratively down (vtnet does, per the
LOWER_UPnotes) sendsLINK_UP, and WAN comes up on the BACKUP while the MASTER also has it. That is the dual-WAN failure the script exists to prevent. Clicking Apply on the WAN page or runningconfigctl interface reconfigure wanon the BACKUP does the same thing.Suggested fix:
ifconfigcarp:lines), so drift gets fixed.