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

Squid ACL regex

Scheduled Pinned Locked Moved Cache/Proxy
squidproxyacl
2 Posts 2 Posters 846 Views
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.
  • C
    ciconet
    last edited by May 9, 2023, 3:30 PM

    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 ?

    J 1 Reply Last reply May 21, 2023, 6:46 PM Reply Quote 0
    • J
      JonathanLee @ciconet
      last edited by May 21, 2023, 6:46 PM

      @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.
        [[user:consent.lead]]
        [[user:consent.not_received]]