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

    Any way to visualise / diff old pfsense backups without putting them into active use?

    Scheduled Pinned Locked Moved General pfSense Questions
    10 Posts 6 Posters 358 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.
    • S
      sloopbun
      last edited by

      Hello,

      I had a minor mishap where adding a USB ethernet caused pfsense to prompt me to redo all my vlan assignments, but I did not immediately have the match of opt9 to which vlan to hand, and my memory falsely told me I could just fix it up in the GUI.

      Anyway, things became rather muddled, with static dhcp assignments now on the wrong interfaces, etc.

      Unfortunately, my automatic backups were not working for the past few months, so my last backup is from April. Not a big deal, as things are fairly static, but I did not want to just restore this backup files directly.

      Manually going through the backup file, and diffing against the current, I think I have everything fixed and back how it should be, but I would like to confirm if I missed something.

      The question: Is there any way to visualise a backup in the GUI?

      It seems the diff is only an option for changes in the last hour, no option to upload a backup.

      I can spin up a VM, but it is going to ask me to assign interfaces again and I just want to go over what was present at the backup...

      Does this feature already exist? Any ideas on how to achieve this?

      Thanks!

      S GertjanG DerelictD 3 Replies Last reply Reply Quote 0
      • S
        SteveITS Galactic Empire @sloopbun
        last edited by

        @sloopbun If you have the two files saved, there's got to be some sort of file comparison utility. Windows has a command line one, fc.exe. I don't think I'd upload them to some random web site since they have passwords in them.

        The config history in pfSense I think is just the last "n" files but it can be useless if, say, pfBlocker's cron task or something else changes the file regularly.

        Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
        When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
        Upvote ๐Ÿ‘ helpful posts!

        1 Reply Last reply Reply Quote 0
        • V
          viragomann
          last edited by

          I also don't know any possibility to make the configuration backup visible in the GUI.

          I'd go to compare the exported config files. You can use Notepad++ with the comparison plugin. This marks the diffs. So you can easily find the changes.

          However, this presumes that you have an unencrypted backup.

          1 Reply Last reply Reply Quote 1
          • GertjanG
            Gertjan @sloopbun
            last edited by

            @sloopbun

            Plan B :
            console or SSH, option 8,

            Goto the config backup directory

            cd /cf/conf/backup
            

            See the list with backup files, normally about 100 :

            ls a -al
            

            and compare any of them, I took the two latest :

            diff config-1725209583.xml config-1724539620.xml
            

            You can also compare with a backup file and the current config.xml which can be found one level up in /cf/conf/.

            As you will see, there is info that is base64 encoded.

            No "help me" PM's please. Use the forum, the community will thank you.
            Edit : and where are the logs ??

            1 Reply Last reply Reply Quote 0
            • E
              elvisimprsntr
              last edited by

              +1 BBEdit

              GertjanG 1 Reply Last reply Reply Quote 0
              • GertjanG
                Gertjan @elvisimprsntr
                last edited by

                @elvisimprsntr

                [24.03-RELEASE][root@pfSense.bhf.tld]/root: bbedit
                bbedit: Command not found.
                

                No "help me" PM's please. Use the forum, the community will thank you.
                Edit : and where are the logs ??

                E 1 Reply Last reply Reply Quote 0
                • E
                  elvisimprsntr @Gertjan
                  last edited by elvisimprsntr

                  @Gertjan

                  BBEdit is a Mac only app. Sorry. Plenty of other editors can do side by side comparisons.

                  You have to install app on a client then copy the config XML files to the same machine

                  https://www.barebones.com/products/bbedit/index.html

                  1 Reply Last reply Reply Quote 0
                  • DerelictD
                    Derelict LAYER 8 Netgate @sloopbun
                    last edited by

                    @sloopbun

                    You can diff right in the webgui if the interesting configurations are still on the firewall using the compare button in Diagnostics > Configuration History.

                    Chattanooga, Tennessee, USA
                    A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                    DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                    Do Not Chat For Help! NO_WAN_EGRESS(TM)

                    GertjanG 1 Reply Last reply Reply Quote 2
                    • GertjanG
                      Gertjan @Derelict
                      last edited by

                      @Derelict

                      Ah, nice, thanks.
                      A real solution was already one click away .... ๐Ÿ‘ ๐Ÿ˜Š

                      No "help me" PM's please. Use the forum, the community will thank you.
                      Edit : and where are the logs ??

                      1 Reply Last reply Reply Quote 0
                      • S
                        sloopbun
                        last edited by

                        Thanks for all the inputs. Apologies if I was not clear, but my first point of call was a colour diff of old and current config. This revealed most things.

                        I went ahead and spun up a VM and loaded my old config in the GUI. To my surprise, it did not force a reboot and I was able to browse at leisure. Without having to assign VLANs to virtual interfaces.

                        Mostly what I was missing were disabled rules, but there were a couple of NAT rules where the interface was changed and I had not noticed. So I am glad to have done it.

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