OPNsense Forum

English Forums => General Discussion => Topic started by: kosta on November 11, 2025, 10:40:29 AM

Title: Clearing invisible rules
Post by: kosta on November 11, 2025, 10:40:29 AM
Hello,
I recently made a change on my home network, where I went from 192.168.0.0/24 to 10.0.0.0/16.
Of course, so that I can smoothly transition, I created new VLANs instead of changing the current and migrated hosts one by one.
Finally, I cleaned up the VLANs, and now wanted to clean up the rules, and I see that I can't change many aliases or delete them, due to old rules using them.
Apparently I should have deleted all the rules prior to cleanup.
So how can I solve this now?
Thanks
Title: Re: Clearing invisible rules
Post by: Monviech (Cedrik) on November 11, 2025, 10:47:10 AM
You can download a configuration backup and purge everything that references old "optXX" interfaces that are not in use anymore. Just be careful you don't touch your current ones.

Afterwards import that backup. Then you should be able to delete these aliases.
Title: Re: Clearing invisible rules
Post by: kosta on November 11, 2025, 10:48:15 AM
Thanks a lot for the quick answer, will do that, hopefully I don't mess up my firewall :D
Title: Re: Clearing invisible rules
Post by: Monviech (Cedrik) on November 11, 2025, 10:51:28 AM
If you mess it up just import an old backup :)

You can also do so during boot:

https://docs.opnsense.org/troubleshooting/config_reset.html