Bug #11372
closed
I can delete nested alias even if it is in use
Added by Alexey Muzychenko almost 4 years ago.
Updated almost 4 years ago.
Category:
Aliases / Tables
Description
If I define an alias, use it in any firewall rule directly and try to delete the alias - I get an error "Cannot delete alias. Currently in use by ."
But if I define other alias and use it inside other alias, I can delete it without any checking, even if it is in use.
In such case "IP" nested alias can be deleted without any error prompts, but if I delete nested "Ports" alias, after applying setting it leads to the error in the Notices: "Empty destination port alias 'name_of_alias' for rule ''"
Tested on
2.5.0-DEVELOPMENT (amd64)
built on Mon Feb 01 00:03:10 EST 2021
FreeBSD 12.2-STABLE
Alexey Muzychenko wrote:
If I define an alias, use it in any firewall rule directly and try to delete the alias - I get an error "Cannot delete alias. Currently in use by ."
But if I define other alias and use it inside other alias, I can delete it without any checking, even if it is in use.
In such case "IP" nested alias can be deleted without any error prompts, but if I delete nested "Ports" alias, after applying setting it leads to the error in the Notices: "Empty destination port alias 'name_of_alias' for rule ''"
Tested on
2.5.0-DEVELOPMENT (amd64)
built on Mon Feb 01 00:03:10 EST 2021
FreeBSD 12.2-STABLE
I was unable to reproduce this on two different testing firewalls. Please provide additional information to reproduce.
- Status changed from New to Pull Request Review
- Status changed from Pull Request Review to Feedback
- Assignee set to Viktor Gurov
- Target version set to 2.5.0
- Status changed from Feedback to Closed
This is working fine. On current code I can't delete an alias which is nested in another in-use alias.
Also available in: Atom
PDF