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

    Continue lost configuration

    Scheduled Pinned Locked Moved Off-Topic & Non-Support Discussion
    7 Posts 2 Posters 4.0k 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.
    • L
      lazaro
      last edited by

      Hello

      I have next config:

      LAN 172.16.10.1/16
      WAN 192.168.50.254/24
      VLAN 10 (wan 1) 192.168.5.254/24
      VLAN 20 (wan 2) 192.168.1.254/24
      VLAN 30 (wan 3) 192.168.15.254/24

      squid, squidguard, freeradius, capive portal(authenticatd with freeradius)

      I probe the configuration in laboratory with 2 clients(wired and wireless), and all works well, when I put pfsense in production in a college, with about 60 clients, in a certan time, usually 1 hour or less, the pfsense reboot suddently and it lost all the configuration, when restarts it ask for a setup vlans and interfaces. I don't know what's the problem, If I  take the last configuration stored in /cf/config/backup and put in /cf/config/config.xml, there is all ok when I reboot, but after I put again in production, again, pfsense reboots suddently and lost all the configuration.

      1.- How I can debug the problem?
      2.- How I can say that take the last config from the /cf/config/backup automatically???

      Thanks

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        before you copy over the backup, save the one that is "bad".

        It may be that something is corrupting the config or entering a value causing invalid xml, running the "bad" config through xmllint may reveal the problem.

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • L
          lazaro
          last edited by

          How can I parse the backup config file and check the problem? maybe the ñ character, or stressed vowels(á,é,í,ó,ú)

          1 Reply Last reply Reply Quote 0
          • jimpJ
            jimp Rebel Alliance Developer Netgate
            last edited by

            If this is on 2.0, you can just run "xmllint config.xml" or whatever file you want, and it will check it for invalid xml

            Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

            Need help fast? Netgate Global Support!

            Do not Chat/PM for help!

            1 Reply Last reply Reply Quote 0
            • L
              lazaro
              last edited by

              it's 1.2.3 version, how I can convert the config file to 2.0? I tried to import from webpage and I can't

              1 Reply Last reply Reply Quote 0
              • jimpJ
                jimp Rebel Alliance Developer Netgate
                last edited by

                You can restore a valid 1.2.3 config to a 2.0 system. If it doesn't work, there must be some invalid XML in it. The most common way that happens is international characters in description fields.

                Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                Need help fast? Netgate Global Support!

                Do not Chat/PM for help!

                1 Reply Last reply Reply Quote 0
                • L
                  lazaro
                  last edited by

                  I have checked my config backup with the xmllint command and it has problems with letter ñ, I change it and I can restore the configuration from 1.2.3 to 2.0 version. Maybe that's the problems with continuous automatic reset configuration, I gonna do test to confirm that.

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