Modif squid.conf plages d'ip interdites
This commit is contained in:
parent
e6c5fd4ea3
commit
482d4a0955
@ -1352,8 +1352,10 @@ acl Safe_ports port 488 # gss-http
|
||||
acl Safe_ports port 591 # filemaker
|
||||
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 :
|
||||
acl mots_interdits url_regex -i chatgpt twitch
|
||||
acl mots_interdits url_regex -i chatgpt twitch discord instagram snapchat youtube
|
||||
# Ban des sites suviants :
|
||||
acl sites_bloques dstdomain .youtube.com .facebook.com .twitch.tv .chatgpt.com
|
||||
# Mise en place de plages horaires
|
||||
@ -1556,6 +1558,7 @@ 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 plage_ip_interdite
|
||||
http_access deny mots_interdits
|
||||
http_access deny sites_bloques
|
||||
http_access allow localnet
|
||||
|
Loading…
x
Reference in New Issue
Block a user