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

    Match Floating Rules bypassing NAT Port Forwards

    Scheduled Pinned Locked Moved NAT
    3 Posts 2 Posters 1.1k 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.
    • B
      Brak
      last edited by

      Hello all,

      We have a setup that uses a Squid caching server on another box, and to make that work we also have a NAT rule to redirect port 80 to our transparent proxy server.

      An issue that I'm seeing is that if we have a floating rule that Matches (but not set to Quick) to enforce the traffic limiter, the NAT rules are bypassed.

      As I understand, NAT rules should be parsed first, but this doesn't appear to be happening. If I disable the floating limiters, the NAT begins redirecting traffic with no issue.

      Has anyone seen this before? I've never seen match rules and non-quick rules causing all other rules to be ignored, especially NAT rules.

      Thanks!

      1 Reply Last reply Reply Quote 0
      • DerelictD
        Derelict LAYER 8 Netgate
        last edited by

        Why not just set the limiter on the port forward rule?  That's generally what people do.  You have to have the rule anyway.

        Floating rules are processed first.  If it is a match rule without quick, all it should do is set the limiter.

        Maybe someone who knows more about the internals will chime in.

        https://doc.pfsense.org/index.php/Firewall_Rule_Processing_Order

        ETA: I think this is a nevermind.  I believe I misunderstood your setup.

        Chattanooga, Tennessee, USA
        A comprehensive network diagram is worth 10,000 words and 15 conference calls.
        DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
        Do Not Chat For Help! NO_WAN_EGRESS(TM)

        1 Reply Last reply Reply Quote 0
        • B
          Brak
          last edited by

          @Derelict:

          Why not just set the limiter on the port forward rule?  That's generally what people do.  You have to have the rule anyway.

          Floating rules are processed first.  If it is a match rule without quick, all it should do is set the limiter.

          Maybe someone who knows more about the internals will chime in.

          https://doc.pfsense.org/index.php/Firewall_Rule_Processing_Order

          Indeed that is the "fix" but then it requires that each of our rules be duplicated multiple times so we can apply different speed tiers with the limiters. This really isn't an outage causing issue, but it does appear to be a break of user-land functionality.

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