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

    Port forwarding

    Scheduled Pinned Locked Moved NAT
    3 Posts 2 Posters 446 Views 2 Watching
    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.
    • S Offline
      shetu
      last edited by

      Hello,
      How do I forward multiple port easily? I setup centos server.
      I can forward port wan ip to lan ip with single rule.
      (SSH port 2020 > 22, Web port 2345 > 80 )
      Is there any way to use Aliases for port.

      1 Reply Last reply Reply Quote 0
      • V Offline
        viragomann
        last edited by

        So you want to forward a non-standard port to a standard port. How should pfSense get which non-standard port you're aiming to translate, when both aliases (origin and redirect) include multiple ports?

        If you're using standard ports you can forward multiple port included in an alias in only one rule. But this only works if you use the same alias for both.
        For instance, to forward SSH (22), HTTP (80) and HTTPS (443) from WAN IP to a LAN host, add an alias: Firewall > Aliases > Ports
        Add all three needed port to it. In the port forwarding rule select "other" at destination and redirect target port and enter your alias name into the custom boxes.
        So this forward wan ip 22 > internal ip 22 and so on.

        S 1 Reply Last reply Reply Quote 0
        • S Offline
          shetu @viragomann
          last edited by

          @viragomann I understand. Thanks.

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