Deleted pfSense Package Settings Appear in Backup
-
I deleted some pfSense packages a long time ago specifically FreeRADIUS and pfBlockerNG. However, after creating a recent backup (2.7.0-RELEASE) I noticed those package settings were still listed in my backup. Is this normal or is something wrong? One would think these package settings would have been purged along with the packages.
-
Its normal.
-
Not sure about FreeRADIUS, but pfBlockerNG, Snort, and Suricata all have a similar option to either save or remove the configuration when removing the package. The default is to save the configuration, but unchecking a checkbox will result in the complete configuration in
config.xml
being deleted when the package is removed. -
@bmeeks What happens when I import the backup containing config settings for packages that are not installed? Will those config settings become null and void or appear in the next backup? I would like for said config settings to disappear when I import the backup.
-
They will be in the imported backup still. But the packages won't be re-installed if they weren't previously.
-
@alteredstate said in Deleted pfSense Package Settings Appear in Backup:
@bmeeks What happens when I import the backup containing config settings for packages that are not installed? Will those config settings become null and void or appear in the next backup? I would like for said config settings to disappear when I import the backup.
If you import a backup with those settings in it, then they will return and stay. You would have to repeat the process of installing the package again, unchecking the box to retain settings, then removing the package.
You may find it easier to simply edit the
config.xml
file directly before importing it. If you have any familiarity with XML, then you can very quickly see how to remove the section pertaining to a given package by simply studying the layout of theconfig.xml
file and deleting the appropriate section.