23.1.7 - Aliases issue

Started by santi.benejam, September 12, 2023, 03:29:16 PM

Previous topic - Next topic
Our firewall is on 23.1.7 version. Yesterday I created a Host(s) alias OriginalAlias with one IP for testing. I created then some rules to deny connections from this IP. Today I renamed OriginalAlias to RenamedAlias then I deleted the firewall rules.

Now in Firewall: Diagnostics: Aliases I can see listed both aliases OriginalAlias and RenamedAlias. I have to restart something?. 

Listing the /var/db/aliastables folder I can see in it both alias *.txt files. In a config backup file there is only the RenamedAlias.

I read in the forum that I can use /usr/local/opnsense/scripts/filter/update_tables.py to renew the /var/db/aliastables folder content. It's safe to run this command?

I'm planning to upgrade the firewall Thursday to the latest version and I don't want to have problems with a configuration error during the update.

although this will not affect the update in any way, i think you can
pfctl -t OriginalAlias -Tkill
and then
/usr/local/opnsense/scripts/filter/update_tables.py
to cleanup

I will try this solution as soon as I can.

Thanks

This morning I upgraded to 23.1.11 and all went fine. The deleted/renamed aliases are not present now without doing nothing special. After the upgrade and rebooted the firewall all is working as expected.