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

    There were error(s) Cannot allocate memory

    Scheduled Pinned Locked Moved Firewalling
    10 Posts 4 Posters 1.0k 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.
    • jptferreiraJ
      jptferreira
      last edited by

      The new installation 3 days ago has been helping a lot, however after being able to gain access to the logs now I get "/rc.filter_configure_sync: New alert found: There were error(s) loading the rules: /tmp/rules.debug:18: cannot define table bogonsv6: Cannot allocate memory - The line in question reads [18]: table <bogonsv6> persist file "/etc/bogonsv6"" under the Status/SystemsLogs/System/General"
      I'm worried about the Cannot allocate memory. Can this be the reason why I still get hacking attempts going though into the VOIP PBX mostly from Russia and Germany? I've those selected under the pfBlcokerNG and active but still no major luck. Much better than ClearOS anyway!
      I'd appreciate any help on this issue.
      Thanks

      1 Reply Last reply Reply Quote 0
      • dotdashD
        dotdash
        last edited by

        Go to system, advanced, firewall & nat. Increase the maximum table entries.
        If you are not using ipv6, consider disabling it. Then the firewall will not need to load the ipv6 bogons table.

        jptferreiraJ 1 Reply Last reply Reply Quote 1
        • jptferreiraJ
          jptferreira @dotdash
          last edited by

          @dotdash Thanks, disabled ipv6 and increased from 400000 to 700000 and after restart still get the same "rc.bootup: New alert found: There were error(s) loading the rules: /tmp/rules.debug:33: cannot define table pfB_PRI1: Cannot allocate memory - The line in question reads [33]: table <pfB_PRI1> persist file "/var/db/aliastables/pfB_PRI1.txt""
          Any idea what could be provoking this error?
          Thanks again

          jptferreiraJ 1 Reply Last reply Reply Quote 0
          • jptferreiraJ
            jptferreira @jptferreira
            last edited by jptferreira

            @dotdash Because I'm using pfBlockerNG... can it be that I need to add much more?

            1 Reply Last reply Reply Quote 0
            • dotdashD
              dotdash
              last edited by

              It all depends on how big your tables are. You could try bumping it up in increments to see if the error goes away.

              jptferreiraJ 1 Reply Last reply Reply Quote 1
              • jptferreiraJ
                jptferreira @dotdash
                last edited by

                @dotdash Thanks. I'll do that after hours. I really appreciate your input as I'm new to this firewall , however we are really impressed with it.

                1 Reply Last reply Reply Quote 0
                • ?
                  A Former User
                  last edited by

                  You need to set it at (total number of table items) * 2

                  jptferreiraJ 1 Reply Last reply Reply Quote 1
                  • jptferreiraJ
                    jptferreira @A Former User
                    last edited by

                    @jwj Thanks

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

                      You're posting in the TNSR forum...but I think you're using pfSense?

                      My setup instructions for pfBlockerNG were from years ago and I don't think I have a link. My note says "double default Firewall Maximum States." Pinned post https://forum.netgate.com/topic/77601/pfblockerng/1193 has a note at the bottom from the package maintainer about using 2 million. The "correct" minimum required answer depends on what is being loaded (no IP lists, no memory).

                      Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
                      When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
                      Upvote 👍 helpful posts!

                      jptferreiraJ 1 Reply Last reply Reply Quote 1
                      • jptferreiraJ
                        jptferreira @SteveITS
                        last edited by

                        @teamits oops... you are correct. So busy and got distracted. Thanks for pointing that........... and thanks for your reply. I'll work on it this weekend to not affect productivity.
                        Thanks again

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