Modif squid.conf plages d'ip interdites v2
This commit is contained in:
parent
482d4a0955
commit
c20b37ce75
@ -1355,9 +1355,9 @@ acl Safe_ports port 777 # multiling http
|
|||||||
# Ban ip :
|
# Ban ip :
|
||||||
acl plage_ip_interdite src 172.16.0.5-172.16.0.99
|
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 discord instagram snapchat youtube
|
acl mots_interdits url_regex -i chatgpt twitch discord instagram snapchat youtube facebook
|
||||||
# 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
|
||||||
#acl plages_horaires time M-T 09:05 9:15
|
#acl plages_horaires time M-T 09:05 9:15
|
||||||
|
|
||||||
@ -1558,9 +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 plage_ip_interdite mots_interdits
|
||||||
http_access deny mots_interdits
|
|
||||||
http_access deny sites_bloques
|
|
||||||
http_access allow localnet
|
http_access allow localnet
|
||||||
http_access allow localhost
|
http_access allow localhost
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user