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

    NAT 1:1 and Firewall rules order: How to apply a rule BEFORE NAT 1:1 translation

    Scheduled Pinned Locked Moved NAT
    1 Posts 1 Posters 1.8k 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.
    • G
      gilou06
      last edited by

      My config

      Two hosts 1&2, host 2 located on LAN has a virtual IP in the DMZ. NAT 1:1 enabled between IP:A and IP:C

      My goal: to block traffic IP:B -> IP:C, but allow IP:B -> IP:A

      I beleive that the NAT 1:1 translation is applied BEFORE the firewall rules. So in fact the rule "allow IP:B -> IP:A" has no effect AND the rule "block IP:B -> IP:C" also blocks traffic IP:B -> IP:A.

      How can we workaround this ?

      |
      |Wan
      |
      PfSense–DMZ--  VirtualIP(IP:A), Host 1 (IP:B)
      |
      |LAN
      |
      Host2 (IP:C)

      thanx
      :)

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