From bc35c3c2d802d6215e06bcc09bf0598626a38645 Mon Sep 17 00:00:00 2001 From: "charlie.alves" Date: Mon, 7 Apr 2025 09:50:42 +0200 Subject: [PATCH] filtrage discriminant2 --- sisr1/tp05-squid/squid.conf | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/sisr1/tp05-squid/squid.conf b/sisr1/tp05-squid/squid.conf index 98adf9d..3c83a83 100644 --- a/sisr1/tp05-squid/squid.conf +++ b/sisr1/tp05-squid/squid.conf @@ -1355,6 +1355,8 @@ acl Safe_ports port 777 # multiling http acl mots_cles_refuses url_regex –i twitch acl mots_cles_refuses url_regex –i chatgpt +acl motsinterdis url_regex –i youtube discord twitch +acl ip_restreintes src 172.16.0.5-172.16.0.99 # TAG: proxy_protocol_access # Determine which client proxies can be trusted to provide correct @@ -1374,7 +1376,7 @@ acl mots_cles_refuses url_regex –i chatgpt # # An allow match is required for Squid to permit the corresponding # TCP connection, before Squid even looks for HTTP request headers. -# If there is an allow match, Squid starts using PROXY header information +# If there is an allow match, Squid starts using PROXY header in # to determine the source address of the connection for all future ACL # checks, logging, etc. # @@ -1556,14 +1558,10 @@ include /etc/squid/conf.d/*.conf # http_access deny mots_cles_refuses # http_access allow localnet # http_access allow localhost -acl motsinterdis url_regex –i youtube discord twitch -acl ip_restreintes src 172.16.0.5-172.16.0.99 http_access deny ip_restreintes motsinterdis http_access allow localnet http_access deny all -# And finally deny all other access to this proxy -http_access deny all # TAG: adapted_http_access # Allowing or Denying access based on defined access lists