No Internet after Restore, VPNs work fine



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



  • 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



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



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


Log in to reply