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

    nat question

    Scheduled Pinned Locked Moved NAT
    2 Posts 2 Posters 257 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.
    • E
      ertugrulgazi
      last edited by ertugrulgazi

      hello guys, Lan clients access to the internet with the wan address: random ports
      I want to determine lan client outgoing port range
      for example :

      lan clients -> wan address | port range | destination | port range

      10.10.10.2 -> xxx.xxx.xxx.xxx | 6000-7000 | anywhere | any

      I need to sure 10.10.10.2 clients access to internet via xxx.xxx.xxx.xxx:6000-7000 ip and ports

      thanks for help

      1 Reply Last reply Reply Quote 0
      • ?
        A Former User
        last edited by A Former User

        This is easy.

        First you'll have to make sure you turn off auto-rule generation (if you haven't already), because it'll use all available ports, and you can't edit the auto-generated rule.

        Then create a rule that allows outbound NAT, and in the "Port or Range" box (with the description 'Enter the external source Port or Range used for remapping the original source port on connections matching the rule.') put in 6000:7000

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