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

    Error - "There were error(s) loading the rules"

    Scheduled Pinned Locked Moved pfBlockerNG
    14 Posts 7 Posters 3.2k 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.
    • jimpJ
      jimp Rebel Alliance Developer Netgate
      last edited by

      Does /var/db/aliastables/pfB_Top_v4.txt exist?
      Is /var/db/aliastables/pfB_Top_v4.txt a regular file?
      Are the contents of /var/db/aliastables/pfB_Top_v4.txt OK?

      That would be coming from pfBlocker, so you might need to kick something in there to update/refresh that file. Maybe manually remove it (rm /var/db/aliastables/pfB_Top_v4.txt) and then force a pfBlocker update

      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
      • M
        motific
        last edited by

        A reload of the IP and DNS in pfBlocker’s update tab should recreate that file and any others affected for you.

        1 Reply Last reply Reply Quote 0
        • F
          fmroeira86
          last edited by

          1 - Yes it does
          2 - Yes
          3 - As far as I can understand, yes.
          4 - Already tried to reload it, but the error comes again after some time

          Thanks

          @jimp:

          Does /var/db/aliastables/pfB_Top_v4.txt exist?
          Is /var/db/aliastables/pfB_Top_v4.txt a regular file?
          Are the contents of /var/db/aliastables/pfB_Top_v4.txt OK?

          That would be coming from pfBlocker, so you might need to kick something in there to update/refresh that file. Maybe manually remove it (rm /var/db/aliastables/pfB_Top_v4.txt) and then force a pfBlocker update

          1 Reply Last reply Reply Quote 0
          • F
            fmroeira86
            last edited by

            @motific:

            A reload of the IP and DNS in pfBlocker’s update tab should recreate that file and any others affected for you.

            Yes but the error comes again after some time.

            1 Reply Last reply Reply Quote 0
            • BBcan177B
              BBcan177 Moderator
              last edited by

              Try to re-download the MaxMind database:

              php -f /usr/local/www/pfblockerng/pfblockerng.php dc
              

              Then run a Force Reload - ALL

              "Experience is something you don't get until just after you need it."

              Website: http://pfBlockerNG.com
              Twitter: @BBcan177  #pfBlockerNG
              Reddit: https://www.reddit.com/r/pfBlockerNG/new/

              1 Reply Last reply Reply Quote 0
              • F
                fmroeira86
                last edited by

                @BBcan177:

                Try to re-download the MaxMind database:

                php -f /usr/local/www/pfblockerng/pfblockerng.php dc
                

                Then run a Force Reload - ALL

                UPDATE PROCESS START [ 05/04/18 10:05:00 ]

                Clearing all DNSBL Feeds…
                ** DNSBL Disabled **

                ===[  Continent Process  ]============================================

                [ pfB_Top_v4 ] Changes found… Updating

                ===[  IPv4 Process  ]=================================================

                [ ET_Block_IP_Ranges ] Reload [ 05/04/18 10:05:01 ] . completed ..

                [ ET_Com_IPs ] Reload . completed ..

                [ BD_IPs ] Reload . completed ..

                [ Firehol3 ] Reload . completed ..

                [ Firehol2 ] Reload . completed ..

                [ RW_IPBL ] Reload [ 05/04/18 10:05:02 ] . completed ..

                ===[  IPv6 Process  ]=================================================

                ===[  Aliastables / Rules  ]==========================================

                No changes to Firewall rules, skipping Filter Reload

                Updating: pfB_Top_v4
                533 addresses added.90 addresses deleted.
                Updating: pfB_EmergingThreatsDShield
                no changes.
                Updating: pfB_BinaryDefense
                no changes.
                Updating: pfB_Firehol3
                no changes.
                Updating: pfB_Firehol2
                no changes.
                Updating: pfB_ransomwaretrackerabusech
                no changes.

                ===[ FINAL Processing ]=====================================

                [ Original IP count  ]  [ 85691 ]

                ===[ Deny List IP Counts ]===========================

                85692 total
                  34564 /var/db/pfblockerng/deny/pfB_Top_v4.txt
                  24207 /var/db/pfblockerng/deny/Firehol3.txt
                  18064 /var/db/pfblockerng/deny/Firehol2.txt
                    5469 /var/db/pfblockerng/deny/BD_IPs.txt
                    2231 /var/db/pfblockerng/deny/ET_Block_IP_Ranges.txt
                    856 /var/db/pfblockerng/deny/ET_Com_IPs.txt
                    301 /var/db/pfblockerng/deny/RW_IPBL.txt

                ====================[ Last Updated List Summary ]==============

                May 3 04:30 ET_Block_IP_Ranges
                May 3 04:30 ET_Com_IPs
                May 3 11:00 Firehol3
                May 3 11:00 Firehol2
                May 4 09:55 RW_IPBL
                May 4 10:00 BD_IPs
                May 4 10:05 pfB_Top_v4

                IPv4 alias tables IP count
                –---------------------------
                85692

                IPv6 alias tables IP count

                0

                Alias table IP Counts

                85692 total
                  34564 /var/db/aliastables/pfB_Top_v4.txt
                  24207 /var/db/aliastables/pfB_Firehol3.txt
                  18064 /var/db/aliastables/pfB_Firehol2.txt
                    5469 /var/db/aliastables/pfB_BinaryDefense.txt
                    3087 /var/db/aliastables/pfB_EmergingThreatsDShield.txt
                    301 /var/db/aliastables/pfB_ransomwaretrackerabusech.txt

                pfSense Table Stats

                table-entries hard limit  4000000
                Table Usage Count        89341

                UPDATE PROCESS ENDED [ 05/04/18 10:05:03 ]

                I'll give you feedback asap…

                1 Reply Last reply Reply Quote 0
                • F
                  fmroeira86
                  last edited by

                  Same problem:

                  There were error(s) loading the rules: /tmp/rules.debug:27: cannot load "/var/db/aliastables/pfB_Top_v4.txt": Invalid argument - The line in question reads [27]: table <pfB_Top_v4> persist file "/var/db/aliastables/pfB_Top_v4.txt"
                  @ 2018-05-05 10:00:04

                  1 Reply Last reply Reply Quote 0
                  • BBcan177B
                    BBcan177 Moderator
                    last edited by

                    @fmroeira86:

                    Same problem:

                    There were error(s) loading the rules: /tmp/rules.debug:27: cannot load "/var/db/aliastables/pfB_Top_v4.txt": Invalid argument - The line in question reads [27]: table <pfB_Top_v4> persist file "/var/db/aliastables/pfB_Top_v4.txt"
                    @ 2018-05-05 10:00:04

                    If you goto the pfSense Firewall Interface rules and hover over this rule, do you get a popup showing the IPs?

                    View the file and see if you find any non-IP lines ```
                    /var/db/aliastables/pfB_Top_v4.txt

                    "Experience is something you don't get until just after you need it."

                    Website: http://pfBlockerNG.com
                    Twitter: @BBcan177  #pfBlockerNG
                    Reddit: https://www.reddit.com/r/pfBlockerNG/new/

                    1 Reply Last reply Reply Quote 0
                    • V
                      ViniciusBr
                      last edited by

                      Hi,

                      I am having a similar issue, please tell me if I need to create another thread.

                      Here is the issue:

                      
                      There were error(s) loading the rules: /tmp/rules.debug:30: cannot load "/var/db/aliastables/pfB_Asia_v4.txt": Invalid argument - The line in question reads [30]: table <pfB_Asia_v4> persist file "/var/db/aliastables/pfB_Asia_v4.txt"
                      
                      

                      Any help is welcome!

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

                        I've not tried to read a file directly, but since the country aliases were created as URL aliases I copied that to create https://127.0.0.1:443/pfblockerng/pfblockerng.php?pfb=pfB_GeoIPUSv4. Can you try loading via URL? Our Asia alias for instance is https://127.0.0.1:443/pfblockerng/pfblockerng.php?pfb=pfB_Asia_v4 and I'm pretty sure I didn't create that one.

                        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!

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