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

    pfBlockerNG memory

    Scheduled Pinned Locked Moved pfSense Packages
    6 Posts 2 Posters 1.5k 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.
    • P
      peterlecki
      last edited by

      I implemented pfBlockerNG on two firewall I manage. One has 8 GB of RAM and works fine but the other has only 4 GB (SG-2100) and is generating the following alerts:

      There were error(s) loading the rules: /tmp/rules.debug:27: cannot define table pfB_Europe_v4: Cannot allocate memory - The line in question reads [27]: table <pfB_Europe_v4> persist file "/var/db/aliastables/pfB_Europe_v4.txt"
      

      Looking at RAM utilization now shows only 15% used. I did not see what that was while the error was generated but wouldn't imagine that is what I'm coming up against. Is there some setting I can tune to allow pfBlocker to use more memory?

      1 Reply Last reply Reply Quote 0
      • P
        peterlecki
        last edited by

        RAM utilization was only 15% before and after the alert so it must be some other limit. Is there some setting I can tune to allow pfBlocker to use more memory?

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

          @peterlecki

          Hi,

          The firewall uses its own 'fixed size' memory block for rules, definitions aliases etc.

          What is the value of System > Advanced > Firewall & NAT > Firewall Maximum Table Entries
          What is the size of the file "/var/db/aliastables/pfB_Europe_v4.txt" (or better : number of lines ) ?

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

          P 1 Reply Last reply Reply Quote 1
          • P
            peterlecki @Gertjan
            last edited by

            @gertjan
            400000 (default)

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

              @peterlecki

              But not enough for pfl, it can't load what it found in the file /var/db/aliastables/pfB_Europe_v4.txt

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

              P 1 Reply Last reply Reply Quote 0
              • P
                peterlecki @Gertjan
                last edited by

                @gertjan
                Thank you for pointing that setting out. I added a "1" in front to make it a million and a half. No more alerts.

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