Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
15.7 Legacy Series
»
[SOLVED] Firewall -> NAT Rules -> Aliases not working for Destination
« previous
next »
Print
Pages: [
1
]
Author
Topic: [SOLVED] Firewall -> NAT Rules -> Aliases not working for Destination (Read 23295 times)
Hektor
Newbie
Posts: 18
Karma: 2
[SOLVED] Firewall -> NAT Rules -> Aliases not working for Destination
«
on:
January 25, 2016, 03:08:30 pm »
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
«
Last Edit: September 18, 2016, 11:41:59 pm by franco
»
Logged
AdSchellevis
Administrator
Hero Member
Posts: 907
Karma: 184
Re: Firewall -> NAT Rules -> Aliases not working for Destination
«
Reply #1 on:
January 25, 2016, 08:58:25 pm »
Hi Hektor,
Your defined aliases should be selectable from the "Destination" dropdown box, are you using the latest version?
Regards,
Ad
Logged
weust
Hero Member
Posts: 650
Karma: 57
Re: Firewall -> NAT Rules -> Aliases not working for Destination
«
Reply #2 on:
January 26, 2016, 12:20:31 am »
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?
Logged
Hobbyist at home, sysadmin at work. Sometimes the first is mixed with the second.
cdburgess75
Newbie
Posts: 46
Karma: 8
Re: Firewall -> NAT Rules -> Aliases not working for Destination
«
Reply #3 on:
January 26, 2016, 05:10:25 am »
Well, thats a cool idea man!
Logged
AdSchellevis
Administrator
Hero Member
Posts: 907
Karma: 184
Re: Firewall -> NAT Rules -> Aliases not working for Destination
«
Reply #4 on:
January 26, 2016, 08:17:46 am »
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).
Logged
weust
Hero Member
Posts: 650
Karma: 57
Re: Firewall -> NAT Rules -> Aliases not working for Destination
«
Reply #5 on:
January 26, 2016, 08:44:47 am »
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.
«
Last Edit: January 26, 2016, 08:47:29 am by weust
»
Logged
Hobbyist at home, sysadmin at work. Sometimes the first is mixed with the second.
AdSchellevis
Administrator
Hero Member
Posts: 907
Karma: 184
Re: Firewall -> NAT Rules -> Aliases not working for Destination
«
Reply #6 on:
January 26, 2016, 08:46:27 am »
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.
Logged
weust
Hero Member
Posts: 650
Karma: 57
Re: Firewall -> NAT Rules -> Aliases not working for Destination
«
Reply #7 on:
January 26, 2016, 09:06:15 am »
Ah, OK. I can imagine something like Nagios needing that.
(hardly slept, far from awake)
Logged
Hobbyist at home, sysadmin at work. Sometimes the first is mixed with the second.
reliberate
Newbie
Posts: 1
Karma: 0
Re: Firewall -> NAT Rules -> Aliases not working for Destination
«
Reply #8 on:
September 06, 2016, 08:25:59 am »
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?
Logged
AdSchellevis
Administrator
Hero Member
Posts: 907
Karma: 184
Re: Firewall -> NAT Rules -> Aliases not working for Destination
«
Reply #9 on:
September 06, 2016, 09:07:46 pm »
@reliberate I just committed a change for this, if you have time to test, execute the following on your console:
Code:
[Select]
opnsense-patch d3d583ab83
Logged
franco
Administrator
Hero Member
Posts: 17707
Karma: 1618
Re: Firewall -> NAT Rules -> Aliases not working for Destination
«
Reply #10 on:
September 18, 2016, 11:41:34 pm »
This will be in 16.7.4.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
15.7 Legacy Series
»
[SOLVED] Firewall -> NAT Rules -> Aliases not working for Destination