Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Multiple ports to a single port

    Scheduled Pinned Locked Moved NAT
    5 Posts 4 Posters 2.0k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • K
      koos147
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        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.

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • L
          lokutus25
          last edited by

          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

          1 Reply Last reply Reply Quote 0
          • P
            podilarius
            last edited by

            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: 5060

            You need nine NAT rules (one for each port) and one FW rule (the one for port 5060).</internal></wan></localip>

            1 Reply Last reply Reply Quote 0
            • L
              lokutus25
              last edited by

              @podilarius:

              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: 5060

              You 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!

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.