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

Restore file question

Scheduled Pinned Locked Moved 2.4 Development Snapshots
6 Posts 5 Posters 870 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.
  • G
    gsmornot
    last edited by Dec 14, 2017, 3:53 PM

    This may be an obvious question but can I use a config file from 2.4.3 Development to restore a 2.4.2 Final install? I know you cannot go backwards but does that apply to point releases too? No issues just have another firewall as a backup that is currently on 2.4.2 and want to avoid updating it to 2.4.3 just to use the config file.

    1 Reply Last reply Reply Quote 0
    • H
      Hugovsky
      last edited by Dec 15, 2017, 12:02 PM

      Yes, you can.

      1 Reply Last reply Reply Quote 0
      • J
        jimp Rebel Alliance Developer Netgate
        last edited by Dec 15, 2017, 1:34 PM

        Usually, no, because the configuration format changes. That said, at the moment, they are still on the same configuration format version (17.3, see https://doc.pfsense.org/index.php/Versions_of_pfSense_and_FreeBSD ) so you can move the configuration either way.

        If anything gets changed on 2.4.3 snapshots that increases that number, then the configuration can no longer be moved back to 2.4.2.

        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
        • G
          gsmornot
          last edited by Dec 15, 2017, 10:02 PM

          Worked no problem. Thanks.

          1 Reply Last reply Reply Quote 0
          • J
            jahonix
            last edited by Dec 15, 2017, 10:47 PM

            Sorry, I don't get it completely.
            When you say that "the configuration format changes" then I think there are two things you mean (and one you don't).

            a) the version number is increased

            <pfsense><version>17.3</version>

            b) tags are added. (have tags ever been deleted?)

            Generally it does not mean that you don't use XML anymore or do something else that I'd call a "format change". It's still xml version 1.0, right?

            An older version pfSense would have "problems" reading tags that it doesn't know yet.
            Would it stop importing all infos of a newer config.xml or just skip the unknown parts? (I don't have an install handy to test it with).

            Isn't calling it a "change in configuration format" a bit too much?
            But then, I'm not native english and I might be missing something.

            PS: Really no pun intended, just trying to understand!</pfsense>

            1 Reply Last reply Reply Quote 0
            • P
              PiBa
              last edited by Dec 16, 2017, 12:04 AM

              Yes its still XML, and yes 'probably' a config from 2.4.3 can be 'somewhat' imported even on 2.2.x.

              HOWEVER, it wasn't tested or even intended to work, and you will certainly loose some configuration settings (assuming you use those parts that were changed.) and end up with a 'dirty' configuration some tags could be there that shouldn't be, other might be missing that are normally always there..

              When going to a newer config version 'upgrade steps' https://github.com/pfsense/pfsense/blob/master/src/etc/inc/upgrade_config.inc can involve modifying existing settings into a newer 'format' restoring the new config format on a old pfSense version will likely mean those converted settings are not understood by the software and effectively 'skipped' or cause other unexpected problems..

              I'm not saying its impossible, and well sometimes like in this case the config didn't change and it can be done without a possibility for trouble.. But be very careful and double-check everything is still in working order when restoring a config on a old version.

              Usually a increase in version number also means some config upgrade steps where added.. so your a) and b) are done together, and yes tags get deleted/replaced or little changes to their meaning..

              My 2 cents :).

              1 Reply Last reply Reply Quote 0
              6 out of 6
              • First post
                6/6
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                This community forum collects and processes your personal information.
                consent.not_received