Navigation

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

    No Internet after Restore, VPNs work fine

    General pfSense Questions
    2
    4
    1023
    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.
    • V
      vegastech last edited by

      Hello,

      I have pfSense running on an ESXi server. Some moving around needed to happen so I backed up the settings as well as copied the VM guest to a NAS. On restoring to the same hardware I cannot access the Internet. The existing 15+ VPNs work fine.

      In the system logs I am getting the following(related ) errors:

      php: : The command '/sbin/pfctl -o basic -f /tmp/rules.debug' returned exit code '1', the output was 'invalid netmask '/' /tmp/rules.debug:83: file "/etc/bogons" contains bad data pfctl: Syntax error in config file: pf rules not loaded'

      and

      php: : New alert found: There were error(s) loading the rules: invalid netmask '/' /tmp/rules.debug:83: file "/etc/bogons" contains bad data pfctl: Syntax error in config file: pf rules not loaded The line in question reads [83]: table <bogons>persist file "/etc/bogons"

      So it looks like rule related issue. Any ideas or guidance would be appreciated. I also built a new pfSense VM guest loaded the backup and have the same issues.</bogons>

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

        Rules are failing to load because bogons contains bunk data. Try running the bogon update manually:
        /etc/rc.update_bogons now

        then reloading the filter, Status>Filter reload

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

          Great! That fixed it. For other noobs (like me) run

          /etc/rc.update_bogons.sh now

          So did I miss something on my backup or is this a normal part of the restore process?

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

            I've never seen nor heard of that happening so I'm not sure how you got into that situation. Maybe an upstream proxy or something returning invalid data when it did an update, though newer versions validate that data. That's never part of the normal restore process.

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