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

    How to revert pfsense to unpatched status?

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    3 Posts 3 Posters 504 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.
    • ssbarneaS
      ssbarnea
      last edited by

      After I updated a patch on github, pfsense refuses to accept it: reporting that it cannot apply or restore it.

      I want to bring back the pfsense to the unpatched status, so I can re-apply the new patch.

      I mention that I already have 2.4.2 and doing a reinstallation is out of question. Is any trick I can use to make it reset its status? Like manually reapplying the 2.4.2 upgrade?

      Please note that this patch was minor, as modifying only two PHP files.

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

        @ssbarnea:

        I mention that I already have 2.4.2 and doing a reinstallation is out of question. Is any trick I can use to make it reset its status? Like manually reapplying the 2.4.2 upgrade?

        " reapplying the 2.4.2 upgrade" === reinstalling ….
        There is not such thing as "repair files" function because files are never modified by pfSense itself - except the build in upgrade function.

        @ssbarnea:

        Please note that this patch was minor, as modifying only two PHP files.

        The original "2.4.2" files can be found on github, so doing it by hand using the right text editor, like notepad++, or even the build in "vi" if you know your ways around with it.
        Or : also very simple : as you already have the original 2.4.2 iso.gz file, extract it, get your to files and overwrite the files on your pfSense installation with it.

        Btw, a patch-manager package exists for pfSense, and IF it can NOT apply the patch you put into it, you have nothing to 'restore" because it wasn't applied in the first place.
        Patching by hand : keep copies, or .. well ….  ;)

        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
        • GrimsonG
          Grimson Banned
          last edited by

          ZFS snapshots are also usefull, if you do one before you screw up.

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