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

Multiport NAT with a single rule?

Scheduled Pinned Locked Moved NAT
5 Posts 2 Posters 2.4k 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
    cubert
    last edited by Jul 29, 2008, 4:45 PM Jul 29, 2008, 3:18 PM

    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
    • G
      GruensFroeschli
      last edited by Jul 29, 2008, 5:41 PM

      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 Jul 29, 2008, 6:30 PM

        @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
        • G
          GruensFroeschli
          last edited by Jul 30, 2008, 7:08 AM

          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 Jul 30, 2008, 12:40 PM

            @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
            4 out of 5
            • First post
              4/5
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
              This community forum collects and processes your personal information.
              consent.not_received