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

    Portforwarding issue: Part range to single destination port

    Scheduled Pinned Locked Moved Firewalling
    5 Posts 5 Posters 2.2k 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.
    • C Offline
      Clouseau
      last edited by

      Firewall: NAT: Port Forward: Edit
      Redirect target port:

      Specify the port on the machine with the IP address entered above. In case of a port range, specify the beginning port of the range (the end port will be calculated automatically).
      Hint: this is usually identical to the 'from' port above

      OK - What about then if I want to forward a range of ports to single destination port? Now I must do this rule individually per every port but I would like to do it in one rule, not 100! (I need to forward 100 UDP ports to single port)

      Any easy way to do this?

      –--------------------------------------------------------------
      Multible Alix 2D13, APU1,APU2,APU3 - pfSense 2.4.x 64bit
      Multible Vmware vSphere - pfSense 2.4.x 64bit

      pfSense - FreeNAS - OwnCloud

      1 Reply Last reply Reply Quote 0
      • S Offline
        sopsmattw
        last edited by

        bump.. same need as below..

        1 Reply Last reply Reply Quote 0
        • ? This user is from outside of this forum
          Guest
          last edited by

          What happens when the destination port does not match the beginning port? It seems like then it would not calculate automatically.

          Destination port range: 2000-3000
          Redirect target port: 2001

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

            You need individual port forwards for that.

            When you specify a single target port, no matter if it matches or not, that is used as the start of a range. The ports in rdr rules must have a 1:1 relationship between external and target ports, you can't funnel a bunch of ports into a single port with one rule. (And why would you? It doesn't gain you anything)

            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
            • D Offline
              dtsomp
              last edited by

              @jimp:

              you can't funnel a bunch of ports into a single port with one rule. (And why would you? It doesn't gain you anything)

              Actually, we're planning to set up a server that will present a "we'll be right back" page during maintenance windows and we want all publicly accessible ports to be redirected to that server.

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