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

    PfSense loses all configuration

    Scheduled Pinned Locked Moved General pfSense Questions
    5 Posts 3 Posters 1.4k 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.
    • X
      xxGBHxx
      last edited by

      Hi all,

      This has happened twice now and I thought I'd see if anyone else has come across it.

      Twice in the past 6 months PfSense has lost all configuration data. Absolutely everything including stored certificates in the Cert Manager, all interfaces, all rules in fact absolutely everything that I can see has been lost. This also includes all the packages and today I even found that the Squid directory had lost every roll over log and some scripts I'd written into the /var/squid/logs directory.

      The only significant event I can think of done around about the same time was an automated upgrade done through the WebGUI but I couldn't definitely say the one resulted in the other.

      I'm almost certain that this happened without a reboot as well as the missing certs I only found tonight yet my VPN (which uses one of the certs) is up and working. I went to change the config of the VPN tonight and it complained of a missing cert (which is what alerted me to the problem)

      Does anyone have any ideas why I'd lose absolutely every config on the firewall and why that would include data in the /var/squid/logs directory?

      The Firewall is running 2.2.3 in a VMware VM on ESXi 5.5 and all of the packages are on their latest versions. The firewall runs pretty flawlessly for about 2 years with the exception of these two config losses.

      Thanks

      G

      1 Reply Last reply Reply Quote 0
      • johnpozJ
        johnpoz LAYER 8 Global Moderator
        last edited by

        You reverted to a snapshot that was taken before config?  You did a reset of pfsense config?

        Your on 5.5u2 at min right..

        An intelligent man is sometimes forced to be drunk to spend time with his fools
        If you get confused: Listen to the Music Play
        Please don't Chat/PM me for help, unless mod related
        SG-4860 24.11 | Lab VMs 2.8, 24.11

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

          @johnpoz:

          You reverted to a snapshot that was taken before config?

          That'd be my guess. Or using a non-persistent disk.

          Even resetting to factory defaults wouldn't get rid of /var/squid/logs. Though I wouldn't keep any scripts there as the package reinstall may wipe that directory.

          1 Reply Last reply Reply Quote 0
          • X
            xxGBHxx
            last edited by

            Sorry had connection problems so apologies for the slow response.

            I'm as certain as I can be that neither of those two were the case unless VmWare spontaneously did it without telling me. Same with non persistance. In both situationsI'd not even touched the Vsphere console or gone anywhere near VMWa re at all. I was simply logged into the WebGUI.

            It seems stable now again but I'll try and keep an eye on it to see if theres anything else that may have caused it.

            Thanks

            G

            1 Reply Last reply Reply Quote 0
            • johnpozJ
              johnpoz LAYER 8 Global Moderator
              last edited by

              "Or using a non-persistent disk."

              Possible that the VM restarted and if using a non-persistent disk type in the VM would go back to initial stuff.  Did the VM show a restart.. I can not fathom how running and all of sudden just loose all config and data on the disk, etc.

              An intelligent man is sometimes forced to be drunk to spend time with his fools
              If you get confused: Listen to the Music Play
              Please don't Chat/PM me for help, unless mod related
              SG-4860 24.11 | Lab VMs 2.8, 24.11

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