OPNsense Forum

Archive => 20.7 Legacy Series => Topic started by: cbyrd on August 20, 2020, 09:48:16 PM

Title: Cannot Delete alias
Post by: cbyrd on August 20, 2020, 09:48:16 PM
I have 2 alias I am trying to delete but I get the following error

Cannot Delete alias. currently in use by
[filter.rule.7/source.address]
filter.rule.8/destination.address]

The other alias is the same but with rule 6 and 9.

I have checked and non of the rules have any of these alias.   I did have rules using those alias but they have been deleted.   

I have done a states reset and also rebooted the firewall.

Using 20.7.1

Thanks
Chris
Title: Re: Cannot Delete alias
Post by: cbyrd on August 21, 2020, 10:59:03 PM
Tried Restarting again.  Still cannot delete..
Title: Re: Cannot Delete alias
Post by: AdSchellevis on August 22, 2020, 09:46:44 AM
config import or interface(s) removed?
If the rules would have descriptions it would have shown those as well, but without them it can only point to the physical location (in the config.xml).

The easiest option probably is to backup the config.xml via System -> Configuration -> Backups) and search for the alias name (which will be found in the selected row numbers), next gently edit the xml file and remove the rules and import the file again. Make sure you keep a backup and are able to start from scratch if your not used doing these things.
Title: Re: Cannot Delete alias
Post by: cbyrd on August 22, 2020, 09:16:01 PM
Thank you for the help.

They aliases were connected to a group Firewall>Group that had been deleted.   I guess when the group got deleted it did not deleted the rules associated with it.  Those rules did not show up since that group was deleted.

Thanks
Chris