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

    Settings clean up ?

    Scheduled Pinned Locked Moved General pfSense Questions
    8 Posts 3 Posters 898 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.
    • chudakC
      chudak
      last edited by

      Hello

      I was trying to set up and WG and added a new interface called "WireGuard" and got an error that that name was already used.

      I suspect that it was the name I used before WG was removed from 2.5.1. and also suspect that removal of WG settings was incomplete.

      That prompted my question - is there a way to clean up XML settings from dead entries ?

      Thx

      1 Reply Last reply Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by

        Not automatically. You can just search the config.xml file though.

        chudakC 1 Reply Last reply Reply Quote 1
        • chudakC
          chudak @stephenw10
          last edited by chudak

          @stephenw10 said in Settings clean up ?:

          Not automatically. You can just search the config.xml file though.

          Thanks

          This is tricky - how find out what is dead lines in config.xml file ?

          This is rhetorical, mumbling aloud ;)

          NogBadTheBadN 1 Reply Last reply Reply Quote 0
          • NogBadTheBadN
            NogBadTheBad @chudak
            last edited by

            @chudak Download notepad++ and switch the language to xml.

            Youโ€™ll see the headers for stuff you can remove.

            Andy

            1 x Netgate SG-4860 - 3 x Linksys LGS308P - 1 x Aruba InstantOn AP22

            1 Reply Last reply Reply Quote 0
            • stephenw10S
              stephenw10 Netgate Administrator
              last edited by

              Yes, always try to use an editor that understands xml if you're modifying the config directly.
              Avoids obvious typos which are all too easy. Ask me how I know! ๐Ÿ˜‰

              Steve

              chudakC 1 Reply Last reply Reply Quote 0
              • chudakC
                chudak @stephenw10
                last edited by

                @stephenw10 said in Settings clean up ?:

                Yes, always try to use an editor that understands xml if you're modifying the config directly.
                Avoids obvious typos which are all too easy. Ask me how I know! ๐Ÿ˜‰

                Steve

                How do you know @stephenw10 ? :)

                1 Reply Last reply Reply Quote 0
                • stephenw10S
                  stephenw10 Netgate Administrator
                  last edited by

                  You only have to upload a config file manually without checking the xml was valid one time. The pain will teach you not to do that again. ๐Ÿ˜‰

                  chudakC 1 Reply Last reply Reply Quote 0
                  • chudakC
                    chudak @stephenw10
                    last edited by

                    @stephenw10 said in Settings clean up ?:

                    You only have to upload a config file manually without checking the xml was valid one time. The pain will teach you not to do that again. ๐Ÿ˜‰

                    Oh I know about the pain to make errors in XML

                    That's why I asked initial question :)

                    What's interesting that I don't see interface dead entry in this XML, so maybe unrelated

                    Thx

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