Navigation

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

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

    pfBlockerNG
    7
    14
    1638
    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.
    • F
      fmroeira86 last edited by

      I'm getting this warning every hour:

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

      How can I solve it?

      Thank you!</pfb_top_v4>

      1 Reply Last reply Reply Quote 0
      • Grimson
        Grimson Banned last edited by

        https://forum.pfsense.org/index.php?topic=145990.0 next time search the forum yourself.

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

          pfSense Table Stats
          –-----------------
          table-entries hard limit  4000000
          Table Usage Count        4018

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

            No hints?

            1 Reply Last reply Reply Quote 0
            • jimp
              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

              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
                    • BBcan177
                      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

                      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
                          • BBcan177
                            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

                            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 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.

                                1 Reply Last reply Reply Quote 0
                                • First post
                                  Last post

                                Products

                                • Platform Overview
                                • TNSR
                                • pfSense
                                • Appliances

                                Services

                                • Training
                                • Professional Services

                                Support

                                • Subscription Plans
                                • Contact Support
                                • Product Lifecycle
                                • Documentation

                                News

                                • Media Coverage
                                • Press
                                • Events

                                Resources

                                • Blog
                                • FAQ
                                • Find a Partner
                                • Resource Library
                                • Security Information

                                Company

                                • About Us
                                • Careers
                                • Partners
                                • Contact Us
                                • Legal
                                Our Mission

                                We provide leading-edge network security at a fair price - regardless of organizational size or network sophistication. We believe that an open-source security model offers disruptive pricing along with the agility required to quickly address emerging threats.

                                Subscribe to our Newsletter

                                Product information, software announcements, and special offers. See our newsletter archive to sign up for future newsletters and to read past announcements.

                                © 2021 Rubicon Communications, LLC | Privacy Policy