Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Squid ACL regex

    Cache/Proxy
    squidproxy acl
    2
    2
    842
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ciconetC
      ciconet
      last edited by

      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 ?

      JonathanLeeJ 1 Reply Last reply Reply Quote 0
      • JonathanLeeJ
        JonathanLee @ciconet
        last edited by

        @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,
        Screenshot 2023-05-21 at 11.42.45 AM.png
        Second:
        Populate your file with the URLS you want to splice.

        Screenshot 2023-05-21 at 11.44.42 AM.png

        Make sure to upvote

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.