Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reference to alias object in NAT rule is lost after rename #2470

Closed
kendlbro opened this issue Jun 20, 2018 · 8 comments
Closed

Reference to alias object in NAT rule is lost after rename #2470

kendlbro opened this issue Jun 20, 2018 · 8 comments
Assignees
Labels
bug Production bug
Milestone

Comments

@kendlbro
Copy link

If a NAT rule refers to an alias as source address and then the same alias is renamed, the reference in the NAT rule is not updated to the new alias name. As a result the NAT rule does not work anymore.

@fichtner
Copy link
Member

@PhilippKendlbacher even with the fix from #1711 ?

@kendlbro
Copy link
Author

I am running version 18.1.9 which is the latest "production" version.

@fichtner fichtner added the support Community support label Jun 20, 2018
@fichtner
Copy link
Member

Please try ef51960 which is part of tomorrow's 18.1.10:

# opnsense-patch ef519606

Cheers,
Franco

@kendlbro
Copy link
Author

I am sorry but an upgrade to 18.1.10 did not solve the problem.
When i rename the alias, the source address changes like this:
after_rename
This was before renaming the alias:
before_rename

Thanks,
Philipp

@fichtner
Copy link
Member

No worries, let's see if we can find this :)

@fichtner fichtner added bug Production bug and removed support Community support labels Jun 21, 2018
@fichtner fichtner self-assigned this Jun 21, 2018
@fichtner fichtner added this to the 18.7 milestone Jun 21, 2018
@fichtner fichtner assigned AdSchellevis and unassigned fichtner Jul 20, 2018
@fichtner fichtner modified the milestones: 18.7, 19.1 Jul 20, 2018
@ruffy91
Copy link

ruffy91 commented Oct 18, 2018

The issue is still present in 18.7.4 and 18.7.5_1.
After renaming an Outbound NAT rule no longer points to the alias but it gets replaced with a host with the name of the alias before renaming.

Will this be fixed with the new Alias API?

@AdSchellevis
Copy link
Member

fixed with the new api enabled aliases. (checked source/destination/target on my install)

ref:

$sources[] = array(array('nat', 'outbound', 'rule'), array('source', 'network'));
$sources[] = array(array('nat', 'outbound', 'rule'), array('sourceport'));
$sources[] = array(array('nat', 'outbound', 'rule'), array('destination', 'address'));
$sources[] = array(array('nat', 'outbound', 'rule'), array('dstport'));
$sources[] = array(array('nat', 'outbound', 'rule'), array('target'));

@FrankWeis
Copy link

I have just had this again in 19.7.3.
Had an alias, used it in a NAT rule. Edited and renamed the alias for clarity, and after wondering why my NAT stopped working I came to find it dangling.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Production bug
Development

No branches or pull requests

5 participants