Pular para o conteúdo principal
IT BIBLEEntrar

Fórum / Security / Firewalls & Intrusion Detection Systems (IDS)

RackGhostDwayne AO
#1

The question: what is a sensible way to back up and restore an OPNsense configuration so a dead fanless box can be swapped in under an hour, and how often do you actually test the restore? I have a routine, but I would like to compare it with yours.

My lean is that the config file is the easy part. The whole configuration lives in one XML file, so a copy of it is most of the job. The trouble is the things around the file. A spare box that is a different model may name its network ports differently, so the restored config points at interfaces that do not exist. Think of a key cut perfectly for a lock that was replaced with a different brand.

What I do now:

  1. Export the config after every change that matters, and write one line in the binder about what changed and why. The file says what the setting is. It does not say why.
  2. Keep copies in two places that are not the firewall. One on a USB stick in the rack, one on another machine. A backup stored on the dead box is just a rumor.
  3. Keep a printed page with the interface assignments, the WAN settings, and the cable-to-port mapping. If the new box has the ports in a different order, you want to know before you plug anything in.
  4. Keep the installer for the version you run, so you can match it before restoring. I would not assume a config from one release imports cleanly into a much older or newer one. Check your own version.

On testing, I will be honest. I used to say once a year and mean never. A restore you have not tried is a hope, not a backup. I am trying a restore onto a spare machine with no WAN cable attached, then checking that the interfaces, VLANs, and rules came across.

Two questions. Do you keep a cold spare or just a plan? And how often do you really test the restore, and what do you check when you do?

Dwayne

Entrar para responder.