core icon indicating copy to clipboard operation
core copied to clipboard

Outbound NAT rule breaks when renaming an Alias it is using

Open koelle25 opened this issue 6 years ago • 2 comments

[x] I have read the contributing guide lines at https://github.com/opnsense/core/blob/master/CONTRIBUTING.md

[x] I have searched the existing issues and I'm convinced that mine is new.

Describe the bug We have an Outbound NAT rule, which is using an Alias (from /ui/firewall/alias) as the Destination Address. When renaming this Alias (and pressing Apply ofc) this change is not reflected into the Outbound NAT rule. When opening the edit page of the Outbound NAT rule the Destination Address is now Single host or network with the old Alias name as the value.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'Firewall > Aliases' (/ui/firewall/alias) and add a Host alias
  2. Go to 'Firewall > NAT > Outbound' (/firewall_nat_out.php) and add a new rule using the previously created Alias as the Destination address
  3. Go back to 'Firewall > Aliases' and rename the Alias
  4. Go back to 'Firewall > NAT > Outbound', edit the rule in question and see that the Alias is not selected anymore.

Expected behavior Renaming an Alias does reflect into Outbound NAT rules (it works e.g. for rules in 'NAT > Port Forward').

Screenshots Before renaming the Alias: Before renaming the Alias After renaming the Alias: After renaming the Alias

Environment OPNsense 20.1.9-amd64 FreeBSD 11.2-RELEASE-p20-HBSD OpenSSL 1.1.1g 21 Apr 2020

koelle25 avatar Aug 24 '20 13:08 koelle25

I'm having exactly the same issue.

glasid avatar Oct 12 '20 15:10 glasid

This issue has been automatically timed-out (after 180 days of inactivity).

For more information about the policies for this repository, please read https://github.com/opnsense/core/blob/master/CONTRIBUTING.md for further details.

If someone wants to step up and work on this issue, just let us know, so we can reopen the issue and assign an owner to it.

OPNsense-bot avatar Mar 23 '21 14:03 OPNsense-bot