OPNsense Forum

Archive => 23.1 Legacy Series => Topic started by: santi.benejam on September 12, 2023, 03:29:16 PM

Title: 23.1.7 - Aliases issue
Post by: santi.benejam on September 12, 2023, 03:29:16 PM
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.
Title: Re: 23.1.7 - Aliases issue
Post by: Fright on September 13, 2023, 07:05:24 PM
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
Title: Re: 23.1.7 - Aliases issue
Post by: santi.benejam on September 14, 2023, 11:54:42 AM
I will try this solution as soon as I can.

Thanks
Title: Re: 23.1.7 - Aliases issue
Post by: santi.benejam on September 19, 2023, 10:05:23 AM
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.