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

    This problem is driving me nuts! Please help.

    Scheduled Pinned Locked Moved pfBlockerNG
    9 Posts 3 Posters 1.4k Views 4 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.
    • M
      mike3y
      last edited by

      Can somebody help me sort this out? I'm using a SG-1100.

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

      ? 1 Reply Last reply
      Reply Quote 0
      • ?
        A Former User @mike3y
        last edited by [[global:former-user]]

        @mike3y

        Go to system->advanced->firewall & nat

        Increase the firewall_max_table_entries to something large. You can set it very large if you have a ton of big aliases.

        Screen Shot 2020-04-08 at 16.25.10.png

        If you have upgraded to 2.4.5 be aware that large numbers of table entries will cause significant issues with latency and packet loss whenever the filters are reloaded or with any activity that runs pfctl.

        M 1 Reply Last reply
        Reply Quote 0
        • M
          mike3y @Guest
          last edited by

          @jwj

          I've tried this multiple times and it still throws this.

          74bd8559-30b4-41cf-9ce1-bd4a71bac26e-image.png

          ? 1 Reply Last reply
          Reply Quote 0
          • ?
            A Former User @mike3y
            last edited by [[global:former-user]]

            @mike3y Go bigger. You will have to reboot after making the change.

            You could also open a ticket. Your on Netgate HW. They will get you straight.

            M 1 Reply Last reply
            Reply Quote 0
            • M
              mike3y @Guest
              last edited by

              @jwj Okay I've rebooted and will keep an eye on it.

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

                You can go to Status->Filter Reload and reload the filters. If it doesn't throw an error you should be good. The only way it would come back is if one of those list grows so that the total number if items in all of your tables exceeds the value you set.

                M 1 Reply Last reply
                Reply Quote 0
                • M
                  mike3y @Guest
                  last edited by

                  @jwj said in This problem is driving me nuts! Please help.:

                  You can go to Status->Filter Reload and reload the filters. If it doesn't throw an error you should be good. The only way it would come back is if one of those list grows so that the total number if items in all of your tables exceeds the value you set.

                  It’s back again throwing these errors.. very frustrating!

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

                    @mike3y You can increase Firewall Maximum Table Entries to a very large value without risk. I set mine to 20000000. There are no ill effects to doing that.

                    If you want to be precise about this you should set it to twice the total number of items in tables + some amount to account for changes. So if you go to Diagnostics->Tables and add up the items in all the tables (roughly) times two plus a fudge factor (say 200000) you should be good to go.

                    Reboot and then see what happens. If you get an error please post a screen shot of the error.

                    1 Reply Last reply
                    Reply Quote 0
                    • jimpJ
                      jimp Rebel Alliance Developer Netgate
                      last edited by

                      "Cannot allocate memory" on 2.4.5 does not mean you don't have enough table entries. On 2.4.5 that error will be "Too many elements" if you need to increase the table entries limit.

                      "Cannot allocate memory" is likely just what it says, it ran out of kernel memory trying to load the table. Usually this is only temporary and will resolve itself in the next filter reload. See https://redmine.pfsense.org/issues/10310 for more info.

                      Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                      Need help fast? Netgate Global Support!

                      Do not Chat/PM for help!

                      1 Reply Last reply
                      Reply Quote 0

                      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                      With your input, this post could be even better 💗

                      Register Login
                      • First post
                        Last post
                      Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.
                      Privacy Policy · Cookie Policy