vendredi 11 mars 2011

Squid

instal squid using opensuse tool
configure it with yast :
!!!!!!!!! n'oublier pas d'autoriser le squid port sur le firewall



/etc/squid/squid.conf for opensuse
http://www.commentcamarche.net/faq/6323-installer-un-serveur-proxy-http-squid 
ensuite
chown -R squid:users /var/lib/squidGuard/db/*
 The second command ensures that your squid is able to access the blacklists. 


cnofigurer squidguard.conf

#
# CONFIG FILE FOR SQUIDGUARD
#

dbhome /usr/local/squidGuard/db
logdir /usr/local/squidGuard/logs

dest target {
        domainlist target/domains
        urllist target/urls
        }

acl {
        default {
                pass !target all
                redirect http://localhost/block.html
        }
 }
*************
 
remplir les fichier du blakclist et 
Maintenant il faut générer la base de données avec la commande suivante :
sudo squidGuard -C all

 squidGuard -d
pour verifier si ya erreur de cnfig du squidguard
dbhomeLocation of the blacklists
logdirLocation of the logfiles
destDefinition of a category to block. You can enter the domain and url file along with a regular expression list (talk about regular expressions later on).
aclThe actual blocking defintion. In our example only the default is displayed. You can have more than one acl in place. The category porn you defined in dest is blocked by the expression !target. You have to add the identifier all after the blocklist or your users will not be able to surf anyway.
The redirect directive is madatory! You must tell SquidGuard which page to display instead of the blocked one.

Aucun commentaire:

Enregistrer un commentaire

Nombre total de pages vues