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

    How to fully uninstall pfBlockerNG

    Scheduled Pinned Locked Moved pfBlockerNG
    17 Posts 3 Posters 6.8k 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
      gabric098
      last edited by

      I just completed the process of installing/removing the package.
      I had a look to the config.xml file and the pfblockerng section is still in the installedpackages section.... wierd.

      RonpfSR 1 Reply Last reply Reply Quote 0
      • RonpfSR
        RonpfS @gabric098
        last edited by

        @gabric098 said in How to fully uninstall pfBlockerNG:

        I just completed the process of installing/removing the package.
        I had a look to the config.xml file and the pfblockerng section is still in the installedpackages section.... wierd.

        There is a "Keep Settings" option in pfblockerNG, if you want to wipe your config from pfBlockerNG,

        Install it, Untick the "Keep Settings", Save, this will wipe the DB.
        Uninstall pfBlockerNG, then it should be gone from your config.

        2.4.5-RELEASE-p1 (amd64)
        Intel Core2 Quad CPU Q8400 @ 2.66GHz 8GB
        Backup 0.5_5, Bandwidthd 0.7.4_4, Cron 0.3.7_5, pfBlockerNG-devel 3.0.0_16, Status_Traffic_Totals 2.3.1_1, System_Patches 1.2_5

        1 Reply Last reply Reply Quote 0
        • G
          gabric098
          last edited by

          Thank you @RonpfS ,
          this helped cleaning up the config.xml.
          However I still see the CRON messages

          Starting CRON... done.
           Starting /usr/local/etc/rc.d/pfb_dnsbl.sh...done.
           Starting /usr/local/etc/rc.d/pfb_filter.sh...done.
          

          Is there a GUI way to edit cron?

          1 Reply Last reply Reply Quote 0
          • RonpfSR
            RonpfS
            last edited by

            There is a cron package

            2.4.5-RELEASE-p1 (amd64)
            Intel Core2 Quad CPU Q8400 @ 2.66GHz 8GB
            Backup 0.5_5, Bandwidthd 0.7.4_4, Cron 0.3.7_5, pfBlockerNG-devel 3.0.0_16, Status_Traffic_Totals 2.3.1_1, System_Patches 1.2_5

            1 Reply Last reply Reply Quote 0
            • G
              gabric098
              last edited by

              Yes, I've installed it but I can't see anything relevant here:

              pfsense home - Services  Cron  Settings.png

              1 Reply Last reply Reply Quote 0
              • RonpfSR
                RonpfS
                last edited by RonpfS

                Yeah the log lines had nothing to do with Cron.

                The are related to the Status / Services tab.

                2.4.5-RELEASE-p1 (amd64)
                Intel Core2 Quad CPU Q8400 @ 2.66GHz 8GB
                Backup 0.5_5, Bandwidthd 0.7.4_4, Cron 0.3.7_5, pfBlockerNG-devel 3.0.0_16, Status_Traffic_Totals 2.3.1_1, System_Patches 1.2_5

                1 Reply Last reply Reply Quote 0
                • G
                  gabric098
                  last edited by

                  mmm... I'll leave it for tonight.
                  I'll investigate more tomorrow. IT's not the end of the world since those 2 scripts don't do anything as there's nothing configured in config.xml, but it just annoys me the fact that I can't get rid of them.

                  Anyways... thanks for you support, really appreciated.

                  Gab

                  1 Reply Last reply Reply Quote 0
                  • G
                    gabric098
                    last edited by

                    Eventually I ended up manually deleting the two above mentioned scripts. That sorted out the message displayed on system startup and shutdown. Not sure if it's a pfBlockerNG bug, as I didn't find any other person reporting this problem, I assume it's just some strange corner case that happened to me.

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

                      @gabric098 said in How to fully uninstall pfBlockerNG:

                      ( /usr/local/etc/rc.d/ ) pfb_filter.sh

                      Is created during install - if it doesn't exist already.
                      Nota (from pfblockerng.inc) :

                      // Create DNSBL service
                      if (!file_exists('/usr/local/etc/rc.d/pfb_dnsbl.sh')) {
                      	pfb_dnsbl_service();
                      }
                      

                      When pfBlocker-NG is de-installed, this "service" file pfb_dnsbl.sh isn't removed.
                      Not a big deal ... even if this services start/stop/restart script runs, pfBlocker-NG can only run if it's installed.
                      A minor issue is the presence of the log entries that suggest it's still there.

                      Bigger issue : as deducted from above : ones /usr/local/etc/rc.d/pfb_dnsbl.sh exists, it will not get 'rebuild' any more during a new install or upgrade because it's already in place.

                      @BBcan177 : right or wrong ?

                      edit : same story for the service "pfb_filter.sh".

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

                      G 1 Reply Last reply Reply Quote 0
                      • G
                        gabric098 @Gertjan
                        last edited by

                        @Gertjan said in How to fully uninstall pfBlockerNG:

                        When pfBlocker-NG is de-installed, this "service" file pfb_dnsbl.sh isn't removed.
                        Not a big deal ... even if this services start/stop/restart script runs, pfBlocker-NG can only run if it's installed.

                        Couldn't this cause any issues in case the pfBlocker-NG is uninstalled with the keep settings option checked? It looks very similar to the issue I had initially.
                        The script seems to look for a specific pfblockerNG setting in config.xml which, upon a keep settings uninstall is not removed.

                        Just wondering, I have close to zero knowledge about pfblockerNG

                        Thanks,
                        Gab

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

                          These settings are all and only stored in the main pfsense config xml file.
                          All other files on the disk should be removed. It's not a "setting", after all.

                          @gabric098 said in How to fully uninstall pfBlockerNG:

                          zero knowledge about pfblockerNG

                          Me neither.
                          That's why I read the installation manual(aka : the php and xml files that install pfblockerNG are in plain old school English ...).

                          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
                          • First post
                            Last post
                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.