OPNsense Forum

English Forums => General Discussion => Topic started by: LeLLa on December 05, 2023, 01:35:42 PM

Title: No factory reset...
Post by: LeLLa on December 05, 2023, 01:35:42 PM
Hello, i have a brand new DEC3850, i want to reset the firewall to default state but this is impossible throw the web interface or the CLI;
i have setup crowdsec but still after 4 "factory default" i keep seeng the config loaded.

Why you use "factory default" if the system is not reset to default state ?

If you look at the console screenshot you will see the file still intect after default restore was done 4 times....

Also wrowdsec was purged from webgui before factory reset the device

Title: Re: No factory reset...
Post by: gcorre on December 05, 2023, 06:17:56 PM
Hi!

How did you reset your device?

In the GUI it's possible to do so by going in "System / Defaults" (see attachment).
I have never used it yet so please tell me if if worked.

Cheers,
Title: Re: No factory reset...
Post by: Monviech (Cedrik) on December 05, 2023, 07:17:14 PM
I think you could use the "opnsense-bootstrap" tool from the command line to reach that goal:

https://github.com/opnsense/update
https://github.com/opnsense/update/blob/master/src/bootstrap/opnsense-bootstrap.sh.in

I didnt check if thats the same script being called when doing a Factory reset in the GUI or the TUI.

Though that scripts purpose doesn't seem to be to whipe all folders to a base state. The factory reset option, when selected (DO_FACTORY), will remove all files in the /conf/ directory. That means all custom files in other directories will be untouched. I think.
Title: Re: No factory reset...
Post by: LeLLa on December 06, 2023, 09:00:41 AM
I think this will works thanks;
i deleted all the crowdsec folders and database myself and now it's working
Title: Re: No factory reset...
Post by: frozen on December 30, 2024, 06:08:02 AM
How come a factory reset is still loading all the garbage that I wanted gone, and lead me to do the factory reset in the first place?

How do you do an actual PROPER factory reset, I want everything wiped, why is crowdsec and all this other crap still here?
Title: Re: No factory reset...
Post by: Patrick M. Hausen on December 30, 2024, 08:28:59 AM
Quote from: frozen on December 30, 2024, 06:08:02 AMHow do you do an actual PROPER factory reset?

Reinstall.