Navigation

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

    Multiport NAT with a single rule?

    NAT
    2
    5
    2125
    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
      cubert last edited by

      Is it possible to add a single nat rule doing multi ports that are not in a range?  I have a class C subnet that gets nated back to about 30 systems.

      I would like to create a single NAT rule that forwards  pop3,smtp,smtp-alt, Imap, http and https to a lan server. I see where we can do ranges  (1000-2000) but I do not see where we can do a list of ports under a single rule.

      –--------------------------------------------------------------------------------

      Ok I may have found the proper solution. (Aliases)  So use to iptables  -m porta,portb,portc.

      Cube Dweller
      www.squidworks.net

      "Give a man a fish and feed him for a day, Teach a man to fish and loose a steady customer."

      1 Reply Last reply Reply Quote 0
      • GruensFroeschli
        GruensFroeschli last edited by

        Yes aliases are the solution to your problem.

        Unfortunately it's not yet possible to use Aliases in the "Advanced outbound NAT" rules.

        We do what we must, because we can.

        Asking questions the smart way: http://www.catb.org/esr/faqs/smart-questions.html

        1 Reply Last reply Reply Quote 0
        • C
          cubert last edited by

          @GruensFroeschli:

          Yes aliases are the solution to your problem.

          Unfortunately it's not yet possible to use Aliases in the "Advanced outbound NAT" rules.

          "Advanced outbound NAT", Ok confussion sets in where once was light..

          I see 3 NAT options,, Port Forward, 1:1 and OutBound.

          My concerns are with Port Forwarding, Can I use Aliases with port forwarding or is all NATing not able to use Aliases?

          Cube Dweller
          www.squidworks.net

          "Give a man a fish and feed him for a day, Teach a man to fish and loose a steady customer."

          1 Reply Last reply Reply Quote 0
          • GruensFroeschli
            GruensFroeschli last edited by

            You can use aliases in all field with a red background.
            So yes you can use aliases in the normal port forwardings.

            Advanced outbound NAT is the "outbound" tab.

            We do what we must, because we can.

            Asking questions the smart way: http://www.catb.org/esr/faqs/smart-questions.html

            1 Reply Last reply Reply Quote 0
            • C
              cubert last edited by

              @GruensFroeschli:

              You can use aliases in all field with a red background.
              So yes you can use aliases in the normal port forwardings.

              Advanced outbound NAT is the "outbound" tab.

              Thanks Gruens

              Cube Dweller
              www.squidworks.net

              "Give a man a fish and feed him for a day, Teach a man to fish and loose a steady customer."

              1 Reply Last reply Reply Quote 0
              • First post
                Last post