Restore config.xml in 26.1 series after power surge and new hardware. F

Started by Mr_Flibble, March 17, 2026, 10:34:47 PM

Previous topic - Next topic
I have been running OPNsense for 3+ years, and unfortunately due to heavy snow, a power line went down and sent a surge up the cable line. This let the magic smoke out of the modem, Cat6 cable, and the router running OPNsense.

Fortunately, I take nightly backups, and after getting new (identical) hardware (Protectli FW2B) I was able to install OPNsense and upload my config.xml.

I am running the latest download iso, and we still don't have a main internet line to update any packages, as that line was melted.

However, while the backup worked, the original static DHCP listings seem to be missing - I set them up back in the day when they were called DHCPv4 under the Services menu, but now I only see the KEA DHCP and no other options.

This is a problem, as many devices are not seeming to get their static DHCP leases back, and I cannot remember what I set them to all those years ago.

Where should I look for these settings?

Also, given that I currently have no internet, will OPNsense try to get the missing packages I installed prior when I do have WAN again? That is, does the config.xml remember the Plugins I had and can pull them again?

You probably installed a newer version of OpnSense where ISC DHCP has become a plugin. Once you have your internet back up, you can reinstall the package and get everything up and running again.
Intel N100, 4* I226-V, 2* 82559, 16 GByte, 500 GByte NVME, ZTE F6005

1100 down / 450 up, Bufferbloat A+

Quote from: Mr_Flibble on March 17, 2026, 10:34:47 PMthe original static DHCP listings
Small TIP for when you get everything working again :

You can Export all Static DHCP Mappings from ISC/KEA/DNSmasqd to a .CSV file and Import it back into ISC/KEA/DNSmasqd again.

So switching between any of those DHCP Services has been made very easy and without any issues too! :)
Weird guy who likes everything Linux and *BSD on PC/Laptop/Tablet/Mobile and funny little ARM based boards :)

Quote from: Mr_Flibble on March 17, 2026, 10:34:47 PM[...]due to heavy snow, a power line went down and sent a surge up the cable line.[...]

Cable as in DOCSIS? I wonder if something like this would have helped (and be worth the insertion loss). It's just a hunk of aluminum with a (replaceable) gas tube (mine has the 90V). What's the likelihood of lightning striking twice, so to speak?