I have remote serial access to a OPNsense firewall that I want to reset. I assume if I do a factory reset that it will nuke my serial console settings though? Is there any way to do the reset and maintain serial console access?
Thanks all!
Only if you installed from the OPNsense serial installer image then the console should be enabled with defaults (115200 baud):
https://docs.opnsense.org/manual/how-tos/serial_access.html
I guess you would be able to log in with the default credentials (root:opnsense) if prompted.
How about "restoring" a custom config.xml with serial console enabled and other parts of the .xmp reset to your favourite state and reboot?