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

    Making a copy of my installation

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    20 Posts 8 Posters 2.7k 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.
    • bingo600B
      bingo600
      last edited by bingo600

      With one of these "sums"

      Memstick - Serial
      SHA256 Checksum for compressed (.gz) file:
      9ce90667f39f837df88e936aa0fd478c2aee8f96a8b8d54d13431a921e877cac
      
      Memstick - VGA
      SHA256 Checksum for compressed (.gz) file:
      aa40595d090465f20fff1890092e6a14a753cd9486ccc7101d81301cad8b8840
      

      And for the "OS Impaired" 😊 , that doesn't have sha256sum

      certutil -hashfile <pfSense-install-file-name>  SHA256
      

      Example

      certutil -hashfile pfSense-CE-memstick-2.4.5-RELEASE-p1-amd64.img.gz SHA256
      SHA256 hash of pfSense-CE-memstick-2.4.5-RELEASE-p1-amd64.img.gz:
      aa40595d090465f20fff1890092e6a14a753cd9486ccc7101d81301cad8b8840
      CertUtil: -hashfile command completed successfully.
      

      If you find my answer useful - Please give the post a šŸ‘ - "thumbs up"

      pfSense+ 23.05.1 (ZFS)

      QOTOM-Q355G4 Quad Lan.
      CPUĀ  : Core i5 5250U, Ram : 8GB Kingston DDR3LV 1600
      LANĀ  : 4 x Intel 211, DiskĀ  : 240G SAMSUNG MZ7L3240HCHQ SSD

      1 Reply Last reply Reply Quote 0
      • B
        Balanga @Gertjan
        last edited by

        @gertjan said in Making a copy of my installation:

        @balanga said in Making a copy of my installation:

        pfSense-CE-2.4.4-RELEASE-p3-amd64

        Make that 2.4.5-p1.

        I didn't find a copy of that on my LAN. Installed what I had and tried to an upgrade from the console but got an error about packages for wrong OS version. With this version I couldn't even get DHCP working and have been unable to access files on my network. I'm thing of installing ISC-DHCP on one of my FreeBSD systems just to get up and runnng.

        bingo600B 1 Reply Last reply Reply Quote 0
        • bingo600B
          bingo600 @Balanga
          last edited by

          @balanga
          Remember to go to System --> Updates and select the "old deprecated"
          Else you might get 2.5.x packages

          b009463d-0b4c-4fde-83d3-b8f323ae227d-image.png

          If you find my answer useful - Please give the post a šŸ‘ - "thumbs up"

          pfSense+ 23.05.1 (ZFS)

          QOTOM-Q355G4 Quad Lan.
          CPUĀ  : Core i5 5250U, Ram : 8GB Kingston DDR3LV 1600
          LANĀ  : 4 x Intel 211, DiskĀ  : 240G SAMSUNG MZ7L3240HCHQ SSD

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

            Of note when restoring a config, especially to a different piece of hardware, you may need to use the console to manually reassign the interfaces. When hardware changes, or even on new hardware, sometimes they'll reinitialize in an order that isn't what the config is expecting.

            1 Reply Last reply Reply Quote 0
            • B
              Balanga
              last edited by

              Once I have pfSense copied and a file with all the settings, I still need to install all the pkgs. Can I get a list and download them all? I guess pkg info should tell me what has been installed...

              Also, I guess I need to copy all the files which tftpd provides access to.

              Have I forgotten anything?

              S 1 Reply Last reply Reply Quote 0
              • S
                skogs @Balanga
                last edited by

                System - Package manager menu item will show you the packages installed. You can't download them ahead of time, it is just that ~sometimes the auto install fails when you shove in the config first.

                B 1 Reply Last reply Reply Quote 0
                • B
                  Balanga @skogs
                  last edited by

                  @skogs

                  So I have created a backup copy of pfSense, but AFAICS, to make it a copy of my working installation I still need to copy any existing packages and their configurations, my current settings and a copy of my tftp files.

                  As far as my tftp files go, can I simply logon to the pfSense box and mount the backup system and copy the tftp directory structure?

                  Also could I copy my settings like this as well?

                  S 1 Reply Last reply Reply Quote 0
                  • S
                    skogs @Balanga
                    last edited by skogs

                    Yeah the documented upgrade and backup procedures are pretty good: https://docs.netgate.com/pfsense/en/latest/install/upgrade-guide.html

                    Takes you through the whole thing...backup....removing packages...etc.

                    The mounting word concerns me...you're not mounting anything. The backup is a big fat xml file with all the settings. It just downloads to your desktop or wherever.

                    Obviously if you've got a ton of boot images or something else critical on tftp, copying the files themselves off is a necessity.

                    The restore is pretty easy. Get the machine up from a blank state, click through the setup webpages quick, load the packages, then shove in the config file. Reboots, then poof you're all set generally; just re-upload the tfpt stuff after.

                    1 Reply Last reply Reply Quote 0
                    • M
                      mpetts1
                      last edited by mpetts1

                      Sorry to jump in here. We are in a similar situation. The hardware that our current install (2.4.0) is running on is failing. We have a new unit to use. We have succesfully installed 2.5.1 which was downloaded from the website and restored our current configuration. Unfortunately our current configuration does not work on the new version - i.e. internet access works but none of the NAT/Firewall rules work? All interfaces have been re-assigned correctly. I'm guessing a number of things have changed between releases - is there anything that I should check taking the above into account?

                      Thanks
                      MP

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

                        @mpetts1 said in Making a copy of my installation:

                        works but none of the NAT/Firewall rules work?

                        Hard to see - meditate I should.
                        They show up under the correct interfaces ?

                        @mpetts1 said in Making a copy of my installation:

                        current install (2.4.0)

                        This is what I would consider a close to perfect way to make sure that "upgrading" produces issues.

                        The config file is very readable.
                        It's very big because you also included the RRD stats into it.

                        Most settings can be clearly read, and checked with the GUI "on screen" settings.

                        @mpetts1 said in Making a copy of my installation:

                        none of the NAT rules work

                        The new pfSense has the same WAN "RFC 1918" IP as before
                        AND
                        is there a router in front of pfSense ?

                        If so, double check the WAN IP - as the upstream router still forwards to the IP used by the old pfSense. If the new pfSense install has another WAN IP, all is fine, it's totally normal NAT doesn't work.
                        Change your WAN IP by using a DHCP MAC Lease on the upstream router, or make your WAN IP settings static, so they correspond with the old setup.

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

                        M 1 Reply Last reply Reply Quote 0
                        • M
                          mpetts1 @Gertjan
                          last edited by

                          Thank you for getting back to me so quickly @Gertjan

                          @gertjan said in Making a copy of my installation:

                          @mpetts1 said in Making a copy of my installation:

                          works but none of the NAT/Firewall rules work?

                          Hard to see - meditate I should.
                          They show up under the correct interfaces ?

                          Yes interfaces all appear to be OK. The first thing it said when it booted up after the restore was that the interfaces didn't exist and i needed to map the correct ports.

                          @mpetts1 said in Making a copy of my installation:

                          current install (2.4.0)

                          This is what I would consider a close to perfect way to make sure that "upgrading" produces issues.

                          The config file is very readable.
                          It's very big because you also included the RRD stats into it.

                          Most settings can be clearly read, and checked with the GUI "on screen" settings.

                          Unfortunately I didn't really have a choice as I cannot find the same version anywhere! Netgate won't supply me with it as it isn't supported anymore.

                          @mpetts1 said in Making a copy of my installation:

                          none of the NAT rules work

                          The new pfSense has the same WAN "RFC 1918" IP as before
                          AND
                          is there a router in front of pfSense ?

                          If so, double check the WAN IP - as the upstream router still forwards to the IP used by the old pfSense. If the new pfSense install has another WAN IP, all is fine, it's totally normal NAT doesn't work.
                          Change your WAN IP by using a DHCP MAC Lease on the upstream router, or make your WAN IP settings static, so they correspond with the old setup.

                          Everything looks correct - the ip is correct. There is a router infront of pfSense. We were able to access the internet etc. but the NAT and Rules didn't work. Perhaps a reboot would of worked? I didn't have a huge amount of time so plugged the old one back in.

                          M 1 Reply Last reply Reply Quote 0
                          • M
                            mpetts1 @mpetts1
                            last edited by

                            @mpetts1 @gertjan

                            Solved this in the end. Removed the WAN Gateway and re-added. Same info as before, just works this time! Thank you for your help.

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