On 2024-10-24 15:53, Piana, Josh wrote:
Hey Squid users,
Running into an issue I’m trying to figure out.
We have a few acl directives using “proxy_auth_regex –i” and when I have
these active, it blocks any proxy connection with an HTTP 407 error,
according to the logs.
Here’s an example:
# block certain user IDs from using proxy server
#acl block_user proxy_auth_regex -i "/etc/squid/block_user"
#http_access deny block_user
What’s supposed to happen with this ACL, is that any username we have on
that list is to be blocked from internet access. But it seems to be
blocking known good usernames too. I’m not sure where to go from here
After asking for one with a 407 response, does Squid ever receive a
"good username" from the client? Do you see a username in client HTTP
request headers or access.log records containing %un field?
Perhaps the client refuses to authenticate its requests because Squid
intercepts TLS client connections rather than receiving HTTP CONNECT
requests from the client? Have you tested this with plain text traffic?
Alex.
we would like to use these ACL’s but for right now I have these rules
commented out.
Here's a few other rules we have that have the same issue:
# executable blocking
# reference this list for extensions to block
acl exec_files url_regex -i "/etc/squid/exec_files"
# ignore these usernames from being blocked
#acl exec_users proxy_auth_regex -i "/etc/squid/exec_users"
# combine the rules
#http_access deny !bad_exception_urls !exec_users exec_files
#deny_info ERR_BLOCK_TYPE exec_files
From what you can see above, we have “acl exec_files url_regex -i
/etc/squid/exec_files" uncommented, but it’s not active because the
“http_access directive” had to be commented out because it includes the
other statements that include “proxy_auth_regex –i” which block all
internet access as well.
_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.squid-cache.org/listinfo/squid-users
_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.squid-cache.org/listinfo/squid-users