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

    Pfsense 2.3 - squid - cachemgr.cgi - browser only downloads the file

    Scheduled Pinned Locked Moved Cache/Proxy
    10 Posts 8 Posters 4.2k 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.
    • N
      Nachtfalke
      last edited by

      Hi,

      I am using pfsense 2.3 with squid in non-transparent mode. I configured pfsense/squid to access cachemgr.cgi but it does not work.

      When I try to access the cachemgr using my pfsense LAN IP http://192.168.10.1/cachemgr.cgi my browsers (Chrome, IE) let me only download the file but do not show it in the browser.

      When I try from CLI with the following command I can see the cachemgr Infos:

      
      squidclient -p 3128 -h 192.168.10.1 mgr:info
      
      

      What am I doing wrong?

      Regards

      1 Reply Last reply Reply Quote 1
      • M
        mfaridi
        last edited by

        @Nachtfalke:

        Hi,

        I am using pfsense 2.3 with squid in non-transparent mode. I configured pfsense/squid to access cachemgr.cgi but it does not work.

        When I try to access the cachemgr using my pfsense LAN IP http://192.168.10.1/cachemgr.cgi my browsers (Chrome, IE) let me only download the file but do not show it in the browser.

        When I try from CLI with the following command I can see the cachemgr Infos:

        
        squidclient -p 3128 -h 192.168.10.1 mgr:info
        
        

        What am I doing wrong?

        Regards

        I have this problem too with squid and pfsense 2.3

        1 Reply Last reply Reply Quote 1
        • B
          bnangle
          last edited by

          I had the same problem, it might not be the best solution but if you have lightsquid installed you can create the link in /usr/local/www/lightsquid/ and then just browse to https://pfsenseIP:7445/cachemgr.cgi or however you normally access lightsquid reports and replace index.cgi with cachemgr.cgi.

          I don't know much about nginx and I am not sure how to configure it to execute CGI files but i think that is the real root cause of why the file is downloaded instead of displayed.

          JonathanLeeJ 2 Replies Last reply Reply Quote 1
          • N
            Nachtfalke
            last edited by

            @bnangle

            Thank you for that tip.

            I can remember of something similar in the past but I can't remember enough. So your solution is working. Thank you very much!

            PS:
            You probably need the lightsquid report package to get this working, right?

            1 Reply Last reply Reply Quote 0
            • KOMK
              KOM
              last edited by

              I can't even get squidclient working in 2.3 whereas it works fine for me in 2.2.6.  I set External Cache Managers to 127.0.0.1; 10.10.5.1 and then run:

              squidclient -h 10.10.5.1 -p 3128 mgr:info

              and get this back:

              [2.3.1-RELEASE][admin@pftest.blah.local]/root: squidclient -h 10.10.5.1 -p 3128 mgr:info
              HTTP/1.1 403 Forbidden
              Server: nginx
              Date: Fri, 20 May 2016 19:01:40 GMT
              Content-Type: text/html; charset=UTF-8
              X-Cache: MISS from pfsense
              X-Cache-Lookup: MISS from pfsense:3128
              Connection: close
              
              ### Request denied by pfSense proxy: 403 Forbidden
              
               **Reason:** 
              
              * * *
              
               **Client address:** 10.10.5.1 
              
               **Client name:** pftest.blah.local 
              
               **Client group:** default 
              
               **Target group:** none 
              
               **URL:** cache_object://10.10.5.1/info 
              
              * * *
              
              
              1 Reply Last reply Reply Quote 0
              • J
                josekym
                last edited by

                Just updated a few PF boxes to 2.3u1 today and had the same problem as the OP.  Accessing cachemgr.cgi from CLI works as before, but from the usual web gui it only offers to download the cachemgr.cgi file.  bnangle's workaround got me my cachemgr.cgi access back… :)

                @bnangle:

                I had the same problem, it might not be the best solution but if you have lightsquid installed you can create the link in /usr/local/www/lightsquid/ and then just browse to https://pfsenseIP:7445/cachemgr.cgi or however you normally access lightsquid reports and replace index.cgi with cachemgr.cgi.

                I don't know much about nginx and I am not sure how to configure it to execute CGI files but i think that is the real root cause of why the file is downloaded instead of displayed.

                1 Reply Last reply Reply Quote 1
                • E
                  EOC2611P
                  last edited by

                  Do you guys happens to know any work around on how to install Squid of PFSense 2.3.1_1 ??? I can't find a way to do it, always crashes, do you have to install something else first, as the dependecies files listed below the package or what else??

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

                    use http://pfsenseip:3128/squid-internal-mgr/info

                    1 Reply Last reply Reply Quote 1
                    • JonathanLeeJ
                      JonathanLee @bnangle
                      last edited by

                      @bnangle thanks I am going to try this also.

                      Make sure to upvote

                      1 Reply Last reply Reply Quote 0
                      • JonathanLeeJ
                        JonathanLee @bnangle
                        last edited by

                        @bnangle thank you worked great!!

                        Make sure to upvote

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