OPNsense sometimes "loses" the WAN facing connection when that is "reinitialised" (modem reboot/WAN restart).
Monitoring the WAN facing connection and taking corrective action is the solution proposed by this script.
opnsense_ping_check.sh
will ping IP addresses to determine if the WAN
connection is still working, and try to restore the WAN if needed by