Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
17.7 Legacy Series
»
Edit the /conf/config.xml file - Reassign interfaces
« previous
next »
Print
Pages: [
1
]
Author
Topic: Edit the /conf/config.xml file - Reassign interfaces (Read 14089 times)
dgiorgio
Newbie
Posts: 17
Karma: 0
Edit the /conf/config.xml file - Reassign interfaces
«
on:
August 13, 2017, 04:03:30 am »
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?
«
Last Edit: August 13, 2017, 04:56:38 am by dgiorgio
»
Logged
dgiorgio
Newbie
Posts: 17
Karma: 0
Re: Edit the /conf/config.xml file
«
Reply #1 on:
August 13, 2017, 04:39:53 am »
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.
Logged
dgiorgio
Newbie
Posts: 17
Karma: 0
Re: Edit the /conf/config.xml file
«
Reply #2 on:
August 13, 2017, 04:55:10 am »
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.
«
Last Edit: August 13, 2017, 04:58:15 am by dgiorgio
»
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
17.7 Legacy Series
»
Edit the /conf/config.xml file - Reassign interfaces