[squid-users] Disable authentication for squidclient

Amos Jeffries squid3 at treenet.co.nz
Tue Jul 28 12:36:39 UTC 2020


On 28/07/20 11:30 pm, Sankar S wrote:
> Hi All,
>  
>                I have been running a squid proxy 4.9 compiled version
> for my users externally domain accessibility with authentication
> enabled. now I want to check my proxy stats via squidclient cache
> manager.  when I tried to run this command in my proxy server it throws
> 407 authentication required error.  Is it possible to disable
> authentication for this operation alone 
> 

The default configuration for Squid is to allow this and other manager
tools requests.

It seems you have explicitly removed that ability and/or forced
authentication to happen before checking management access. All you need
to do is fix that in squid.conf.


> 
> ~/squid_4.9/bin>./squidclient -p 8080 mgr:info
> HTTP/1.1 407 Proxy Authentication Required
> Server: squid/4.9
> Mime-Version: 1.0
> Date: Tue, 28 Jul 2020 07:28:47 GMT
> Content-Type: text/html;charset=utf-8
> Content-Length: 1661
> X-Squid-Error: ERR_CACHE_ACCESS_DENIED 0
> Proxy-Authenticate: Basic realm="Squid proxy-caching web server"
> X-Cache: MISS from x.x.x.x
> Via: 1.1 172.20.24.39 (squid/4.9)
> Connection: close
> 
> When I send a connection with authentication, it throws 400 bad request 
> 
> squid_4.9/bin>./squidclient -p 8080 mgr:info -u zorro

All parameters are supposed to be before the URL (mgr:info). squidclient
works fine for me with authentication.

Amos


More information about the squid-users mailing list