Bug #11372
closedI can delete nested alias even if it is in use
0%
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
Updated by Michael Spears almost 4 years ago
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.
Updated by Viktor Gurov almost 4 years ago
I can reproduce it on 2.4.5/2.5
fix:
https://gitlab.netgate.com/pfSense/pfSense/-/merge_requests/123
Updated by Jim Pingle almost 4 years ago
- Status changed from New to Pull Request Review
Updated by Renato Botelho almost 4 years ago
- Status changed from Pull Request Review to Feedback
- Assignee set to Viktor Gurov
- Target version set to 2.5.0
Merged
Updated by Jim Pingle almost 4 years ago
- 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.