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

Firewall Invert Match doesn't work?

Scheduled Pinned Locked Moved Firewalling
5 Posts 3 Posters 330 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.
  • L
    lpfw
    last edited by Dec 20, 2022, 3:25 PM

    Am I wrong that the invert match doesn't work here?

    I would think the blocked traffic should show up in the logs as from the first rule, but seems it does nothing and hits the second rule. I guess I could imagine when using "invert" option that maybe it purposefully is not logging, but if that were the case why would the traffic continue to be evaluated and be matched by the second rule?

    pics attached (easier to explain flows)

    alias definition.png fw logs.png fw rules.png )

    V 1 Reply Last reply Dec 20, 2022, 4:33 PM Reply Quote 0
    • V
      viragomann @lpfw
      last edited by Dec 20, 2022, 4:33 PM

      @lpfw said in Firewall Invert Match doesn't work?:

      Am I wrong that the invert match doesn't work here?
      I would think the blocked traffic should show up in the logs as from the first rule, but seems it does nothing and hits the second rule. I guess I could imagine when using "invert" option that maybe it purposefully is not logging, but if that were the case why would the traffic continue to be evaluated and be matched by the second rule?

      Since you've checked "invert match" and stated the alias, which includes your destination IP, the pass rule does not match, naturally. This way you excluded your destination IP from the rule.

      Consequently the next matching rule is applied to the traffic.

      BTW: 168.108.108.0/24 is your LAN subnet?
      Are you aware of using a public IP?

      L 1 Reply Last reply Dec 20, 2022, 5:49 PM Reply Quote 1
      • L
        lpfw @viragomann
        last edited by Dec 20, 2022, 5:49 PM

        @viragomann

        oooooh...! Thanks! Makes sense now :)

        Yep re: using public IPs

        Should be fine. Not running a routing protocol w/ISP and everything is Src Nat'd so technically doesn't matter.

        J 1 Reply Last reply Dec 20, 2022, 5:56 PM Reply Quote 0
        • J
          Jarhead @lpfw
          last edited by Dec 20, 2022, 5:56 PM

          @lpfw Might not matter now but what if Googles address was 168.108.108.45?? Think you'll ever get there?
          What if any public site you want to reach uses an address in that range, think you'll ever get there?
          Why would a packet destined for an address on your LAN ever reach the WAN?

          L 1 Reply Last reply Dec 20, 2022, 5:57 PM Reply Quote 1
          • L
            lpfw @Jarhead
            last edited by Dec 20, 2022, 5:57 PM

            @jarhead

            very good point!!

            luckily i know who own's the /16 and know I'll never need it.

            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