[squid-users] squidclient -h 127.0.0.1 -p 3128 mgr:info shows access denined
Alex Rousskov
rousskov at measurement-factory.com
Wed Jul 10 18:08:28 UTC 2024
On 2024-07-10 12:55, Jonathan Lee wrote:
>> Embedding a password in a cache manager command requires providing a
>> username with -U
> squidclient -w /squid-internal-mgr/info -u admin
> squidclient -w /squid-internal-mgr/info at redacted -u admin
> squidclient -w http://192.168.1.1:3128/squid-internal-mgr/info@redacted
> -u admin
> squidclient -w http://127.0.0.1:3128/squid-internal-mgr/info@redacted -u
> admin
> squidclient -w http://127.0.0.1:3128/squid-internal-mgr/info
> squidclient http://127.0.0.1:3128/squid-internal-mgr/info
> squidclient -h 127.0.0.1:3128/squid-internal-mgr/info
> squidclient -h 127.0.0.1 /squid-internal-mgr/info
> squidclient -h 127.0.0.1 /squid-internal-mgr/info at redcated
> squidclient -w 127.0.0.1 /squid-internal-mgr/info at redacted
> squidclient -w 127.0.0.1 /squid-internal-mgr/info at redcated -u admin
> squidclient -h 192.168.1.1:3128 /squid-internal-mgr/info at redacted
> squidclient -h 192.168.1.1 /squid-internal-mgr/info at redacted
> squidclient -h 192.168.1.1 /squid-internal-mgr/info
>
> with -w -u -h http spaces I can’t get it to show me stats
>
> Squid 6.6
I do not know whether this mistake is relevant, but squidclient
documentation and error message imply that you should be using "-U"
(capital letter U) while you are using "-u" (small letter u).
FWIW, I recommend using curl instead of deprecated squidclient. If
nothing else, you would be dealing with a well-known tool with extensive
documentation and wide-spread knowledge that will continue to work when
you upgrade to Squid v7. Using curl is not going to solve Squid Bug 5283
and similar Squid-specific problems[1], but it may reduce the number of
"external" problems you have to deal with (e.g., guessing what
squidclient command line options actually do).
[1]: https://bugs.squid-cache.org/show_bug.cgi?id=5283
HTH,
Alex.
More information about the squid-users
mailing list