[squid-users] urlpath_regex not being matched

LucĂ­a Guevgeozian lulumailgo at gmail.com
Mon Jan 18 17:22:24 UTC 2016


Hello,

I think I have a very basic question about acl, but I can't figure out why
this simple config is not working:

In my squid.conf file I have 2 acl

acl good_facebook urlpath_regex groups
acl banned_sites url_regex "/etc/squid/config/banned_sites"

inside banned_sites I have the word facebook

then,
http_access allow good_facebook
http_access deny banned_sites

If I try accessing https://www.facebook.com/groups I get blocked and I
can't see the match in the cache.log, so my guess is that I am being
blocked by the facebook regex in banned_sites

2016/01/18 10:58:01.965| ACLChecklist::preCheck: 0x85ef37c checking
'http_access allow good_facebook'
2016/01/18 10:58:01.965| ACLList::matches: checking good_facebook
2016/01/18 10:58:01.965| ACL::checklistMatches: checking 'good_facebook'
2016/01/18 10:58:01.965| ACL::ChecklistMatches: result for 'good_facebook'
is 0

1453119069.736      3 10.1.1.51 TCP_DENIED/403 2204 CONNECT
www.facebook.com:443 lucia.guevgeozian NONE/- text/html

Originally my problem was a bit different, I need to allow access to a
specific group on facebook, and the corresponding login page, after trying
many regex and many suggestions from different websites that made a lot of
sense, I started testing just with the https://www.facebook.com/groups, but
still no luck.

I really appreciate if someone could help me out with this, I can't seem to
understand exactly how the access lists are being processed.

Thanks in advance for your time,

Regards
Lucia

ps: I'm using this squid version
Squid Cache: Version 3.0.STABLE18
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20160118/05c723dc/attachment.html>


More information about the squid-users mailing list