Squid Cachemgr (500 - Internal Server Error)
-
I have done the following
from diagnostics -> command ran the below commands
cd /usr/local/www && ln -s /usr/local/libexec/squid/cachemgr.cgi
cd /usr/local/etc/squid && cp cachemgr.conf.default cachemgr.confand
edit the /usr/local/libexec/squid/cachemgr.cgi to below code
# 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. 192.168.10.254
and finally added 192.168.10.254 in Proxy Server -> Access Control -> External Manager
saved everything. restarted squid from services. also tried restarting pfsense.
Still getting same error when i try to access
http://192.168.10.254/cachemgr.cgi
500 - Internal Server Error
My squid is ruuning in transparent mode. did I miss something?
-
take a look on /var/squid/logs/cache.log for errors.
-
Attached below is the log. I don't see any error's unless i missed something
2012/07/21 15:11:40| Adding domain localdomain from /etc/resolv.conf 2012/07/21 15:11:40| Adding nameserver 127.0.0.1 from /etc/resolv.conf 2012/07/21 15:11:40| Adding nameserver 192.168.0.254 from /etc/resolv.conf 2012/07/21 15:11:40| Adding nameserver 192.168.2.254 from /etc/resolv.conf 2012/07/21 15:11:40| Adding nameserver 208.67.222.222 from /etc/resolv.conf 2012/07/21 15:11:40| Adding nameserver 208.67.220.220 from /etc/resolv.conf 2012/07/21 15:11:40| Accepting proxy HTTP connections at 192.168.10.254, port 3128, FD 15. 2012/07/21 15:11:40| Accepting transparently proxied HTTP connections at 127.0.0.1, port 3128, FD 18. 2012/07/21 15:11:40| Accepting HTCP messages on port 4827, FD 19. 2012/07/21 15:11:40| Accepting SNMP messages on port 3401, FD 20. 2012/07/21 15:11:40| WCCP Disabled. 2012/07/21 15:11:40| Configuring havp Parent havp/3125/0 2012/07/21 15:11:40| Loaded Icons. 2012/07/21 15:11:40| Ready to serve requests. 2012/07/21 15:11:40| Reconfiguring Squid Cache (version 2.7.STABLE9)... 2012/07/21 15:11:40| FD 15 Closing HTTP connection 2012/07/21 15:11:40| FD 18 Closing HTTP connection 2012/07/21 15:11:40| FD 19 Closing HTCP socket 2012/07/21 15:11:40| FD 20 Closing SNMP socket 2012/07/21 15:11:40| logfileClose: closing log /var/squid/logs/access.log 2012/07/21 15:11:40| Including Configuration File: /usr/local/etc/squid/squid.conf (depth 0) 2012/07/21 15:11:40| Cache dir '/var/squid/cache' size remains unchanged at 10240000 KB 2012/07/21 15:11:40| squid.conf line 82: refresh_pattern ([^.]+.|)avast.com/.*\.(vpu|vpaa) 4320 100% 43200 reload-into-ims 2012/07/21 15:11:40| parse_refreshpattern: Invalid regular expression '([^.]+.|)avast.com/.*\.(vpu|vpaa)': empty (sub)expression 2012/07/21 15:11:40| squid.conf line 83: refresh_pattern ([^.]+.|)spywareblaster.net/.*\.(dtb) 4320 100% 64800 reload-into-ims 2012/07/21 15:11:40| parse_refreshpattern: Invalid regular expression '([^.]+.|)spywareblaster.net/.*\.(dtb)': empty (sub)expression 2012/07/21 15:11:40| Initialising SSL. 2012/07/21 15:11:40| logfileOpen: opening log /var/squid/logs/access.log 2012/07/21 15:11:40| Store logging disabled 2012/07/21 15:11:40| Referer logging is disabled. 2012/07/21 15:11:40| DNS Socket created at 0.0.0.0, port 63432, FD 13 2012/07/21 15:11:40| Adding domain localdomain from /etc/resolv.conf 2012/07/21 15:11:40| Adding nameserver 127.0.0.1 from /etc/resolv.conf 2012/07/21 15:11:40| Adding nameserver 192.168.0.254 from /etc/resolv.conf 2012/07/21 15:11:40| Adding nameserver 192.168.2.254 from /etc/resolv.conf 2012/07/21 15:11:40| Adding nameserver 208.67.222.222 from /etc/resolv.conf 2012/07/21 15:11:40| Adding nameserver 208.67.220.220 from /etc/resolv.conf 2012/07/21 15:11:40| Accepting proxy HTTP connections at 192.168.10.254, port 3128, FD 15. 2012/07/21 15:11:40| Accepting transparently proxied HTTP connections at 127.0.0.1, port 3128, FD 18. 2012/07/21 15:11:40| Accepting HTCP messages on port 4827, FD 19. 2012/07/21 15:11:40| Accepting SNMP messages on port 3401, FD 20. 2012/07/21 15:11:40| WCCP Disabled. 2012/07/21 15:11:40| Configuring havp Parent havp/3125/0 2012/07/21 15:11:40| Loaded Icons. 2012/07/21 15:11:40| Ready to serve requests. 2012/07/21 15:11:40| Reconfiguring Squid Cache (version 2.7.STABLE9)... 2012/07/21 15:11:40| FD 15 Closing HTTP connection 2012/07/21 15:11:40| FD 18 Closing HTTP connection 2012/07/21 15:11:40| FD 19 Closing HTCP socket 2012/07/21 15:11:40| FD 20 Closing SNMP socket 2012/07/21 15:11:40| logfileClose: closing log /var/squid/logs/access.log 2012/07/21 15:11:40| Including Configuration File: /usr/local/etc/squid/squid.conf (depth 0) 2012/07/21 15:11:40| Cache dir '/var/squid/cache' size remains unchanged at 10240000 KB 2012/07/21 15:11:40| squid.conf line 82: refresh_pattern ([^.]+.|)avast.com/.*\.(vpu|vpaa) 4320 100% 43200 reload-into-ims 2012/07/21 15:11:40| parse_refreshpattern: Invalid regular expression '([^.]+.|)avast.com/.*\.(vpu|vpaa)': empty (sub)expression 2012/07/21 15:11:40| squid.conf line 83: refresh_pattern ([^.]+.|)spywareblaster.net/.*\.(dtb) 4320 100% 64800 reload-into-ims 2012/07/21 15:11:40| parse_refreshpattern: Invalid regular expression '([^.]+.|)spywareblaster.net/.*\.(dtb)': empty (sub)expression 2012/07/21 15:11:40| Initialising SSL. 2012/07/21 15:11:40| logfileOpen: opening log /var/squid/logs/access.log 2012/07/21 15:11:40| Store logging disabled 2012/07/21 15:11:40| Referer logging is disabled. 2012/07/21 15:11:40| DNS Socket created at 0.0.0.0, port 30117, FD 13 2012/07/21 15:11:40| Adding domain localdomain from /etc/resolv.conf 2012/07/21 15:11:40| Adding nameserver 127.0.0.1 from /etc/resolv.conf 2012/07/21 15:11:40| Adding nameserver 192.168.0.254 from /etc/resolv.conf 2012/07/21 15:11:40| Adding nameserver 192.168.2.254 from /etc/resolv.conf 2012/07/21 15:11:40| Adding nameserver 208.67.222.222 from /etc/resolv.conf 2012/07/21 15:11:40| Adding nameserver 208.67.220.220 from /etc/resolv.conf 2012/07/21 15:11:40| Accepting proxy HTTP connections at 192.168.10.254, port 3128, FD 15. 2012/07/21 15:11:40| Accepting transparently proxied HTTP connections at 127.0.0.1, port 3128, FD 18. 2012/07/21 15:11:40| Accepting HTCP messages on port 4827, FD 19. 2012/07/21 15:11:40| Accepting SNMP messages on port 3401, FD 20. 2012/07/21 15:11:40| WCCP Disabled. 2012/07/21 15:11:40| Configuring havp Parent havp/3125/0 2012/07/21 15:11:40| Loaded Icons. 2012/07/21 15:11:40| Ready to serve requests. 2012/07/21 15:11:40| Reconfiguring Squid Cache (version 2.7.STABLE9)... 2012/07/21 15:11:40| FD 15 Closing HTTP connection 2012/07/21 15:11:40| FD 18 Closing HTTP connection 2012/07/21 15:11:40| FD 19 Closing HTCP socket 2012/07/21 15:11:40| FD 20 Closing SNMP socket 2012/07/21 15:11:40| logfileClose: closing log /var/squid/logs/access.log 2012/07/21 15:11:40| Including Configuration File: /usr/local/etc/squid/squid.conf (depth 0) 2012/07/21 15:11:40| Cache dir '/var/squid/cache' size remains unchanged at 10240000 KB 2012/07/21 15:11:40| squid.conf line 82: refresh_pattern ([^.]+.|)avast.com/.*\.(vpu|vpaa) 4320 100% 43200 reload-into-ims 2012/07/21 15:11:40| parse_refreshpattern: Invalid regular expression '([^.]+.|)avast.com/.*\.(vpu|vpaa)': empty (sub)expression 2012/07/21 15:11:40| squid.conf line 83: refresh_pattern ([^.]+.|)spywareblaster.net/.*\.(dtb) 4320 100% 64800 reload-into-ims 2012/07/21 15:11:40| parse_refreshpattern: Invalid regular expression '([^.]+.|)spywareblaster.net/.*\.(dtb)': empty (sub)expression 2012/07/21 15:11:40| Initialising SSL. 2012/07/21 15:11:40| logfileOpen: opening log /var/squid/logs/access.log 2012/07/21 15:11:40| Store logging disabled 2012/07/21 15:11:40| Referer logging is disabled. 2012/07/21 15:11:40| DNS Socket created at 0.0.0.0, port 64180, FD 13 2012/07/21 15:11:40| Adding domain localdomain from /etc/resolv.conf 2012/07/21 15:11:40| Adding nameserver 127.0.0.1 from /etc/resolv.conf 2012/07/21 15:11:40| Adding nameserver 192.168.0.254 from /etc/resolv.conf 2012/07/21 15:11:40| Adding nameserver 192.168.2.254 from /etc/resolv.conf 2012/07/21 15:11:40| Adding nameserver 208.67.222.222 from /etc/resolv.conf 2012/07/21 15:11:40| Adding nameserver 208.67.220.220 from /etc/resolv.conf 2012/07/21 15:11:40| Accepting proxy HTTP connections at 192.168.10.254, port 3128, FD 15. 2012/07/21 15:11:40| Accepting transparently proxied HTTP connections at 127.0.0.1, port 3128, FD 18. 2012/07/21 15:11:40| Accepting HTCP messages on port 4827, FD 19. 2012/07/21 15:11:40| Accepting SNMP messages on port 3401, FD 20. 2012/07/21 15:11:40| WCCP Disabled. 2012/07/21 15:11:40| Configuring havp Parent havp/3125/0 2012/07/21 15:11:40| Loaded Icons. 2012/07/21 15:11:40| Ready to serve requests. 2012/07/21 15:11:40| Preparing for shutdown after 627 requests 2012/07/21 15:11:40| Waiting 3 seconds for active connections to finish 2012/07/21 15:11:40| FD 15 Closing HTTP connection 2012/07/21 15:11:40| FD 18 Closing HTTP connection 2012/07/21 15:11:43| Reconfiguring Squid Cache (version 2.7.STABLE9)... 2012/07/21 15:11:43| FD 19 Closing HTCP socket 2012/07/21 15:11:43| FD 20 Closing SNMP socket 2012/07/21 15:11:43| logfileClose: closing log /var/squid/logs/access.log 2012/07/21 15:11:43| Including Configuration File: /usr/local/etc/squid/squid.conf (depth 0) 2012/07/21 15:11:43| Cache dir '/var/squid/cache' size remains unchanged at 10240000 KB 2012/07/21 15:11:43| squid.conf line 82: refresh_pattern ([^.]+.|)avast.com/.*\.(vpu|vpaa) 4320 100% 43200 reload-into-ims 2012/07/21 15:11:43| parse_refreshpattern: Invalid regular expression '([^.]+.|)avast.com/.*\.(vpu|vpaa)': empty (sub)expression 2012/07/21 15:11:43| squid.conf line 83: refresh_pattern ([^.]+.|)spywareblaster.net/.*\.(dtb) 4320 100% 64800 reload-into-ims 2012/07/21 15:11:43| parse_refreshpattern: Invalid regular expression '([^.]+.|)spywareblaster.net/.*\.(dtb)': empty (sub)expression 2012/07/21 15:11:43| Initialising SSL. 2012/07/21 15:11:43| logfileOpen: opening log /var/squid/logs/access.log 2012/07/21 15:11:43| Store logging disabled 2012/07/21 15:11:43| Referer logging is disabled. 2012/07/21 15:11:43| DNS Socket created at 0.0.0.0, port 40718, FD 13 2012/07/21 15:11:43| Adding domain localdomain from /etc/resolv.conf 2012/07/21 15:11:43| Adding nameserver 127.0.0.1 from /etc/resolv.conf 2012/07/21 15:11:43| Adding nameserver 192.168.0.254 from /etc/resolv.conf 2012/07/21 15:11:43| Adding nameserver 192.168.2.254 from /etc/resolv.conf 2012/07/21 15:11:43| Adding nameserver 208.67.222.222 from /etc/resolv.conf 2012/07/21 15:11:43| Adding nameserver 208.67.220.220 from /etc/resolv.conf 2012/07/21 15:11:43| Accepting proxy HTTP connections at 192.168.10.254, port 3128, FD 15. 2012/07/21 15:11:43| Accepting transparently proxied HTTP connections at 127.0.0.1, port 3128, FD 16. 2012/07/21 15:11:43| Accepting HTCP messages on port 4827, FD 18. 2012/07/21 15:11:43| Accepting SNMP messages on port 3401, FD 19. 2012/07/21 15:11:43| WCCP Disabled. 2012/07/21 15:11:43| Configuring havp Parent havp/3125/0 2012/07/21 15:11:43| Loaded Icons. 2012/07/21 15:11:43| Ready to serve requests. 2012/07/21 15:11:44| Shutting down... 2012/07/21 15:11:44| FD 18 Closing HTCP socket 2012/07/21 15:11:44| FD 19 Closing SNMP socket 2012/07/21 15:11:44| Closing unlinkd pipe on FD 17 2012/07/21 15:11:44| storeDirWriteCleanLogs: Starting... 2012/07/21 15:11:44| Finished. Wrote 915 entries. 2012/07/21 15:11:44| Took 0.0 seconds (266065.7 entries/sec). CPU Usage: 39.768 seconds = 0.393 user + 39.375 sys Maximum Resident Size: 10420 KB Page faults with physical i/o: 0 2012/07/21 15:11:44| logfileClose: closing log /var/squid/logs/access.log 2012/07/21 15:11:44| Squid Cache (Version 2.7.STABLE9): Exiting normally. 2012/07/21 15:11:49| Starting Squid Cache version 2.7.STABLE9 for amd64-portbld-freebsd8.1... 2012/07/21 15:11:49| Process ID 29553 2012/07/21 15:11:49| With 8388 file descriptors available 2012/07/21 15:11:49| Using kqueue for the IO loop 2012/07/21 15:11:49| DNS Socket created at 0.0.0.0, port 52396, FD 12 2012/07/21 15:11:49| Adding domain localdomain from /etc/resolv.conf 2012/07/21 15:11:49| Adding nameserver 127.0.0.1 from /etc/resolv.conf 2012/07/21 15:11:49| Adding nameserver 192.168.0.254 from /etc/resolv.conf 2012/07/21 15:11:49| Adding nameserver 192.168.2.254 from /etc/resolv.conf 2012/07/21 15:11:49| Adding nameserver 208.67.222.222 from /etc/resolv.conf 2012/07/21 15:11:49| Adding nameserver 208.67.220.220 from /etc/resolv.conf 2012/07/21 15:11:49| Referer logging is disabled. 2012/07/21 15:11:49| logfileOpen: opening log /var/squid/logs/access.log 2012/07/21 15:11:49| Unlinkd pipe opened on FD 17 2012/07/21 15:11:49| Swap maxSize 10240000 + 65536 KB, estimated 792733 objects 2012/07/21 15:11:49| Target number of buckets: 39636 2012/07/21 15:11:49| Using 65536 Store buckets 2012/07/21 15:11:49| Max Mem size: 65536 KB 2012/07/21 15:11:49| Max Swap size: 10240000 KB 2012/07/21 15:11:49| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec 2012/07/21 15:11:49| Store logging disabled 2012/07/21 15:11:49| Rebuilding storage in /var/squid/cache (CLEAN) 2012/07/21 15:11:49| Using Least Load store dir selection 2012/07/21 15:11:49| Current Directory is /etc 2012/07/21 15:11:49| Loaded Icons. 2012/07/21 15:11:50| Accepting proxy HTTP connections at 192.168.10.254, port 3128, FD 18. 2012/07/21 15:11:50| Accepting transparently proxied HTTP connections at 127.0.0.1, port 3128, FD 19. 2012/07/21 15:11:50| Accepting HTCP messages on port 4827, FD 20. 2012/07/21 15:11:50| Accepting SNMP messages on port 3401, FD 21. 2012/07/21 15:11:50| WCCP Disabled. 2012/07/21 15:11:50| Configuring havp Parent havp/3125/0 2012/07/21 15:11:50| Ready to serve requests. 2012/07/21 15:11:50| Done reading /var/squid/cache swaplog (915 entries) 2012/07/21 15:11:50| Finished rebuilding storage from disk. 2012/07/21 15:11:50| 915 Entries scanned 2012/07/21 15:11:50| 0 Invalid entries. 2012/07/21 15:11:50| 0 With invalid flags. 2012/07/21 15:11:50| 915 Objects loaded. 2012/07/21 15:11:50| 0 Objects expired. 2012/07/21 15:11:50| 0 Objects cancelled. 2012/07/21 15:11:50| 0 Duplicate URLs purged. 2012/07/21 15:11:50| 0 Swapfile clashes avoided. 2012/07/21 15:11:50| Took 0.3 seconds (3391.3 objects/sec). 2012/07/21 15:11:50| Beginning Validation Procedure 2012/07/21 15:11:50| Completed Validation Procedure 2012/07/21 15:11:50| Validated 915 Entries 2012/07/21 15:11:50| store_swap_size = 9070k 2012/07/21 15:11:50| storeLateRelease: released 0 objects