DEFAULTCONFIG

Description

Reset the configuration with the default one. The current configuration is saved in the file "ConfigFiles.old"

Command

defaultconfig [options]
-f: Force
-r: Reboot after defaultconfig
-D: Only Restore the data partition
-p: Reset password
-u: Check usb token boot restoration
-d: Dump root partition after defaultconfig
-k: Keep autoupdate data (Pattern, Pvm, Clamav, AdvancedAV, URLFiltering), default SSL proxy authority, default sslvpn full authority and ssh host keys
-l: Keep network configuration file
-n: Do not mark firewall as having a defaultconfig configuration
-c: No backup files (.old)
-L: Remove logs
-t: Reset TPM (TPM password is required)
-T: Keep the tuning files on the firewall

Results

"Replacing current configuration with the default configuration": The default configuration has been restored, the firewall must be rebooted to activate the modifications. The admin password is not modified. "Previous defaultconfig found... remove it manually": enter the following command :"rm -R /usr/Firewall/ConfigFiles.old" and restart the procedure.

Example

VMSNSX01B2085A9>defaultconfig -f -r -p
replacing current configuration with the default configuration...
deleting Pattern database...
deleting Custom Patterns database...
deleting IP databases...
deleting Protocols Templates...
deleting Pvm database...
deleting RootCertificates...
deleting antivirus database...
deleting URLFiltering URL group database...
cleaning /usr/Firewall/var...
deleting ssh host keys...
deleting ssh ha key...
deleting ssh authorized_keys...
Reinitializing secret file...
[2021-04-29 13:54:33] [INFO] Creating links to /data directories
[2021-04-29 13:54:33] [INFO] Creating real directories
[2021-04-29 13:54:33] [INFO] Creating data specific directories
[2021-04-29 13:54:33] [INFO] Changing owner of specific directories
[2021-04-29 13:54:33] [INFO] Setting pattern version for Main partition to 6.1.amd64
Reboot the VM to launch install wizard
restoring default password...
################################################
## Restore default SRP/SSH password for admin ##
################################################
Modify SRP/SSH password of user 'admin' successful
reset urlgroup versions...
deploy plugin.def and create default configuration for dynamic plugins (based on plugin.def)
recompiling pattern database...
Generate the default SSL proxy authority.
| Key generation in progress. Please wait...
SSL proxy default authority done.
Generate the default sslvpn full authority.
Generate the server certificate of default sslvpn full authority.
\ Key generation in progress. Please wait...
Generate the user certificate of default sslvpn full authority.
/ Key generation in progress. Please wait...
sslvpn-full-default-authority done.
- Key generation in progress. Please wait...