Scenario
You are operating an OPNsense edge and a recent change has cut off your access. The following symptoms appear:
- Web UI stops responding on the management address
- SSH connections to the management address are refused
- You can no longer make changes through the documented access path
Available evidence:
- A recent rule change removed the source-allow rule for your management subnet
- A new TLS certificate replaced the one trusted by your browser
- lighttpd/sshd not bound to the management interface after a config change
Your task
Determine the cause, recover, document, and validate.
Investigation
The investigation follows the discipline taught in Part XXXIX:
- Form hypothesis, find evidence, test, validate.
- Use the available evidence above to bound the search.
- Reach one of the likely root causes.
Recovery procedure
(Do not reveal until you have reasoned through the problem.)
- Identify the failing component.
- Apply the remediation pathway.
- Validate with the verification step.
- Document the incident.
Remediation
- Connect via physical console, IPMI/KVM, or serial console. 2. From the menu, choose option 8 (Shell). 3. Restore the rule by editing
/conf/config.xmldirectly or viapfctltable restore. 4. Re-enable SSH or the listener. 5. Confirm from a known-good client before closing the console session. If certificate issue: regenerate the GUI cert from the console or restore the previous cert.
Verification
Web UI and SSH are reachable from the expected management source; the rule that triggered the lockout is corrected; the anti-lockout rule on LAN is left intact for future incidents.
Rollback
If recovery makes things worse, restore /conf/backup/ from a known-good config.xml and reboot from console.
Prevention
Never edit the management-source rule without a console session attached. Use a dedicated management VLAN with anti-lockout explicitly enabled. Test rule changes from a second source. Keep an out-of-band path (IPMI, serial, KVM) documented and verified. Snapshot config.xml before any access-list change.