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

    Problem editing Backup xml files in Notepad++

    Scheduled Pinned Locked Moved General pfSense Questions
    14 Posts 4 Posters 1.3k 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.
    • kiokomanK
      kiokoman LAYER 8
      last edited by

      i'm using notepad++ almost every day to tamper / destroy and revive my pfsense vm to test stuff 😂 , i didn't do anything special, just installed it without any special settings under windows 10

      ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
      Please do not use chat/PM to ask for help
      we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
      Don't forget to Upvote with the 👍 button for any post you find to be helpful.

      1 Reply Last reply Reply Quote 0
      • RicoR
        Rico LAYER 8 Rebel Alliance
        last edited by

        Same here, used Notepad++ a lot of times to edit the config.xml for different pfSense Installations and never had any issue.

        -Rico

        1 Reply Last reply Reply Quote 0
        • awebsterA
          awebster
          last edited by

          I'm using notepad++ for manual config edits too, no issues to date.

          –A.

          1 Reply Last reply Reply Quote 0
          • PhizixP
            Phizix
            last edited by Phizix

            @Rico & @awebster

            What is your environment (i.e. OS, etc.)?

            I don't understand the result since I took a copy that imports fine, loaded it in Notepad++ and forced a save with exactly the same information, then it could not be read by the restore in pfsense.

            It must be either something in my Notepad++ config or difference of OS environment.

            Completely puzzled.

            Phizix

            1 Reply Last reply Reply Quote 0
            • kiokomanK
              kiokoman LAYER 8
              last edited by kiokoman

              Immagine.jpg

              ?
              i have windows (CR+LF) not Unix (LF)

              ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
              Please do not use chat/PM to ask for help
              we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
              Don't forget to Upvote with the 👍 button for any post you find to be helpful.

              1 Reply Last reply Reply Quote 0
              • PhizixP
                Phizix
                last edited by

                @kiokoman

                If you backup a config area (say DHCP) and then open it, what does it show under the menu item "Edit\EOL Conversion". Whichever item is grayed out (greyed if you are British) is the active one. My default is also "Windows (CR+LF)" with "UTF-8", but the backup is not a new document.

                It should preserve whatever format it opens. Mine opens and shows it as "UNIX (LF)" when I open the xml files from a pfsense backup.

                What I have not tried is the same experiment with a complete backup of all areas. That file has "<?xml version="1.0"?>" as the very first line.

                I tried adding that the the DHCP file, but no joy.

                Phizix

                1 Reply Last reply Reply Quote 0
                • kiokomanK
                  kiokoman LAYER 8
                  last edited by

                  eh right
                  Immagine.jpg

                  ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
                  Please do not use chat/PM to ask for help
                  we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
                  Don't forget to Upvote with the 👍 button for any post you find to be helpful.

                  1 Reply Last reply Reply Quote 0
                  • PhizixP
                    Phizix
                    last edited by Phizix

                    All,

                    So I tried a different experiment last night. I was adding a bunch of aliases and saved the entire config, and edited the file in Notepad++ to add more aliases.

                    Then I tried restoring the edited file and it works fine. -- GO FIGURE?!

                    @kiokoman - Thanks for the response. I notice at the bottom status bar (third item from the far right) that it shows the file as "Unix (LF)". Thanks for the screenie.

                    Best regards,

                    Phizix

                    1 Reply Last reply Reply Quote 0
                    • PhizixP
                      Phizix
                      last edited by Phizix

                      Netgate Team (or anyone else that knows),

                      One last thought/question. Does the restore look at the file name in any way?

                      I did not leave the "dhcp-" part at the beginning of the file name when restoring the DHCP server info.

                      Thanks again,

                      Phizix

                      1 Reply Last reply Reply Quote 0
                      • kiokomanK
                        kiokoman LAYER 8
                        last edited by

                        no, the name can be random, i've renamed my backup several times. it check the content and section inside the file

                        ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
                        Please do not use chat/PM to ask for help
                        we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
                        Don't forget to Upvote with the 👍 button for any post you find to be helpful.

                        1 Reply Last reply Reply Quote 0
                        • PhizixP
                          Phizix
                          last edited by

                          @kiokoman

                          Just to be clear, have you saved just a section (not the whole config) edited it in Notepad++ and then restored just that section from the edited file of just that section?

                          Thanks again,

                          Phizix

                          1 Reply Last reply Reply Quote 0
                          • kiokomanK
                            kiokoman LAYER 8
                            last edited by

                            yes of course,
                            but when you want to restore that section you need to select the same section on the drop down menu

                            ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
                            Please do not use chat/PM to ask for help
                            we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
                            Don't forget to Upvote with the 👍 button for any post you find to be helpful.

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