Modif squid.conf plages d'ip interdites

This commit is contained in:
yann.lereuille 2025-04-07 09:33:34 +02:00
parent e6c5fd4ea3
commit 482d4a0955

View File

@ -1352,8 +1352,10 @@ acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http acl Safe_ports port 777 # multiling http
# Ban ip :
acl plage_ip_interdite src 172.16.0.5-172.16.0.99
# Ban des mots clés : # Ban des mots clés :
acl mots_interdits url_regex -i chatgpt twitch acl mots_interdits url_regex -i chatgpt twitch discord instagram snapchat youtube
# Ban des sites suviants : # Ban des sites suviants :
acl sites_bloques dstdomain .youtube.com .facebook.com .twitch.tv .chatgpt.com acl sites_bloques dstdomain .youtube.com .facebook.com .twitch.tv .chatgpt.com
# Mise en place de plages horaires # Mise en place de plages horaires
@ -1556,6 +1558,7 @@ include /etc/squid/conf.d/*.conf
# Example rule allowing access from your local networks. # Example rule allowing access from your local networks.
# Adapt localnet in the ACL section to list your (internal) IP networks # Adapt localnet in the ACL section to list your (internal) IP networks
# from where browsing should be allowed # from where browsing should be allowed
http_access deny plage_ip_interdite
http_access deny mots_interdits http_access deny mots_interdits
http_access deny sites_bloques http_access deny sites_bloques
http_access allow localnet http_access allow localnet