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

    Why is the firewall filter sooo slow to access?

    Scheduled Pinned Locked Moved Firewalling
    7 Posts 6 Posters 98 Views 6 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.
    • J Offline
      Jabiru
      last edited by

      I've had this problem ever since I first loaded pfSense 2.5. Pull up the firewall logs through the system logs and getting that page up takes minutes! It gets worse when I try to spawn the firewall filter. When it works, it's taken in excess of 3 minutes to get the filter to even show, and sometimes it never does (no erros or anything). Once you finally get the filter to show, filtering the logs doesn't take that long, (maybe 1 minute), but sometimes it takes multiple attempts to get the filter to show. Repeated clicks on the (for lack of a better word) icon shows the clicks (requests) for the filter buffer so if & when they do show up, and they roll by you have to wait to see if the last command (click) was to spawn it or close it. VERY frustrating. It has steadily gotten worse with each update. 2.72.2 was very slow, in 2.8.0 it's almost unusable. It seems worse in Firefox than in Edge, but both browsers are cripplingly slow.

      Has anyone else experienced this?
      Does anyone have an idea of how to fix this?

      Thanks ahead of time,
      Jabiru

      GertjanG johnpozJ 2 Replies Last reply Reply Quote 0
      • GertjanG Offline
        Gertjan @Jabiru
        last edited by

        @Jabiru said in Why is the firewall filter sooo slow to access?:

        Has anyone else experienced this?

        Loading a page like this :

        8e0b188d-2ccf-4846-946f-41326eef5d46-image.png

        takes ... don't know, ten of milliseconds for sure. Not more.
        3 minutes ? How many rules do you have ??

        @Jabiru said in Why is the firewall filter sooo slow to access?:

        Does anyone have an idea of how to fix this?

        Can you imagine, waiting for minutes for a web page with the interface firewall rules to show up, the (this) forum would be obliterated with complaints.
        The bad news is the good new : this only happens to you.

        So, without any details that could explain this behavior, I see two possible reasons :
        Reset pfSense to 100 % default settings - make LAN and WAN work and do not change anything else, and the problem is solved.
        If not, get other hardware.

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

        KOMK 1 Reply Last reply Reply Quote 0
        • U Offline
          Uglybrian
          last edited by

          Are you running PF Sense on a USB drive?

          1 Reply Last reply Reply Quote 0
          • KOMK Offline
            KOM @Gertjan
            last edited by

            @Gertjan He said logs, not rules. For me, the logs page takes maybe half a second to display the first page. OP likely has a weak CPU and/or slow storage.

            GertjanG 1 Reply Last reply Reply Quote 0
            • GertjanG Offline
              Gertjan @KOM
              last edited by

              @KOM said in Why is the firewall filter sooo slow to access?:

              He said logs

              😰
              Stupid me.

              How big are the logs files ?

              52c5e4b4-60dc-46cb-9ae4-eb21debaff00-image.png

              Example : if you have big log files (like mine, 2097152, already way bigger as the default value) this can explain why the GUI, using PHP to read and parse the files, takes a long time doing so.

              What are the log settings :

              5b6f95bb-ae1c-4f2c-bc3f-82a15dd6915e-image.png

              Question : do you get a lot of log lines added to this firewall log ?

              Answer : check with :

              tail -f /var/log/filter.log
              

              Do you have some / none / all firewall rules that logs ?

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

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

                @Jabiru said in Why is the firewall filter sooo slow to access?:

                Has anyone else experienced this?

                As mentioned how big are your logs, how many entries do you display? I have my logs to show the last 5000 entries, so its not instant - but it doesn't take minutes.

                Do you have compression setup?

                So I just clicked into firewall logs - and doing the exact timing method of counting 1001,1002,etc.. in my head it was about 10 seconds to display.. And you will notice I display last 5000 records

                lopgs.jpg

                Speed will for sure vary depending what your running pfsense on, number of logs, etc. etc..

                I think you can have a problem if you have tiny log files, and you compress them - and then want to display a lot of records were pfsense has to open up logs that have been rotated and compressed.. If I recall there was some issue brought up with that quite some time ago about log compression. If you look on the setting it is recommended not to use compression if you are using zfs file system - which has been around for good long time.

                My log files are not as big as @Gertjan at 2MB, but mine are set to 1MB.

                I should prob increase mine, looks like I only go back couple of days with my current rotation

                -rw-------   1 root       wheel       239079 Oct 29 22:30 filter.log
                -rw-------   1 root       wheel      1030487 Oct 29 21:54 filter.log.0
                -rw-------   1 root       wheel      1024324 Oct 29 15:45 filter.log.1
                -rw-------   1 root       wheel      1023497 Oct 29 06:58 filter.log.2
                -rw-------   1 root       wheel      1023468 Oct 28 23:09 filter.log.3
                -rw-------   1 root       wheel      1025519 Oct 28 18:20 filter.log.4
                -rw-------   1 root       wheel      1023953 Oct 28 12:26 filter.log.5
                

                edit: just bumped to 2MB and 8 logs vs the 6 I had.

                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 0
                • P Offline
                  pwood999
                  last edited by

                  My settings, filters, etc. load almost instantly (<1sec) at home. It's running on a rather old HP Intel I5 with 4GB memory.

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