The uplink goes quiet
Vigil notices the WAN connection has lost its DHCP lease.
Decision logic
Power is the last resort, not the first. Every decision runs through the same sequence, and the relay only ever cuts power for about 30 seconds before closing again.
Two products
This page explains how Vigil — the OPNsense plugin — decides to cut power. The relay board is a separate, standalone product with its own watchdog.
Software · licensed
Hardware · standalone
Not sure which fits your site? See the relay board or ask us.
Vigil · where it sits
The relay is wired into the modem’s DC line through COM and NC — a normally-closed contact — so the modem keeps power even if the relay fails. The NO terminal is left unused.
Relay board · where it sits
The board pings the local gateway and the WAN IP. Gateway up + WAN down → cycle the modem. Gateway down → cycle both. No firewall involved.
Vigil notices the WAN connection has lost its DHCP lease.
A DHCP renewal is requested. This alone often restores the link with no outage at all.
If the WAN gateway still answers, the fault is upstream and a power cycle cannot help — so Vigil does not cycle.
A rolling 24-hour cap limits how often it can switch, so a fault it cannot fix never becomes a modem rebooting all night.
The relay opens briefly to cut the modem, then closes to restore power. On crash, on signal, on service stop, on package removal, on reboot — the contact stays closed and the modem keeps running.
Why it is safe
The relay is wired COM + NC — normally closed. At rest the contact is closed and the modem is powered; the firewall energizes the relay only to cut power for a power-cycle. If the relay loses power, is unplugged, or crashes, the contact stays closed and the modem keeps running.
That is a property of the wiring, not a software promise.
The trade-off: a failed device cannot power-cycle a hung modem. That is deliberate — a dead watchdog must never take a live site down.
Honest limits
An unlicensed device power-cycles modems exactly like a licensed one. A lapsed licence costs updates, nothing else.
Vigil supports OPNsense today. The watchdog is not OPNsense-specific, and Windows, Linux, Ubiquiti EdgeOS and OpenWRT are in progress — no dates promised.
We will not quote uptime or recovery-rate figures. Nothing has run long enough in production to support a number.
Next step