Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    block rules not logging

    Scheduled Pinned Locked Moved Firewalling
    50 Posts 5 Posters 2.5k Views 7 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.
    • B Offline
      beatvjiking @johnpoz
      last edited by

      @johnpoz No rules are logging. I'm quite sure these counters are fresh. There's nothing prior blocking this traffic (including floating rules). The traffic is getting blocked, that's not what I'm worried about - it's just that the logs aren't getting generated.

      For context, this is a Netgate 4200 with a PCIe SSD - I did a fresh install of pfSense+ onto the SSD as soon as I received the firewall in January, but after updating to 25.07 there was no firewall logging, period. There were some old logs that could be read, but after I cleared the logs in an attempt to resuscitate logging functionality they've been blank ever since. Just "no logs to display."

      I actually have a number of machines I take care of (this is a home router, but I have a number of campus routers) that have failed to log firewall-blocked packets since they were updated to 25.07.1. I'm baffled as to why as none of their logging-related or firewall configurations have changed.

      tinfoilmattT johnpozJ 2 Replies Last reply Reply Quote 0
      • tinfoilmattT Offline
        tinfoilmatt LAYER 8 @beatvjiking
        last edited by

        @beatvjiking Show the interface of these 'problematic' rules, and your floating ruleset.

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

          @beatvjiking so nothing is logging, like system or unbound, nothing - or just the firewall log? Its just blank?

          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.11.1 | Lab VMs 2.8.1, 25.11.1

          B 1 Reply Last reply Reply Quote 1
          • B Offline
            beatvjiking @johnpoz
            last edited by

            @johnpoz just the firewall log. Services log perfectly fine, it's just the firewall log that's blank. Here's the logging config: fb356329-d547-4a2d-9747-fbd2c0a03e49-image.png

            @tinfoilmatt it's the LAN interface, the only other rules on it are the anti-lockout and a default allow. Like I said before, there are no floating rules.

            tinfoilmattT 1 Reply Last reply Reply Quote 0
            • tinfoilmattT Offline
              tinfoilmatt LAYER 8 @beatvjiking
              last edited by

              @beatvjiking So just to be clear—you have no floating rules whatsoever? How many interfaces total?

              You could also try checking the Default firewall "block" rules to confirm whether or not the blocked traffic is 'hitting' there.

              B johnpozJ 2 Replies Last reply Reply Quote 0
              • B Offline
                beatvjiking @tinfoilmatt
                last edited by

                @tinfoilmatt this machine just has WAN and LAN. It's a very basic home router setup. There are no floating rules whatsoever. I did have some before, and those didn't generate any logs either.

                To be very clear, this is not an issue of the firewall rules behaving unexpectedly. Traffic is blocked or allowed exactly as expected. It's just not logging the things I tell it to log. I hit a block rule, the packet doesn't pass, the counter goes up, but nothing goes in the log. That's all.

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

                  Yeah turning on default log should show us that stuff is being logged, since your wan for sure would see bunch of noise that should be blocked by the default deny.

                  Are you running IDS that could be blocking..

                  I do not log default deny, but I have many specific rules for logging, and they are all logging just fine.

                  Might also want to look at the actual rule - does it show logging set? What does the rule say when you, is log set in the rule?

                  cat /tmp/rules.debug

                  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.11.1 | Lab VMs 2.8.1, 25.11.1

                  B 2 Replies Last reply Reply Quote 1
                  • tinfoilmattT Offline
                    tinfoilmatt LAYER 8 @beatvjiking
                    last edited by

                    @beatvjiking said in block rules not logging:

                    It's just not logging the things I tell it to log.

                    This is not a thing. So you're asking for assistance with your own misconfiguration. Take any suggestions offered for what they're worth in that regard.

                    1 Reply Last reply Reply Quote 0
                    • B Offline
                      beatvjiking @johnpoz
                      last edited by

                      @johnpoz No IDS. I don't normally log default deny either, having turned it on for testing it's also not logging anything. /tmp/rules.debug: rules.debug.txt

                      johnpozJ 1 Reply Last reply Reply Quote 0
                      • B Offline
                        beatvjiking @johnpoz
                        last edited by

                        @johnpoz I also have many rules for logging on a lot of machines, and a lot stopped with 25.07 or 25.07.1. This machine is just the one with the simplest configuration so I figured I'd start here looking for the problem, but couldn't find anything, hence posting here. /var/log/filter.log is blank, but I don't know for sure if that's actually where pfSense pulls the data from when it comes to firewall logs.

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

                          @beatvjiking If default deny logging isn't working.. Something wrong with log file.. You said you reset them?

                          Are you doing something with ram drives?

                          Do you see log entries in the specific file, you should have a /var/log/filter.log

                          If you do a cat of that file you should see all kinds of stuff in there

                          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.11.1 | Lab VMs 2.8.1, 25.11.1

                          1 Reply Last reply Reply Quote 1
                          • tinfoilmattT Offline
                            tinfoilmatt LAYER 8 @beatvjiking
                            last edited by

                            @beatvjiking said in block rules not logging:

                            /var/log/filter.log is blank, but I don't know for sure if that's actually where pfSense pulls the data from

                            It is. That's what the GUI displays.

                            ls -alh /var/log output would be helpful.

                            1 Reply Last reply Reply Quote 0
                            • B Offline
                              beatvjiking
                              last edited by

                              I reset the firewall log a while back to see if maybe there was something wrong with the file causing it not to parse or something like that, but after resetting it never repopulated. The file size is 0. No RAM drives in play.

                              /var/log contents:

                              total 2.0 MB
                              drwxr-xr-x   5 root wheel   57B Dec 24 08:08 .
                              drwxr-xr-x  28 root wheel   28B Feb 25  2025 ..
                              -rw-r--r--   1 root wheel  9.9K Dec 18 22:53 apcupsd.events
                              -rw-------   1 root wheel   28K Dec 24 09:11 auth.log
                              -rw-------   1 root wheel  197K Dec 24 09:14 dhcpd.log
                              -rw-------   1 root wheel  499K Dec  1 18:12 dhcpd.log.0
                              -rw-------   1 root wheel  499K Oct  5 09:08 dhcpd.log.1
                              -rw-------   1 root wheel  499K Aug  6 16:46 dhcpd.log.2
                              -rw-------   1 root wheel  499K Jun  8  2025 dhcpd.log.3
                              -rw-------   1 root wheel  499K Apr 10  2025 dhcpd.log.4
                              -rw-r--r--   1 root wheel   12K Dec 12 20:13 dmesg.boot
                              -rw-------   1 root wheel    0B Dec 12 20:13 filter.log
                              -rw-------   1 root wheel  9.3K Dec 12 20:14 gateways.log
                              -rw-------   1 root wheel  343K Dec 24 10:02 ipsec.log
                              -rw-------   1 root wheel  502K Dec 24 08:08 ipsec.log.0
                              -rw-------   1 root wheel  500K Dec 24 05:29 ipsec.log.1
                              -rw-------   1 root wheel  501K Dec 24 02:45 ipsec.log.2
                              -rw-------   1 root wheel  502K Dec 23 23:59 ipsec.log.3
                              -rw-------   1 root wheel  501K Dec 23 21:17 ipsec.log.4
                              -rw-------   1 root wheel  501K Dec 23 18:52 ipsec.log.5
                              -rw-------   1 root wheel  500K Dec 23 17:13 ipsec.log.6
                              -rw-------   1 root wheel    0B Dec 12 20:13 l2tps.log
                              -rw-r--r--   1 root wheel    0B Feb 10  2025 lastlog
                              drwxr-xr-x   2 root wheel    3B Feb 10  2025 nginx
                              -rw-------   1 root wheel   88K Dec 24 09:31 nginx.log
                              -rw-------   1 root wheel  502K Dec 20 16:47 nginx.log.0
                              -rw-------   1 root wheel  510K Dec 11 23:39 nginx.log.1
                              -rw-------   1 root wheel  513K Dec 11 23:17 nginx.log.2
                              -rw-------   1 root wheel  512K Dec 11 22:55 nginx.log.3
                              -rw-------   1 root wheel  508K Dec 11 22:33 nginx.log.4
                              -rw-------   1 root wheel  520K Dec 11 22:11 nginx.log.5
                              -rw-------   1 root wheel  522K Dec  8 17:49 nginx.log.6
                              drwxr-xr-x   2 root wheel    2B Feb 10  2025 ntp
                              -rw-------   1 root wheel   49K Dec 24 00:22 ntpd.log
                              -rw-------   1 root wheel    0B Dec 12 20:13 openvpn.log
                              -rw-------   1 root wheel    0B Dec 12 20:13 pfnet-controller.log
                              -rw-------   1 root wheel    0B Dec 12 20:13 poes.log
                              -rw-------   1 root wheel    0B Dec 12 20:13 portalauth.log
                              -rw-------   1 root wheel    0B Dec 12 20:13 ppp.log
                              -rw-------   1 root wheel  236K Dec 24 09:21 resolver.log
                              -rw-------   1 root wheel  505K Feb 27  2025 resolver.log.0
                              -rw-------   1 root wheel    0B Dec 12 20:13 routing.log
                              drwx------   3 root wheel    4B Aug 14 23:34 suricata
                              -rw-------   1 root wheel  319K Dec 24 09:31 system.log
                              -rw-------   1 root wheel  500K Oct 31 01:02 system.log.0
                              -rw-------   1 root wheel  519K Aug  4 23:46 system.log.1
                              -rw-------   1 root wheel  499K May 28  2025 system.log.2
                              -rw-------   1 root wheel  500K Mar 16  2025 system.log.3
                              -rw-------   1 root wheel  499K Feb 27  2025 system.log.4
                              -rw-------   1 root wheel  499K Feb 24  2025 system.log.5
                              -rw-------   1 root wheel  499K Feb 21  2025 system.log.6
                              -rw-------   1 root wheel   22K Dec 12 20:14 userlog
                              -rw-r--r--   1 root wheel  197B Dec 24 09:11 utx.lastlogin
                              -rw-------   1 root wheel  1.2K Dec 24 09:11 utx.log
                              -rw-------   1 root wheel    0B Dec 12 20:13 vpn.log
                              -rw-------   1 root wheel    0B Dec 12 20:13 watchdogd.log
                              -rw-------   1 root wheel    0B Dec 12 20:13 wireless.log
                              
                              S 1 Reply Last reply Reply Quote 0
                              • S Offline
                                SteveITS Galactic Empire @beatvjiking
                                last edited by

                                @beatvjiking have you tried rebooting?

                                To upgrade, select your branch in System/Update/Update Settings. When upgrading, allow 10-15 minutes to reboot, or more depending on packages, CPU, and/or disk speed.
                                Only install packages for your version of pfSense.
                                Upvote 👍 helpful posts!

                                B 1 Reply Last reply Reply Quote 1
                                • B Offline
                                  beatvjiking @SteveITS
                                  last edited by

                                  @SteveITS Yes, this has persisted across reboots, and releases now.

                                  Looking across the affected machines, I'm seeing that none of them have logged anything in their firewall logs since mid-September, and that corresponded to deploying the latest Netgate-supplied System Patches package and applying the recommended patches within. At this point all the machines have been updated to 25.11 so I'm not sure exactly what version that was or what patches it contained at the time. The machines are also now running the Patches package 2.2.26 with all recommended patches installed (and absolutely no non-Netgate patches, I deploy these only for the official bugfixes/security fixes from Netgate).

                                  S 1 Reply Last reply Reply Quote 0
                                  • S Offline
                                    SteveITS Galactic Empire @beatvjiking
                                    last edited by

                                    @beatvjiking so this is happening on multiple routers?

                                    I would try deleting that filter.log file. Then maybe a filter reload.

                                    To upgrade, select your branch in System/Update/Update Settings. When upgrading, allow 10-15 minutes to reboot, or more depending on packages, CPU, and/or disk speed.
                                    Only install packages for your version of pfSense.
                                    Upvote 👍 helpful posts!

                                    B 1 Reply Last reply Reply Quote 0
                                    • B Offline
                                      beatvjiking @SteveITS
                                      last edited by

                                      @SteveITS yes, it's happening on multiple routers, but I decided to try to work on this one since it appears to be a shared issue and this one is my home device, so I can mess with it and not cause problems for my clients.

                                      I deleted the filter.log file and reloaded filter, and the file hasn't been re-created.

                                      tinfoilmattT 1 Reply Last reply Reply Quote 0
                                      • tinfoilmattT Offline
                                        tinfoilmatt LAYER 8 @beatvjiking
                                        last edited by

                                        @beatvjiking Try the red "Reset Log Files" button at Status / System Logs / Settings.

                                        Failing that, post a screencap of your "Log Rotation Options". Maybe that whole settings page actually.

                                        B 1 Reply Last reply Reply Quote 0
                                        • B Offline
                                          beatvjiking @tinfoilmatt
                                          last edited by

                                          @tinfoilmatt Resetting the logs re-created the file. Interestingly the permissions are different from what they were before - :

                                          old: -rw-------   1 root wheel    0B Dec 12 20:13 filter.log
                                          new: -rw-r--r--   1 root wheel    0B Dec 24 10:54 filter.log
                                          

                                          It's still not populating with any logs.

                                          Screenshot (again, logging default deny is just for testing here):
                                          75391d19-6409-49b2-9fd1-bfa91ec51631-image.png

                                          tinfoilmattT 1 Reply Last reply Reply Quote 0
                                          • tinfoilmattT Offline
                                            tinfoilmatt LAYER 8 @beatvjiking
                                            last edited by

                                            @beatvjiking Check the "Default firewall "pass" rules" checkbox just to see if you can get anything to log.

                                            You're squarely in sketchy territory.

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