Re: [squid-users] User got domain login dialog box prompt, when number of user more than 250++

2025-06-15 Thread wong23...@yahoo.com
 Hi Amos,

Thank for your replied. 

> FTR; the login prompt is not coming from Squid. The client Browser
> decides where to get credentials from - the popup is one source, current
> machine login another, there may be sources as well.

Our laptop is joined domain. I thought browser will use AD ticket TGT, (which I 
can view by klist)? not like this?

> Since you are SSL-Bump'ing traffic - whatever result the initial CONNECT
> request credentials were given when the TLS began will be used until
> that TLS connection closes.

I configure Bumping github website only, the rest of the traffic not decrypt.

> Secondly the auth helper "negative-ttl=900" (from config below) value
> will make Squid only check for different results on new connections
> started 900+ seconds after the first one was rejected.

squid-cache by default is one hour, so I think I configure 15 mins, which less 
compare to one hour, not sure whether correct or not.

> Do you still actually **need** NTLM ?
> It has been deprecated for 19 years already, and Windows software has
> progressively been removing the ability to use it.

Yes, we are using Kerberos, NTLM and basic are for those legacy application, I 
think.

> The Kerberos auth helper bundled with Squid delivers "group="
> annotations back to Squid that can be quickly checked instead of using
> extra helper lookups.

you mean i can use this helper: ext_kerberos_ldap_group_acl, am I right? I will 
try out, since ChatGPT also mention auth faster compare to ext_wbinfo_group_acl.

Question: Is this main problem?

> FYI, notice that Squid is automatically including all the config files
> in the directory /etc/squid/conf.d/

yes, it is just a easier manage for me.

I have go through your replied several times and I try to digest. 
My main problem here is that when user hit around 200++, user will prompt out 
proxy login dialog box ask user to login.

Is there anyway to find out issues? 

Thanks.

On Friday, June 13, 2025 at 06:09:49 PM GMT+8, Amos Jeffries 
 wrote:  
 
 On 13/06/25 20:08, wong237ma wrote:
> Hi,
> 
> I had successfully setup squid-openssl (6.10) in Ubuntu 24.04.02 LTS, 
> staging and production. I refer to this squid wiki: https://wiki.squid- 
> cache.org/ConfigExamples/Authenticate/WindowsActiveDirectory. I had 
> setup Squid-cache authenticate against Activi Directory via kerberos. 
> For proxy user access to staging, windows users (joined AD) no issue on 
> authentication. I test users authenticate seemlessly without any prompt.
> 
> Our office user around 600. when I turn on production proxy. At morning 
> 9am, when user number hit around 100, no issue raise. when user number 
> hit around 250++, windows users, the browser start to prompt user login,

FTR; the login prompt is not coming from Squid. The client Browser 
decides where to get credentials from - the popup is one source, current 
machine login another, there may be sources as well.

Most often in situations like this, the ActiveDirectory or network 
cannot cope with the number of concurrent credential verification Squid 
is needing to perform.

Alternatively it may just be the clients Browser(s) deciding that login 
has failed and giving up before authentication completes - when the high 
load makes verification slow.


> even domain credential are correct, but seem not work, after that user 
> cannot surf any website.

There will be a timeouts controlling this.

Since you are SSL-Bump'ing traffic - whatever result the initial CONNECT 
request credentials were given when the TLS began will be used until 
that TLS connection closes.

Secondly the auth helper "negative-ttl=900" (from config below) value 
will make Squid only check for different results on new connections 
started 900+ seconds after the first one was rejected.



> 
> How to troubleshoot this issue?
> 
> I use squidclient to monitor external_acl, negotiateauthenticator, 
> ntlmauthenticator, basicauthenticator, so far no requests timedout.
> 
> I also monitor cache.log with filtering "FATAL:|WARNING:| 
> squidaio_queue_request:|SECURITY ALERT:" didn't find any specifc error.
> 

You are unlikely to find anything in the Squid logs. Unless one of the 
auth helpers is having issues with its access to your ActiveDirectory 
server.


> Can help to identify, wonder user still got domain login prompt from, 
> e.g. internet browser, like chrome, edge or firefox, outlook and 
> microsoft teams, etc.
> 
> Appciate any help.
> 
> Thanks.
> 
> attach my squid.conf:
> ===
> ## negotiate kerberos and ntlm authentication
> auth_param negotiate program /usr/lib/squid/negotiate_wrapper_auth -d -- 
> ntlm /usr/bin/ntlm_auth --diagnostics --helper-protocol=squid-2.5- 
> ntlmssp --domain=MYCOMPANY --kerberos /usr/lib/squid/ 
> negotiate_kerberos_auth -d -s GSS_C_NO_NAME
> auth_param negotiate children 3000 startup=500 idle=200
> auth_param negotiate keep_alive on
> authenticate_ttl 15 minutes
> 
> ## pure ntlm authentication
>

Re: [squid-users] User got domain login dialog box prompt, when number of user more than 250++

2025-06-17 Thread wong23...@yahoo.com
 Hi Amos,
can help to give configure example for external helper 
ext_kerberos_ldap_group_acl, since this help is faster compare to 
ext_wbinfo_group_acl.
Thank you.
On Tuesday, June 17, 2025 at 03:41:58 AM GMT+8, Amos Jeffries 
 wrote:  
 
 On 16/06/25 16:25, wong237ma wrote:
> Hi Amos,
> 
> Thank for your replied.
> 
>  > FTR; the login prompt is not coming from Squid. The client Browser
>  > decides where to get credentials from - the popup is one source, current
>  > machine login another, there may be sources as well.
> 
> Our laptop is joined domain. I thought browser will use AD ticket TGT, 
> (which I can view by klist)? not like this?
> 
>  > Since you are SSL-Bump'ing traffic - whatever result the initial CONNECT
>  > request credentials were given when the TLS began will be used until
>  > that TLS connection closes.
> 
> I configure Bumping github website only, the rest of the traffic not 
> decrypt.
> 
>  > Secondly the auth helper "negative-ttl=900" (from config below) value
>  > will make Squid only check for different results on new connections
>  > started 900+ seconds after the first one was rejected.
> 
> squid-cache by default is one hour, so I think I configure 15 mins, 
> which less compare to one hour, not sure whether correct or not.
> 
>  > Do you still actually **need** NTLM ?
>  > It has been deprecated for 19 years already, and Windows software has
>  > progressively been removing the ability to use it.
> 
> Yes, we are using Kerberos, NTLM and basic are for those legacy 
> application, I think.

Nod. Just pointing out that its something to check if actually needed. 
Removal will help avoid problems - if possible.


> 
>  > The Kerberos auth helper bundled with Squid delivers "group="
>  > annotations back to Squid that can be quickly checked instead of using
>  > extra helper lookups.
> 
> you mean i can use this helper: ext_kerberos_ldap_group_acl, am I right? 

No, I literally mean the auth_param helper (negotiate_kerberos_auth) is 
producing "group=" values that can be checked with 'note' type ACL 
instead of 'external' type ACL .

That will halve the amount of helpers running, reduce Squid memory needs 
by whatever those helpers were using, halve the load on ActiveDirectory, 
and halve the transaction time for access to the proxy.
IF any of those things were contributing to your problem (likely) then 
you should see the problem move from 200-ish up to something higher.


> I will try out, since ChatGPT also mention auth faster compare to 
> ext_wbinfo_group_acl.
> 
> Question: Is this main problem?
> 
>  > FYI, notice that Squid is automatically including all the config files
>  > in the directory /etc/squid/conf.d/
> 
> yes, it is just a easier manage for me.
> 
> I have go through your replied several times and I try to digest.
> My main problem here is that when user hit around 200++, user will 
> prompt out proxy login dialog box ask user to login.
> 
> Is there anyway to find out issues?


You mentioned nothing occuring in the Squid logs. So that easy way is 
closed.

The alternative is to watch;

  a) how much memory is being used by Squid and helpers to see if the 
problem is running out of resources,

  b) traffic to find out what types of credentials are being sent to 
Squid and not being accepted (rejection may be the trigger for dialog 
boxes),

  c) check logs on your ActiveDirectory for similar things and also to 
see if there is a limit being reached there.


HTH
Amos

___
squid-users mailing list
squid-users@lists.squid-cache.org
https://lists.squid-cache.org/listinfo/squid-users
  ___
squid-users mailing list
squid-users@lists.squid-cache.org
https://lists.squid-cache.org/listinfo/squid-users


[squid-users] User got domain login dialog box prompt, when number of user more than 250++

2025-06-13 Thread wong23...@yahoo.com
Hi,

I had successfully setup squid-openssl (6.10) in Ubuntu 24.04.02 LTS, staging 
and production. I refer to this squid wiki: 
https://wiki.squid-cache.org/ConfigExamples/Authenticate/WindowsActiveDirectory.
 I had setup Squid-cache authenticate against Activi Directory via kerberos. 
For proxy user access to staging, windows users (joined AD) no issue on 
authentication. I test users authenticate seemlessly without any prompt.

Our office user around 600. when I turn on production proxy. At morning 9am, 
when user number hit around 100, no issue raise. when user number hit around 
250++, windows users, the browser start to prompt user login, even domain 
credential are correct, but seem not work, after that user cannot surf any 
website.

How to troubleshoot this issue?

I use squidclient to monitor external_acl, negotiateauthenticator, 
ntlmauthenticator, basicauthenticator, so far no requests timedout.

I also monitor cache.log with filtering 
"FATAL:|WARNING:|squidaio_queue_request:|SECURITY ALERT:" didn't find any 
specifc error.

Can help to identify, wonder user still got domain login prompt from, e.g. 
internet browser, like chrome, edge or firefox, outlook and microsoft teams, 
etc.

Appciate any help.

Thanks.

attach my squid.conf:
===
## negotiate kerberos and ntlm authentication
auth_param negotiate program /usr/lib/squid/negotiate_wrapper_auth -d --ntlm 
/usr/bin/ntlm_auth --diagnostics --helper-protocol=squid-2.5-ntlmssp 
--domain=MYCOMPANY --kerberos /usr/lib/squid/negotiate_kerberos_auth -d -s 
GSS_C_NO_NAME
auth_param negotiate children 3000 startup=500 idle=200
auth_param negotiate keep_alive on
authenticate_ttl 15 minutes

## pure ntlm authentication
auth_param ntlm program /usr/bin/ntlm_auth --diagnostics 
--helper-protocol=squid-2.5-ntlmssp --domain=MYCOMPANY
auth_param ntlm children 500 startup=50 idle=10
auth_param ntlm keep_alive off

### provide basic authentication via ldap for clients not authenticated via 
kerberos/ntlm
auth_param basic program /usr/lib/squid/basic_ldap_auth -R -b 
"dc=mycompany,dc=com" -D squidproxyu...@mycompany.com -W 
/etc/squid/ldappass.txt -f sAMAccountName=%s -h mycompanydc.mycompany.com
auth_param basic children 500 startup=50 idle=10
auth_param basic realm Internet Proxy
auth_param basic credentialsttl 1 minute

#external_acl_type hebadgroup %LOGIN /usr/lib/squid/ext_wbinfo_group_acl
external_acl_type hebadgroup children-max=1000  children-startup=50 
children-idle=10 ttl=900 negative_ttl=900 %LOGIN 
/usr/lib/squid/ext_wbinfo_group_acl

http_port 3128 ssl-bump generate-host-certificates=on 
dynamic_cert_mem_cache_size=20MB tls-cert=/etc/squid/cert/squid.crt 
tls-key=/etc/squid/cert/ca.key
sslcrtd_program /usr/lib/squid/security_file_certgen -s /var/lib/squid/ssl_db 
-M 20MB
sslcrtd_children 50

acl localnet src 0.0.0.1-0.255.255.255  # RFC 1122 "this" network (LAN)
acl localnet src 10.0.0.0/8             # RFC 1918 local private network (LAN)
acl localnet src 100.64.0.0/10          # RFC 6598 shared address space (CGN)
acl localnet src 169.254.0.0/16         # RFC 3927 link-local (directly 
plugged) machines
acl localnet src 172.16.0.0/12          # RFC 1918 local private network (LAN)
acl localnet src 192.168.0.0/16         # RFC 1918 local private network (LAN)
acl localnet src fc00::/7               # RFC 4193 local private network range
acl localnet src fe80::/10              # RFC 4291 link-local (directly 
plugged) machines

acl SSL_ports port 443
acl Safe_ports port 80          # http
acl Safe_ports port 21          # ftp
acl Safe_ports port 443         # https
acl Safe_ports port 70          # gopher
acl Safe_ports port 210         # wais
acl Safe_ports port 1025-65535  # unregistered ports
acl Safe_ports port 280         # http-mgmt
acl Safe_ports port 488         # gss-http
acl Safe_ports port 591         # filemaker
acl Safe_ports port 777         # multiling http

acl direct_access dstdomain openshiftapps.com
cache deny direct_access

acl urlwhatsapp dstdomain .whatsapp.com
acl grpwhatsapp external adgroup sq_whatsapp
acl grpgithub external adgroup SSLVPN-GitHub-CoPilot


# Enable Proxy Authentication
acl aduser proxy_auth REQUIRED

# Domains for SSL Bump
acl url_sslbump dstdomain .github.com

# Define SSL Bump steps
acl step1 at_step SslBump1
acl step2 at_step SslBump2
acl step3 at_step SslBump3

# SSL Bump rules for specific traffic
ssl_bump peek step1 all
ssl_bump bump step2 url_sslbump
ssl_bump splice all                     # Splice (do not bump) all other traffic
sslproxy_cert_error allow url_sslbump


#http_access deny !Safe_ports
#http_access deny CONNECT !SSL_ports
http_access allow localhost manager
http_access deny manager
http_access allow localhost
http_access deny to_localhost
http_access deny to_linklocal
include /etc/squid/conf.d/*.conf

# Access control for GitHub Copilot Group
include /etc/squid/github.conf

http_access allow urlwhatsapp grpwhatsapp
http_access deny urlwhatsapp

http_a

Re: [squid-users] User got domain login dialog box prompt, when number of user more than 250++

2025-07-17 Thread wong23...@yahoo.com
 Hi All,
To who are familiar or experts in squid-cache, Please contact me, I need help 
to advise on Active Directory Authentication.
Thanks.
On Thursday, June 19, 2025 at 10:22:45 PM GMT+8, Amos Jeffries 
 wrote:  
 
 On 17/06/25 22:21, wong237ma wrote:
> Hi Amos,
> 
> can help to give configure example for external helper 
> ext_kerberos_ldap_group_acl, since this help is faster compare to 
> ext_wbinfo_group_acl.
> 

Sorry I'm not that familiar with those particular helpers.
Others here may be able to help, or online manuals for them.

Cheers
Amos

___
squid-users mailing list
squid-users@lists.squid-cache.org
https://lists.squid-cache.org/listinfo/squid-users
  ___
squid-users mailing list
squid-users@lists.squid-cache.org
https://lists.squid-cache.org/listinfo/squid-users