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

    How to remove Menu items manually?

    Scheduled Pinned Locked Moved webGUI
    11 Posts 7 Posters 4.0k 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.
    • dotdashD
      dotdash
      last edited by

      Some cruft got left behind in the config. If you can reboot, download the config, edit out the offending xml and restore.

      1 Reply Last reply Reply Quote 0
      • D
        doktornotor Banned
        last edited by

        Reinstall and uninstall pfBlocker.

        1 Reply Last reply Reply Quote 0
        • K
          kintaroju
          last edited by

          the old pfblocker is not available as a package to download anymore for 2.2, any other ideas?

          1 Reply Last reply Reply Quote 0
          • K
            kintaroju
            last edited by

            @dotdash:

            Some cruft got left behind in the config. If you can reboot, download the config, edit out the offending xml and restore.

            Which config file are you referring to?

            1 Reply Last reply Reply Quote 0
            • dotdashD
              dotdash
              last edited by

              @kintaroju:

              Which config file are you referring to?

              The downloaded config file from Backup/Restore.

              1 Reply Last reply Reply Quote 0
              • bmeeksB
                bmeeks
                last edited by

                @kintaroju:

                @dotdash:

                Some cruft got left behind in the config. If you can reboot, download the config, edit out the offending xml and restore.

                Which config file are you referring to?

                WARNING – make a config backup first unless you are supremely confident in your XML editing capabilities ....  ;)

                If you are familiar with reading an XML formatted file, then open this file in the editor (Diagnostics > Edit File) –

                /conf/config.xml

                Scroll down until you find the section tagged with <installedpackages>…</installedpackages> .  Find the XML tags enclosing pfBlocker elements and delete them.  Save the changes.  Be very careful not to mangle the XML syntax!  If you corrupt the contents of this file, you can kill the firewall.

                Bill

                1 Reply Last reply Reply Quote 0
                • BBcan177B
                  BBcan177 Moderator
                  last edited by

                  Some additional steps that I take when editing the XML config.xml by hand  ;D Learning the hard way when it crashes is no fun!!!

                  I always SSH into the box as this gives you some flexibility to quickly restore a backup before getting locked out.

                  Once in the SSH shell make a backup

                  cp /conf/config.xml /conf/config.xml.bk
                  

                  Make your manual edits to config.xml and save. Then

                  rm /tmp/config.cache
                  

                  Refresh the GUI and ensure it looks ok… If you get any errors, Revert back

                  cp /conf/config.xml.bk /conf/config.xml
                  
                  rm /tmp/config.cache
                  

                  Refresh the GUI and your back to where you started.  :)

                  "Experience is something you don't get until just after you need it."

                  Website: http://pfBlockerNG.com
                  Twitter: @BBcan177  #pfBlockerNG
                  Reddit: https://www.reddit.com/r/pfBlockerNG/new/

                  1 Reply Last reply Reply Quote 2
                  • bmeeksB
                    bmeeks
                    last edited by

                    BBcan177 is offering valuable advice and tips.  My way is more "brute force" and risky, but I do this mostly only on virtual machines that I do lots of testing and development on.  So they can be restored by reverting to a snapshot.

                    Bill

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

                      I found installing pfblockerNG, finding it broken, and telling it to reinstall it removed all previous entries and gave me a working version.
                      Not sure if this will work in your instance. HTH

                      1 Reply Last reply Reply Quote 0
                      • F
                        felickz
                        last edited by

                        @Sn3ak:

                        I found installing pfblockerNG, finding it broken, and telling it to reinstall it removed all previous entries and gave me a working version.
                        Not sure if this will work in your instance. HTH

                        Worked like a charm in 2.2.4

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