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

    Can't disable logging for LAN allow all rule

    Scheduled Pinned Locked Moved Plus 24.11 Development Snapshots (Retired)
    8 Posts 5 Posters 428 Views 5 Watching
    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.
    • patient0P Offline
      patient0
      last edited by

      Hi,

      I got a TAC Lite subscription today for a OPNsense DEC740 running pfSense CE 2.7.2. The primary motivation was that the AMD 10G NICs were not able to handle any of the SFP+ modules I threw at it. Same with FreeBSD 14.1 but with FreeBSD 15-CURRENT from a few days ago it does work (I got 10Gbit up/down internet yesterday and have now use of the 10G NICs).

      The router was running 2.7.2 CE with the WAN and LAN configured on the Intel i210 NICs before I got fiber to the flat.

      The Upgrade to 23.09 and then to 24.03 went excellent, no issues. But still no luck with the SFP+ modules. I was well aware that this may happen, all ok.

      After the upgrade to 24.08-DEVELOPMENT the SFP+ NICs were working and today I restored the CE config from a GoWin R86S-U4 that was running since the fiber upgrade from yesterday. With WAN on the ax0 interface. All went smooth and iperf3 on the router itself to the ISP maxes out the 10G (very basic setup).

      As the second step I moved the LAN from the 1G igb1 interface to the 10G ax1 interface. That went well too and it runs as it should.

      The only thing is that slightly wrong: the default LAN allow rule won't stop logging. It was disabled but keeps logging. Switching logging on and off again didn't help. Switching logging on and off for a VLAN (for IoT) works as expected.

      Sorry for all the long preamble, maybe the fact that I reassigned the LAN interface has anything to do with?

      johnpozJ 1 Reply Last reply Reply Quote 0
      • M Offline
        marcosm Netgate
        last edited by

        Some things to check - feel free to share the output/results:

        The logged traffic should have the rule ID that processed it. Make sure that rule ID matches the one from your default rule. You can get that from the rule config at the bottom of the page. Then run the following command from Diagnostics > Command Prompt:

        grep "rule id here" /tmp/rules.debug
        

        Also compare the config difference between enabling/disabling logging for the rule. This can be done from Diagnostics > Configuration History.

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

          @patient0 said in Can't disable logging for LAN allow all rule:

          the default LAN allow rule won't stop logging

          you turned off logging of allowed where?

          Here?

          log.jpg

          Or do you have logging on the specific rule on and off?

          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 25.07.1 | Lab VMs 2.8.1, 25.07.1

          patient0P 1 Reply Last reply Reply Quote 0
          • patient0P Offline
            patient0 @johnpoz
            last edited by

            @johnpoz I have disabled both the log packets default block and pass, that works fine.

            It really is the 'Default allow LAN to any rule' (rule nr 100000101)
            Screenshot 2024-06-27 at 07.26.30.png

            Keeps logging (screenshot from right now):
            Screenshot 2024-06-27 at 07.29.24.png

            And in the rule 100000101 the logging is off:
            Screenshot 2024-06-27 at 07.32.31.png

            For the IPv6 default LAN allow rule it does work.

            And I just checked /tmp/rules.debug and logging is not enabled for this rule:

            [24.08-DEVELOPMENT][root@home.arpa]/root: fgrep 100000101 /tmp/rules.debug
            pass  in  quick  on $LAN inet from $LAN__NETWORK to any ridentifier 0100000101 keep state label "USER_RULE: Default allow LAN to any rule" label "id:0100000101"
            

            That's odd, or I miss something.

            GertjanG 1 Reply Last reply Reply Quote 0
            • GertjanG Online
              Gertjan @patient0
              last edited by

              @patient0 said in Can't disable logging for LAN allow all rule:

              That's odd, or I miss something.

              No and yes.
              It's the IGMP protocol that makes the "don't log" rules still log this protocol. That's new since 24.x, and a bit awkward.
              As soon as 24.03 development finished, this popped up. It's not a 24.08 development thing I guess, as this behavior was already there.
              As this is a already know subject, the solutions are also on the forum.

              Hit the forum search button - see above - enter IGMP and you'll find some identical threads, questions and a solution.

              No "help me" PM's please. Use the forum, the community will thank you.
              Edit : and where are the logs ??

              patient0P 1 Reply Last reply Reply Quote 1
              • patient0P Offline
                patient0 @Gertjan
                last edited by patient0

                @Gertjan thanks a lot, not sure why I sometimes forget to search the forum :/

                Maybe it makes sense to delete this thread, as it may just confused people as it has nothing to do with 24.08 DEV?

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

                  @patient0 or if you would of posted sample of what you were seeing, that igmp block we could of told you right away what it was ;)

                  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 25.07.1 | Lab VMs 2.8.1, 25.07.1

                  1 Reply Last reply Reply Quote 1
                  • stephenw10S Offline
                    stephenw10 Netgate Administrator
                    last edited by

                    It is confusing. I was confused when I first saw it. Particularly because it logs blocked traffic by a pass rule. 😖

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