Pfsense 2.3 - squid - cachemgr.cgi - browser only downloads the file
-
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
-
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
-
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.
-
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? -
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 * * *
-
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… :)
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.
-
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??
-
use http://pfsenseip:3128/squid-internal-mgr/info
-
@bnangle thanks I am going to try this also.
-
@bnangle thank you worked great!!