OPNsense Forum

Archive => 18.7 Legacy Series => Topic started by: chemlud on November 14, 2018, 08:18:49 pm

Title: Locked out of GUI - Reseet to factory from console (shell)
Post by: chemlud on November 14, 2018, 08:18:49 pm
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...
Title: Re: Locked out of GUI - Reseet to factory from console (shell)
Post by: mrkev on November 14, 2018, 08:42:34 pm
I have done this before by renaming the config file and rebooting.
Title: Re: Locked out of GUI - Reseet to factory from console (shell)
Post by: chemlud on November 14, 2018, 09:06:11 pm
I'm not that good with BSD at the console, is there somethink easy such as

Code: [Select]
rm /path/to/config.xml
or such? :-)
Title: Re: Locked out of GUI - Reseet to factory from console (shell)
Post by: mrkev on November 14, 2018, 11:11:40 pm
I would just rename the file

Code: [Select]
cd /conf
sudo mv config.xml config.bak

and then reboot
Title: Re: Locked out of GUI - Reseet to factory from console (shell)
Post by: chemlud on November 15, 2018, 09:50:12 am
That went well, we are back in the game ;-)

Many thanks for the quick reply!