When restoring from a backup

Started by tdalej, January 02, 2025, 09:03:16 PM

Previous topic - Next topic
Especially if you edit DHCP static leases or DNS overrides in order to save yourself the time of one-by-one entry:

There appears to be no data integrity checking prior/during restore.

Some examples:
Trailing spaces in fields - like mac addresses, duplicate entries in DHCP leases, all are rejected if attempted in the GUI.
All get by the restore without error.
Best part is, in the case of ISC DHCP4, apparently handing multiple IP addresses to the same MAC address works.
Both get inserted into unbound.
So a single device gets two valid leases and both entries are inserted into DNS.

Being able to sort the static lease entry tables by the various column headers would help identify these quickly.
You can sort the leases table - so you can only see them the obvious when it occurs and some device becomes unavailable on the network because it happens to not respond to the first DNS entry.



My bad for the essentially corrupted data -- but if there is an attempt to idiot-proof opnsense, I'm winning today. :/