Bonjour à tous,
J'ai mis en place un Proxy avec Squid pour un projet. Lorsque je fais les tests avec uniquement Squid en marche pas de soucis. Seulement lorsque j'ajoute dans mon squid.conf les lignes pour utiliser en plus Squidguard il y a rien de plus qui se passe c'est comme si squidguard.conf était vide ou qu'il y avait pas de redirection ou de blacklist.
Je vous mets à la suite mon squid.conf et mon squidGuard.conf. Je ne comprends pas où il y aurait une faute.
Merci
SQUID.CONF
#Port
http_port 3128
#Cache
cache_mem 8 MB
cache_dir ufs /var/spool/squid 100 16 256
maximum_object_size 3 MB
#Log
cache_access_log /var/log/squid/access.log
cache_store_log /var/log/squid/store.log
cache_log /var/log/squid/cache.log
visible_hostname ToTo_proxy
#Contact
cache_mgr toto@projet.org
#Authentification
auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid/users
#Squidguard
redirect_program /usr/bin/squidGuard -c /etc/squid/squidGuard.conf
redirect_children 10
#
# ACLs
#
acl password proxy_auth REQUIRED
acl jeux url_regex jeu jeux game games
acl chat url_regex caramail chat
acl site_int dstdomain www.youtube.com www.dailymotion.com
acl port port 21
acl time time MTWHF 10:00-17:30
#ACls clients
acl all src 0.0.0.0/0.0.0.0
acl localhost src 127.0.0.1/255.255.255.255
acl client src 172.16.0.107
acl admin src 172.16.0.105
#Mise en place des ACLs
http_access allow admin
http_access deny !password
http_access deny jeux
http_access deny chat
http_access deny site_int
http_access allow client time
http_access allow localhost
http_access deny all
SQUIDUARD.CONF
#Base de données
dbhome /var/lib/squidguard/db
logdir /var/log/squid
#Black List
dest adulte
{
domainlist adulte/domains
expressionlist adulte/expressions
}
dest jeux {
urllist jeux/urls
expressionlist jeux/expressions
}
#src admin {
#ip 172.16.0.105
#}
src client {
ip 172.16.0.107
}
acl {
# admin {
# pass all
#}
client {
pass !jeux !adulte all
redirect www.debian.org
}
default {
pass none
redirect www.debian.org
}
}
Partager