OPNsense Forum

Archive => 18.1 Legacy Series => Topic started by: GaardenZwerch on July 17, 2018, 03:25:24 pm

Title: Bug: Renaming Aliases and NAT
Post by: GaardenZwerch on July 17, 2018, 03:25:24 pm
Hi,
I have just discovered that when you edit an Alias and change its name, the renaming does not happen in (outgoing) NAT rules, leaving them dangling.

Bug?

Thanks
Title: Re: Bug: Renaming Aliases and NAT
Post by: JasMan on July 18, 2018, 12:43:26 pm
I've noticed this behaviour too.
But when the rules are reloaded the new name of the alias should appera. Have you tried this?
Title: Re: Bug: Renaming Aliases and NAT
Post by: franco on July 18, 2018, 11:41:29 pm
Could it be this one? https://github.com/opnsense/core/issues/2470


Cheers,
Franco
Title: Re: Bug: Renaming Aliases and NAT
Post by: GaardenZwerch on July 19, 2018, 07:49:22 am
@Franco: Yes, it looks a lot like this.
@JasMan: I'm not sure, the firewall has even been rebooted since I renamed the alias.
Title: Re: Bug: Renaming Aliases and NAT
Post by: franco on July 19, 2018, 09:52:51 am
Ok, the fix is on hold for now because the alias pages are undergoing a major change for MVC/API support. It will be fixed in that capacity in an early 18.7.x, but not in the way that it is currently integrated unless somebody wants to propose a fix here via PR of course. :)


Cheers,
Franco
Title: Re: Bug: Renaming Aliases and NAT
Post by: GaardenZwerch on July 19, 2018, 11:04:20 am
Thanks!
Regarding MVC/API, is there any doc for this? Even incomplete....
I am doing a POC with opnsense at the moment on a couple of boxes, and if it covers all my needs I will be implementing it on 80 sites.
So anything that will prevent me form having to create/maintain the same aliases over and over through the gui (which is nice) will be hugely appreciated.

Thanks again
Title: Re: Bug: Renaming Aliases and NAT
Post by: marjohn56 on July 19, 2018, 11:26:13 am
@GaardenZwerch - You could just import the Aliases only from a known good config using the backup/restore feature. Would certainly save you having to re-enter them for each device.