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

    Monitor Squid Status

    Scheduled Pinned Locked Moved Cache/Proxy
    36 Posts 14 Posters 102.1k 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.
    • W
      wagonza
      last edited by

      @dlawley:

      Sorry been a long week, must be missing something..

      Configured as shown but get a Cache Manager Error.

      connect: (60) Operation timed out

      Not sure which user/password combo its looking for.. but I might not be getting that far that user/pw make a difference

      ran the two CMDs as shown, set the following

      External Cache-Managers set to 192.168.5.1
      cachemgr.conf also set to 192.168.5.1

      You made it sound easy…

      You should be getting a web page thats says "Cache Manager Interface" and below it a drop down list with the IP address 192.168.5.1 in it.
      The username and password fields you can ignore and just click continue. It should still allow you in. The only difference is that some of the links will not be active for example 'Shut Down the Squid Process'. If you want this links set to active, then in General Settings->Custom options add:

      'cachemgr_passwd none all'

      and click save. You wont have to enter a password. To make it secure have a look at the cachemgr_passwd config option @ http://www.squid-cache.org/Doc/config/cachemgr_passwd/

      Follow me on twitter http://twitter.com/wagonza
      http://www.thepackethub.co.za

      1 Reply Last reply Reply Quote 0
      • D
        dlawley
        last edited by

        Thanks for the quick reply.

        I was all around that option reading the squidfaq…

        retraced my steps, and a reboot

        Still getting Cache Manager timeout...

        Running transparent maybe an issue??  I know it causes some limitations in other areas when you use it.

        Maybe proxy filter service is also having an effect?

        maybe I need to be hitting 127.0.0.1 instead.  ?? guess its easy enough to try..

        Do not edit manually !

        http_port 192.168.5.1:800
        http_port 127.0.0.1:80 transparent
        icp_port 0

        1 Reply Last reply Reply Quote 0
        • W
          wagonza
          last edited by

          @dlawley:

          Thanks for the quick reply.

          I was all around that option reading the squidfaq…

          retraced my steps, and a reboot

          Still getting Cache Manager timeout...

          Running transparent maybe an issue??  I know it causes some limitations in other areas when you use it.

          maybe I need to be hitting 127.0.0.1 instead.  ?? guess its easy enough to try..

          Do not edit manually !

          http_port 192.168.5.1:800
          http_port 127.0.0.1:80 transparent
          icp_port 0

          I see you have squid listening on the non default port of 800 - did you add 192.168.5.1:800 to the cachemgr.conf file? Not just 192.168.5.1 - otherwise cachemgr.cgi will try connect to 3128.

          Shouldn't make a difference whether the proxy is in transparent mode or not.

          Follow me on twitter http://twitter.com/wagonza
          http://www.thepackethub.co.za

          1 Reply Last reply Reply Quote 0
          • D
            dlawley
            last edited by

            That did it!, thanks!!

            1 Reply Last reply Reply Quote 0
            • D
              dlawley
              last edited by

              The proxy filter might impact your access to the cache mgr, if you have ip addresses blocked.  Which I did on my production server.

              But I'm all good now.

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

                i always use cachemgr to monitoring squid …
                ifen not understand much ...  ;D
                i keep this link on my email to help me remember how to it ...

                http://forum.pfsense.org/index.php?topic=14609.0

                1 Reply Last reply Reply Quote 0
                • B
                  Bai Shen
                  last edited by

                  So I have the cachemgr page working, but one thing concerns me.  On the Store Directory page, it says the following: Accepted object sizes: 0 - (unlimited) bytes

                  However, on the Cache Mgmt page, I have max object size set to 1024.  So why the difference?

                  1 Reply Last reply Reply Quote 0
                  • P
                    Pistolero
                    last edited by

                    No workie for me :(

                    I get this:

                    Cache Manager menu for x.x.x.x:

                    GIF89a

                    Generated Mon, 25 Oct 2010 06:32:27 GMT, by cachemgr.cgi/2.7.STABLE9@r

                    Any help would be appreciated. Thanks!

                    1 Reply Last reply Reply Quote 0
                    • W
                      wagonza
                      last edited by

                      @Pistolero:

                      No workie for me :(

                      I get this:

                      Cache Manager menu for x.x.x.x:

                      GIF89a

                      Generated Mon, 25 Oct 2010 06:32:27 GMT, by cachemgr.cgi/2.7.STABLE9@r

                      Any help would be appreciated. Thanks!

                      I am not sure what that reference to GIF89a is? But you should see a page with:

                      Cache server with drop down list of your pfSense's IP address.
                      Input for a Manager name
                      Input for a Password

                      and finally a "Continue" button which will take you to the stats page. What do you see when you click on this button?

                      Follow me on twitter http://twitter.com/wagonza
                      http://www.thepackethub.co.za

                      1 Reply Last reply Reply Quote 0
                      • P
                        Pistolero
                        last edited by

                        @wagonza:

                        @Pistolero:

                        No workie for me :(

                        I get this:

                        Cache Manager menu for x.x.x.x:

                        GIF89a

                        Generated Mon, 25 Oct 2010 06:32:27 GMT, by cachemgr.cgi/2.7.STABLE9@r

                        Any help would be appreciated. Thanks!

                        I am not sure what that reference to GIF89a is? But you should see a page with:

                        Cache server with drop down list of your pfSense's IP address.
                        Input for a Manager name
                        Input for a Password

                        and finally a "Continue" button which will take you to the stats page. What do you see when you click on this button?

                        I do see the drop-down list with the input fields. I get that weird screen after clicking continue. The weird page with the GIF89a I get only in Firefox. IE only displays

                        1 Reply Last reply Reply Quote 0
                        • W
                          wagonza
                          last edited by

                          Sounds like you dont have your cachemgr.conf file setup correctly and after clicking submit it is timing out.

                          Follow me on twitter http://twitter.com/wagonza
                          http://www.thepackethub.co.za

                          1 Reply Last reply Reply Quote 0
                          • U
                            udupagn
                            last edited by

                            Hi pl tel me
                            i Installed  pfsense

                            installed proxy server with mod security
                            '
                            squid  package
                            squidguard package  installed
                            tel me how to block unwanted or porn sites

                            pl reply
                            Ganesh

                            1 Reply Last reply Reply Quote 0
                            • W
                              wagonza
                              last edited by

                              Please dont hijack another thread but rather start a new one.

                              Have a look at http://doc.pfsense.org/index.php/SquidGuard_package for instructions.

                              Follow me on twitter http://twitter.com/wagonza
                              http://www.thepackethub.co.za

                              1 Reply Last reply Reply Quote 0
                              • H
                                Hugovsky
                                last edited by

                                Did the cachemgr.cgi trick. Working great with squid in transparent mode. Thank you!

                                1 Reply Last reply Reply Quote 0
                                • M
                                  mikesamo
                                  last edited by

                                  Mrtg work well too.

                                  http://oss.oetiker.ch/mrtg/

                                  ![MRTG Index Page.png](/public/imported_attachments/1/MRTG Index Page.png)
                                  ![MRTG Index Page.png_thumb](/public/imported_attachments/1/MRTG Index Page.png_thumb)

                                  1 Reply Last reply Reply Quote 0
                                  • P
                                    Pistolero
                                    last edited by

                                    I found what was breaking my cachemgr.cgi!

                                    I use SquidGuard to filter ads and other inappropriate sites, redirecting them to an internal web server with a single transparent pixel. I also disallow IP addresses in the address field, to keep users too-smart-for-their-own-good from bypassing the filter by using an IP. If you configure the cachemgr to connect to the proxy via IP, it will be blocked. Solved by connecting to localhost or the host name of the firewall.

                                    1 Reply Last reply Reply Quote 0
                                    • E
                                      ethermcman
                                      last edited by

                                      Hi guys!
                                      Sorry for bringing this topic out of its grave but I'm testing the new 2.0 RC1 and the cachemgr.cgi doesn't work anymore!
                                      At least, it does half work : I can reach the cachemgr.cgi page with login info but hitting the connection brings me to "Access denied"…
                                      Is this a squid.conf acl problem or maybe an Apache acl?
                                      Also, I'll try the mrtg trick but the graphs don't print anything...
                                      Any help will be appreciated!

                                      Thanks!

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

                                        What is your LAN IP address?

                                        For example my LAN IP address is: 192.168.3.1

                                        So, in cacehmgr.cgi I have the following:

                                        
                                        # This file controls which servers may be managed by
                                        # the cachemgr.cgi script
                                        #
                                        # The file consists of one server per line on the format
                                        #   hostname:port  description
                                        #
                                        # Specifying :port is optional. If not specified then
                                        # the default proxy port is assumed. :* or :any matches
                                        # any port on the target server.
                                        #
                                        # hostname is matched using shell filename matching, allowing
                                        # * and other shell wildcards.
                                        # localhost
                                        192.168.3.1
                                        
                                        

                                        Now, goto Services => Proxy Server, select the Access Control tab, scroll down to External Cache Managers and you should see some similar to this:

                                        
                                        192.168.3.1;127.0.0.1
                                        
                                        

                                        Ignore the 127.0.0.1, that's something else I've been playing with ;)

                                        Now to access cachemgr.cgi by following this link http://<your_pfsense_server>/cachemgr.cgi</your_pfsense_server>.

                                        ;)

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

                                          thanks …
                                          tutorials that you provide goes well
                                          even now I'm dizzy reading the information provided  ;D

                                          but I still have one question, how to give a password when accessing cachemgr ?

                                          thanks a lot

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