From e2fe18b586de0814a07249a7472aa8de42f36852 Mon Sep 17 00:00:00 2001 From: "charlie.alves" Date: Mon, 7 Apr 2025 09:39:26 +0200 Subject: [PATCH] filtrage discriminant --- sisr1/tp05-squid/squid.conf | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/sisr1/tp05-squid/squid.conf b/sisr1/tp05-squid/squid.conf index 8605a53..98adf9d 100644 --- a/sisr1/tp05-squid/squid.conf +++ b/sisr1/tp05-squid/squid.conf @@ -1553,10 +1553,15 @@ include /etc/squid/conf.d/*.conf # Example rule allowing access from your local networks. # Adapt localnet in the ACL section to list your (internal) IP networks # from where browsing should be allowed -http_access deny mots_cles_refuses -http_access allow localnet -http_access allow localhost +# 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