• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
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 3.9k 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.
  • K
    kintaroju
    last edited by Feb 6, 2015, 7:20 PM

    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
    • D
      dotdash
      last edited by Feb 6, 2015, 7:26 PM

      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 Feb 6, 2015, 7:30 PM

        Reinstall and uninstall pfBlocker.

        1 Reply Last reply Reply Quote 0
        • K
          kintaroju
          last edited by Feb 6, 2015, 7:56 PM

          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 Feb 6, 2015, 7:57 PM

            @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
            • D
              dotdash
              last edited by Feb 6, 2015, 8:42 PM

              @kintaroju:

              Which config file are you referring to?

              The downloaded config file from Backup/Restore.

              1 Reply Last reply Reply Quote 0
              • B
                bmeeks
                last edited by Feb 7, 2015, 9:08 PM

                @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
                • B
                  BBcan177 Moderator
                  last edited by Feb 7, 2015, 9:20 PM

                  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
                  • B
                    bmeeks
                    last edited by Feb 7, 2015, 9:29 PM

                    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 Feb 9, 2015, 9:53 PM

                      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 Sep 3, 2015, 2:09 AM

                        @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.
                          This community forum collects and processes your personal information.
                          consent.not_received