Squid ACL regex
-
Hi,
i'm trying to make a regex to apply into pfsense squid whitelists that permit only URL that contains ".well-known". I use the regex101 and work but when i put inside squid it fail.
The code is on this link: https://regex101.com/r/uDEEo4/2
And this is the regex: (https?://[^\s"'&?]+/[.]well-known/[^\s"']*)
I put into allowed_sites in this way:
url_regex (https?://[^\s"'&?]+/[.]well-known/[^\s"']*)But it doen't work. If one server make this call, it get TCP_DENIED/403 3383 HIER_DIRECT/IP
anyone can help me ?
-
@ciconet Here is how I did this, keep in mind I have approved specific site to only be spliced and not use MITM mode for those.
First:
Create a advanced config like this,
Second:
Populate your file with the URLS you want to splice.