Patch to enable Squid cachemgr



  • The attached patch will allow the Squid Cachemgr to be available.  As there is no view security in the cachemgr.cgi provided by Squid, I left it disabled by default and only copy it into the Web directory when enabled…

    squid_cachemgr.patch.txt



  • Pls post step-by-step instruction for novices how install this patch?
    Thk's



  • @msamblanet:

    The attached patch will allow the Squid Cachemgr to be available.  As there is no view security in the cachemgr.cgi provided by Squid, I left it disabled by default and only copy it into the Web directory when enabled…

    Looks reasonable, I'll try to test it later today and commit.  Can anyone else confirm that this patch works for them?

    –Bill



  • Bill,

    Just FYI - This patch does not include the access-log disable patch from http://forum.pfsense.org/index.php?topic=1087.0 - it is only the cachemgr patch

    dvserg,

    This is a patch against /usr/local/pkg/squid_ng.inc and /usr/local/pkg/squid_ng.xml.  Install the squid module, get it working, then backup the files and apply the patch. You should have new configuration options on the 1st tab of the Squid config.  To obtain the patch tools, see the URL above as that message contains directions for obtaining them.

    If you are not comfortable with this level of directions, I'd suggest you wait until Bill has merged the patch…modifying files on a firewall is not a good place to learn new tools if you can avoid it :)

    Note that I don't think most people need the detail provided by the cachemgr but when you do have a wierd problem (or need some visibility into stats), it can be helpful...



  • @msamblanet:

    The attached patch will allow the Squid Cachemgr to be available.  As there is no view security in the cachemgr.cgi provided by Squid, I left it disabled by default and only copy it into the Web directory when enabled…

    Commited with some minor modifications.  Do a package reinstall to get the latest version.

    –Bill



  • I don't see any options for the cachemgr within the webGUI, and cachemgr.cgi is not in the www root.  Do I need to manually apply this patch?

    Scratch that.  I was just being stupid :)



  • OK.  I see the menu options in squid_ng.xml, but they are not appearing in the GUI.  Maybe I am just misunderstanding how the package/GUI system works.  Could someone give me pointers please?

    Thanks!


Locked