• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
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 872 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 Sep 16, 2023, 5:41 PM

    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
    • S
      stephenw10 Netgate Administrator
      last edited by Sep 16, 2023, 10:59 PM

      Hmm, so the actual file appeared to be corrupt?

      Was that in 2.7?

      Steve

      I 1 Reply Last reply Sep 17, 2023, 4:24 AM Reply Quote 0
      • I
        IllNate @stephenw10
        last edited by Sep 17, 2023, 4:24 AM

        @stephenw10 yes 2.7

        1 Reply Last reply Reply Quote 1
        • S
          stephenw10 Netgate Administrator
          last edited by Sep 17, 2023, 1:08 PM

          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 Oct 8, 2023, 11:43 AM

            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 May 22, 2024, 9:22 AM Reply Quote 1
            • S
              stephenw10 Netgate Administrator
              last edited by Oct 8, 2023, 4:38 PM

              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 May 22, 2024, 9:22 AM

                @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
                • S
                  stephenw10 Netgate Administrator
                  last edited by May 22, 2024, 12:02 PM

                  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.
                    [[user:consent.lead]]
                    [[user:consent.not_received]]