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

    Error(s) loading the rules: /tmp/rules.debug:18: cannot define table bogonsv6

    Scheduled Pinned Locked Moved General pfSense Questions
    12 Posts 5 Posters 2.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.
    • Y
      yaminb
      last edited by

      I keep seeing these errors in the notification.
      I've googled a bit and have already performed the following

      1. System-Advanced-Firewall&NAT-Firewall Maximum Table Entries=1000000
      2. Updated the bogon rules: /etc/rc.update_bogons.sh

      There were error(s) loading the rules: /tmp/rules.debug:18: cannot define table bogonsv6: too many elements. - The line in question reads [18]: table <bogonsv6> persist file "/etc/bogonsv6"
      @ 2020-01-29 09:19:11

      Anyone have any ideas?

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

        @yaminb said in Error(s) loading the rules: /tmp/rules.debug:18: cannot define table bogonsv6:

        Anyone have any ideas?

        Yes !
        Your question is recurrent.
        So is the answer ^^

        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
        • Y
          yaminb
          last edited by

          Can I ask for the recurrent answer ๐Ÿ™

          My googling has only resulted in the two things I have already tried.

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

            When you execute this command :

            wc /etc/bogonsv6
            

            it says

            116056  116065 1876941 /etc/bogonsv6
            

            This means it loaded, is 17 Mbyts in size and has 116056 lines ( == IP addresses and networks).

            This should be on the default (== empty) which means 4 million entries.

            a5caee1c-5a8e-4841-9890-71516f354b7c-image.png

            You've set it 4 times smaller ..... (1 million).
            So your system complains.

            Why did you took it from default - and made it smaller ?

            Btw : 4 steps :
            2f9f1339-d744-4ab3-8df5-a6d0ef8f1561-image.png

            edit : for your defense ^^ you could have inherited and old "Firewall Maximum Table Entries" value that wasn't changed during an upgrade.
            Tip : when upgrading pfSense, checkout this forum during a couple of days to see if there are any returns from users. Issues like this are spotted right away, and and "soluted".

            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 1
            • Y
              yaminb
              last edited by

              I've tried it.

              I've tried setting it to various values. 400000, 1000000, 400000.
              I've tried Status > Filter Reload
              I've tried cold rebooting.

              I don't have the pfBlocker.
              I do have squidguard, but I'm trying to uninstall that as in another thread, but that is failing (https://forum.netgate.com/topic/150076/cannot-uninstall-package-squidguard/3)

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

                What does this show?

                grep table-entries /tmp/rules.debug
                

                And what does this show?

                pfctl -sm
                

                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!

                Y 1 Reply Last reply Reply Quote 0
                • Y
                  yaminb @jimp
                  last edited by

                  @jimp said in Error(s) loading the rules: /tmp/rules.debug:18: cannot define table bogonsv6:

                  grep table-entries /tmp/rules.debug

                  @jimp

                  2.4.5-RC][root@pfSense.localdomain]/root: grep table-entries /tmp/rules.debug
                  set limit table-entries 1000000
                  
                  
                  [2.4.5-RC][root@pfSense.localdomain]/root: pfctl -sm
                  states        hard limit   202000
                  src-nodes     hard limit   202000
                  frags         hard limit     5000
                  table-entries hard limit  1000000
                  [2.4.5-RC][root@pfSense.localdomain]/root: 
                  
                  
                  1 Reply Last reply Reply Quote 0
                  • jimpJ
                    jimp Rebel Alliance Developer Netgate
                    last edited by

                    That should be more than enough table entries then. But given what's happening in your other thread, I suspect there is a more general issue with 2.4.5-RC on your device that may be contributing to the problem.

                    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
                    • GertjanG
                      Gertjan
                      last edited by

                      Just to be sure : free disk space and memory is ok, right ?

                      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
                      • B
                        Bambos
                        last edited by

                        Hello everyone, Just an update info as of today Feb.2022.

                        i bring up this topic because it has to do with the same error :

                        There were error(s) loading the rules: /tmp/rules.debug:48: cannot define table pfB_SAmerica_v6: Cannot allocate memory - The line in question reads [48]: table <pfB_SAmerica_v6> persist file "/var/db/aliastables/pfB_SAmerica_v6.txt"
                        @ 2022-02-23 08:18:23

                        I'm using pfSense CE 2.5.2 with overpower hardware.
                        The default value of max table entries was 400000. Increase that to 800000 and seems the error is ok now.

                        Maybe default value has to be changed in later versions.

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

                          @bambos said in Error(s) loading the rules: /tmp/rules.debug:18: cannot define table bogonsv6:

                          pfB_SAmerica

                          Since you are running pfBlocker, my notes for pfBlocker setup from a few years back, based on what I had read here, are:

                          "in System/Advanced/Firewall & NAT, double the default Firewall Maximum Table Entries (minimum 2 million)"

                          Note there is a bug where "On this system the default size is: " lists whatever number is currently set. I think it's supposed to be dependent on the installed RAM.

                          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!

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

                            @steveits Oh Really ?? thanks a lot. I have upgrade the Ram to 8GB so i can go 2 million. Thanks a lot.

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