Locked out of GUI - Reseet to factory from console (shell)

Started by chemlud, November 14, 2018, 08:18:49 PM

Previous topic - Next topic
Hi!

While configuring a vga install (updated to the latest), I imported interfaces form a different config (with more interfaces than physically available in my current install), after fixing this I have a DHCP server on the LAN, but nothing going back and forth (no ping to the box, no GUI of the box, nothing). Disabeling pf from console (shell) doesn't help.

Is there a command from console (shell) to reset the opnsense to factory?

Many thanx in advance...
kind regards
chemlud
____
"The price of reliability is the pursuit of the utmost simplicity."
C.A.R. Hoare

felix eichhorns premium katzenfutter mit der extraportion energie

A router is not a switch - A router is not a switch - A router is not a switch - A rou....

I have done this before by renaming the config file and rebooting.

I'm not that good with BSD at the console, is there somethink easy such as

rm /path/to/config.xml

or such? :-)
kind regards
chemlud
____
"The price of reliability is the pursuit of the utmost simplicity."
C.A.R. Hoare

felix eichhorns premium katzenfutter mit der extraportion energie

A router is not a switch - A router is not a switch - A router is not a switch - A rou....

I would just rename the file

cd /conf
sudo mv config.xml config.bak


and then reboot

That went well, we are back in the game ;-)

Many thanks for the quick reply!
kind regards
chemlud
____
"The price of reliability is the pursuit of the utmost simplicity."
C.A.R. Hoare

felix eichhorns premium katzenfutter mit der extraportion energie

A router is not a switch - A router is not a switch - A router is not a switch - A rou....