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

    NAT rules vs firewall rules

    Scheduled Pinned Locked Moved NAT
    2 Posts 2 Posters 640 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
      cesjr
      last edited by

      Hi guys ,  NAT perform port address translation(PAT)  from LAN IP to WAN IP , but if I setting firewall rules on WAN direction (usually deny all ).  How should firewall knows to bypass WAN rules and send back to my client  ?

      I know there is a NAT mapping table , but the port number EX:12789 was blocked on WAN Rules .

      Is it different between firewall rules and NAT rules ?

      1 Reply Last reply Reply Quote 0
      • johnpozJ
        johnpoz LAYER 8 Global Moderator
        last edited by

        When you create a port forward, the default setting is to auto create the firewall rule on wan for you to allow..

        If you have rules ahead that specific block other than the default deny then that could fail - and you would have move the wan allow for your nat to be above any explicit blocks of the ports your wanting to forward inbound.

        An intelligent man is sometimes forced to be drunk to spend time with his fools
        If you get confused: Listen to the Music Play
        Please don't Chat/PM me for help, unless mod related
        SG-4860 24.11 | Lab VMs 2.8, 24.11

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