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

    cannot load /etc/bogonsv6: Invalid argument

    Scheduled Pinned Locked Moved General pfSense Questions
    8 Posts 4 Posters 767 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.
    • I
      IllNate
      last edited by

      My pfSense was unable to connect any of the LAN networks to the internet. The system was displaying this in the notifications every 15 minutes:

      There were error(s) loading the rules: /tmp/rules.debug:23: cannot load "/etc/bogonsv6": Invalid argument - The line in question reads [23]: table <bogonsv6> persist file "/etc/bogonsv6"
      

      No results found on google for this error. Luckily I had a CARP failover set up, so I didn't experience any down time. In the command prompt, I executed:

      tail /etc/bogonsv6
      

      The file ended with a "28" on the last line, which didn't seem to be the proper syntax, so I deleted the file:

      rm /etc/bogonsv6
      

      After rebooting, my LAN networks are able to connect to the internet again. Weird. Seems like there should be some code added to throw out improperly formatted lines or something. I tried to go to Diagnostics->Tables and reload the table, but there were no tables to select in that interface, until after I deleted the table and rebooted. Things seem normal now, but were quite messed up before.

      Thought I would post this to help others, thanks,
      Nathan

      1 Reply Last reply Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by

        Hmm, so the actual file appeared to be corrupt?

        Was that in 2.7?

        Steve

        I 1 Reply Last reply Reply Quote 0
        • I
          IllNate @stephenw10
          last edited by

          @stephenw10 yes 2.7

          1 Reply Last reply Reply Quote 1
          • stephenw10S
            stephenw10 Netgate Administrator
            last edited by

            Hmm, not seen that before. Open a bug if you see it again: https://redmine.pfsense.org/

            1 Reply Last reply Reply Quote 0
            • C
              Caveat
              last edited by

              I had the same issue just now. It appeared after a reboot of the firewall:

              There were error(s) loading the rules: /tmp/rules.debug:18: cannot load "/etc/bogons": Invalid argument - The line in question reads [18]: table <bogons> persist file "/etc/bogons"
              @ 2023-10-08 13:09:06
              There were error(s) loading the rules: /tmp/rules.debug:18: cannot load "/etc/bogons": Invalid argument - The line in question reads [18]: table <bogons> persist file "/etc/bogons"
              @ 2023-10-08 13:09:27
              

              I have checked the /etc/bogons file using a text editor, but it was not readable apparently. I dont know why this happened. I have deleted /etc/bogons and /etc/bogonsv6 and this solved the issue for me.

              B 1 Reply Last reply Reply Quote 1
              • stephenw10S
                stephenw10 Netgate Administrator
                last edited by

                Usually it's because the file was not present when it initially tried to load the file at boot. After it populates the ruleset loads as expected.

                1 Reply Last reply Reply Quote 0
                • B
                  blom @Caveat
                  last edited by

                  @Caveat This was the magic bullet to finally be able to get nginx reverse proxy manager to actually redirect to nextcloud when accessing by domain instead of just showing up at the pfsense login by default. Don't know why it stopped working but this definitely solved it.

                  1 Reply Last reply Reply Quote 0
                  • stephenw10S
                    stephenw10 Netgate Administrator
                    last edited by

                    You had to remove the bogons fles?

                    It probably wasn't loading the new ruleset if that's what you saw.

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