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

    How to remove Menu items manually?

    webGUI
    7
    11
    3.9k
    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.
    • K
      kintaroju
      last edited by

      I've recently upgraded to pfsense 2.2 from 2.1.4 and well everything works great except pfblocker since they released a separate version for 2.2. I removed pfblocker from my packages list and it left behind the pfblocker in the menu list, and was wondering what file i need to edit to fix this problem. Any assistance is appreciated!
      ![menu item.png](/public/imported_attachments/1/menu item.png)
      ![menu item.png_thumb](/public/imported_attachments/1/menu item.png_thumb)

      1 Reply Last reply Reply Quote 0
      • 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.