I've been using opnsense for years.
Today, I removed a "LOSE" network interface that I am not using.
My old setup was like this.
vtnet0: WAN
Name: WAN
vtnet1: LAN
Name: LOSE
vtnet2: OPT1
Name: SERVICE
Now it's like this.
vtnet0: WAN
Name: WAN
vtnet1: LAN
Name: SERVICE
I restarted opnsense, and asked to assign the interfaces.
All my settings on the "SERVICE" interface have been lost.
Now I'm trying to restore the settings as I know it's saved in the /conf/config.xml file.
But I do not know how to do this, can anyone help me?
I backed up the original file.
And in the /conf/backup folder, I searched the file by the hour, and copied the old file, which I want to edit and restore.
I think I've been able to solve the problem.
Firewall, dhcp, dns have returned to the right configuration.
I copied a bkp that was inside the backup folder.
And I used sed to edit the file.
Inside the /conf folder.
# cat config-1502574364.1686.xml | sed 's/lan/~~/g; s/opt1/lan/g; s/~~/opt1/g' > config.xml
So far everything is ok.