Multiple ports to a single port
-
i want to replace my old firewall with pfsense
for some reason i need to forward more than one port to the single port
so i want port 5060 to 5069 to the single port 5060
i doesn't see how i can do this except from creating 9 rules -
Correct, you will need 9 rules for that. There isn't a shortcut to do that.
If you forward a range, it forwards them all to an equivalent local range
If you forward and alias, the destination must also be the same alias/number of ports.If you want to forward nine different external ports to the same local port, there is no easier way to do that than separate rules.
-
OK, since I'm new to pfSense, how are those rules? :)
I mean that I need to map an external ip address and port to an internal ip address but different port. I can't find how :|
Can you just give me a hint? ;D -
Have you searched for that, there is lots on the forums and net on how to forward say 5066 to port 5060.
The hint is:
Src: any
sport: any
dst: <localip>dport: 5060
For the firewall rule.For the NAT is something like:
dst: <wan or="" external="" ip="" alias="">dport: 5066
redirect: <internal ip="">redirect port: 5060You need nine NAT rules (one for each port) and one FW rule (the one for port 5060).</internal></wan></localip>
-
Have you searched for that, there is lots on the forums and net on how to forward say 5066 to port 5060.
The hint is:
Src: any
sport: any
dst: <localip>dport: 5060
For the firewall rule.For the NAT is something like:
dst: <wan or="" external="" ip="" alias="">dport: 5066
redirect: <internal ip="">redirect port: 5060You need nine NAT rules (one for each port) and one FW rule (the one for port 5060).</internal></wan></localip>
That's why I'm new :)
I was doing a 1:1 nat and I was adding manually the associated rule. I wasn't using the Port Forwarding menu, which happen to add the rule by default.
Thanks!