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

    Package(s) install/uninstall - previous configuration remains…

    Scheduled Pinned Locked Moved pfSense Packages
    5 Posts 4 Posters 6.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.
    • P
      philtrim
      last edited by

      I am a new pfsense user.

      I installed the latest version of pfsense and have my WAN and LAN ports configured and working
      as a default firewall.

      I was exploring some of the packages and installed squidproxy and squidguardian.  After not getting
      the results I was looking for, or not completely understanding how to configure these, I decided to uninstall both packages and start fresh.  Upon reinstalling these same 2 packages, I noticed it kept my previous settings.

      How can I do a complete fresh install of the packages without the previous configurations reappearing?
      (barring a full reinstall of pfsense, which seems a bit over-the-top and unnecessary.)

      Advice appreciated.

      Thanks.

      1 Reply Last reply Reply Quote 0
      • N
        Nachtfalke
        last edited by

        What you see is normal. The intention is if you uninstall squid2 v1.0 and then install squid2 v1.1 then you want your old config to be restored so that a new package version does not need a new configuration.

        To use the default settings there is - as far as I know - only one way:

        1. uninstall package
        2. backup the pfsense config (Diagnostics –> Baclup/restore)
        3. manual edit the config and delete the entries for the packages you uninstalled
        4. restore the config (pfsense probably needs an reboot)
        5. install the packages.

        1 Reply Last reply Reply Quote 0
        • P
          phil.davis
          last edited by

          And also see the other post at http://forum.pfsense.org/index.php/topic,57518.0.html
          After backup, I edit config.xml in place and save, then a reboot to make sure it comes up OK - saves having the system flag a package reinstall after the restore for any other packages.
          Don't do this rashly on a production system that you care about - make sure it happens when downtime is acceptable if you stuff up the editing!

          As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
          If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

          1 Reply Last reply Reply Quote 0
          • P
            phil.davis
            last edited by

            It would be nice to have a GUI that displays all the <installedpackages>config sections that are not used by any currently installed package, and lets you selectively delete ones you don't want any more.
            The problem I see is that packages create <installedpackages>sections that have names not the same as the package name. e.g. mailscanner creates a whole heap of sections with names starting with "ms". It would be impossible for a generic package cleanup interface to reliably know which sections belonged to which package. Packages would have to declare these somewhere, and I don't think they do a present.</installedpackages></installedpackages>

            As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
            If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

            1 Reply Last reply Reply Quote 0
            • marcellocM
              marcelloc
              last edited by

              @phil.davis:

              It would be impossible for a generic package cleanup interface to reliably know which sections belonged to which package. Packages would have to declare these somewhere, and I don't think they do a present.

              Or include this option on package gui, just like snort does.

              "remove all config on package uninstall"

              Treinamentos de Elite: http://sys-squad.com

              Help a community developer! ;D

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