Bonjour à tous,
je met en place un squid+squidguard.
j'ai une erreur de syntaxe à la ligne 23 (qui correspond à
)
syntax error in configfile /etc/squid/squidGuard.conf line 23
Le proxy est sur un réseau en 192.168.*.* et le réseau des machines clientes sur un reseau en 10.*.*.*
voici le fichier de conf squidGuard:
#
# CONFIG FILE FOR SQUIDGUARD
#
dbhome /var/squidGuard/blacklists
logdir /var/log/squidGuard
#
# TIME RULES:
# abbrev for weekdays:
# s = sun, m = mon, t =tue, w = wed, h = thu, f = fri, a = sat
time workhours {
weekly smtwhfa 07:00 - 12:30
weekly smtwhfa 14:00 - 18:30
date *-*-01 07:00 - 18:30
#
# REWRITE RULES:
#
# SOURCE ADDRESSES:
#
src OSB {
ip 10.*.*.*/24
}
src prox{
ip 192.168.*.*/24
}
#
# DESTINATION CLASSES:
#
dest liste_blanche {
domainlist liste_blanche/domains
}
dest games {
domainlist games/domains
urllist games/urls
}
dest adult {
domainlist adult/domains
urllist adult/urls
expressionlist adult/expressions
}
dest social_networks {
domainlist social_networks/domains
urllist social_networks/urls
}
dest agressif {
domainlist agressif/domains
urllist agressif/urls
log agressif.log
}
dest ddos {
domainlist ddos/domains
}
dest drogue {
domainlist drogue/domains
urllist drogue/urls
}
dest bitcoin {
domainlist bitcoin/domains
urllist bitcoin/urls
}
dest astrology {
domainlist astrology/domains
urllist astrology/urls
}
dest dangerous_material {
domainlist dangerous_material/domains
urllist dangerous_material/urls
}
dest financial {
domainlist financial/domains
urllist financial/urls
}
dest gambling {
domainlist gambling/domains
urllist gambling/urls
}
dest hacking {
domainlist hacking/domains
urllist hacking/urls
}
dest malware {
domainlist malware/domains
}
dest marketingware {
domainlist marketingware/domains
}
dest mixed_adult {
domainlist mixed_adult/domains
}
dest phishing {
domainlist phishing/domains
}
dest or {
domainlist or/domains
expressionlist or/expressions
urllist or/urls
}
dest sect {
domainlist sect/domains
urllist sect/urls
}
dest strict_or {
domainlist strict_or/domains
expressionlist strict_or/expressions
urllist strict_or/urls
}
dest strong_or {
domainlist strong_or/domains
expressionlist strong_or/expressions
urllist strong_or/urls
}
dest warez {
domainlist warez/domains
expressionlist warez/expressions
urllist warez/urls
}
dest vpn {
domainlist vpn/domains
}
acl {
OSB {
pass !games
pass !social_networks
pass liste_blanche
pass !adult
pass !agressif
pass !drogue
pass !mixed_adult
pass !phishing
pass !malware
pass !sect
pass !warez
pass !or
pass !strict_or
pass !strong_or
pass !hacking
pass !gambling
pass !dangerous_material
pass !bitcoin
pass !phishing
pass !vpn
pass !ddos
}
prox {
pass liste_blanche
pass !social_networks
pass !adult
pass !agressif
pass !drogue
pass !mixed_adult
pass !phishing
pass !malware
pass !sect
pass !warez
pass !redirector
pass !strict_redirector
pass !strong_redirector
pass !hacking
pass !gambling
pass !dangerous_material
pass !bitcoin
pass !phishing
pass !vpn
pass !ddos
}
}
merci de votre aide et surtout de votre regard aiguisé
Dernière modification par kbvz (01-03-2021 11:01:41)