[SOLVED] Firewall -> NAT Rules -> Aliases not working for Destination

Started by Hektor, January 25, 2016, 03:08:30 PM

Previous topic - Next topic
Hello,

when I create a firewall rule the Destination field must be typed manually. I would expect so select it from the defined Aliases? At least that would be very helpful :-)

Is this a forgotten field/bug or does it have some other good reason?

Regards

Hi Hektor,

Your defined aliases should be selectable from the "Destination" dropdown box, are you using the latest version?

Regards,

Ad

I can confirm that it works for Destination, but for "Redirect target IP" you do have to either type the Alias, or IP address.
Wouldn't it make sense to have a combination of manual entry and drop down menu there as well?
Hobbyist at home, sysadmin at work. Sometimes the first is mixed with the second.


I'm not sure that's a good idea, aliases can contain multiple addresses the target ip is supposed to be one (as far as I know).

Alright, but how can a Destination have multiple addresses then?

Update: I see it now. Can be a Network of addresses.
Update 2: But if a Target can be only one address, then why allow specifying a Alias?. That should be disallowed then.
Hobbyist at home, sysadmin at work. Sometimes the first is mixed with the second.

if you have a net and want to redirect all traffic from a selection of hosts to one target, you should be able to do so.

Ah, OK. I can imagine something like Nagios needing that.
(hardly slept, far from awake)
Hobbyist at home, sysadmin at work. Sometimes the first is mixed with the second.

Bump.  Having no select box for existing Aliases on the "Redirect target IP" field kind of threw me for a bit.  Kept selecting my desired host/Alias in the Destination field, and it just wasn't working until I selected "Internet Address" for the Destination, then typed in my desired IP address (and later the Alias name instead) in the Redirect target IP field.

Been using pfSense too long (but not often enough), I guess.  Anyway, thanks for the tip.  What's it going to take to get the field turned into a select box, like Destination is?  A bounty, anyone?

@reliberate I just committed a change for this, if you have time to test, execute the following on your console:


opnsense-patch d3d583ab83