Nous sommes actuellement le 28 Mars 2024, 15:54

Le fuseau horaire est UTC-5 heures [Heure d’été]




Publier un nouveau sujet Répondre au sujet  [ 1 message ] 
Auteur Message
 Sujet du message: le filtrage de squidGuard
MessagePublié: 22 Mai 2010, 22:37 
Hors-ligne
Petit nouveau
Petit nouveau

Inscription : 22 Mai 2010, 22:19
Message(s) : 1
voila mon squid
++++++++++++++++++
visible_hostname TUNETsquid
auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid/squid_passwd
auth_param basic children 10
auth_param basic realm Squid proxy-by TUNET
auth_param basic credentialsttl 2 hour
auth_param basic casesensitive off
acl all src 0.0.0.0/0
http_port 8080
icp_port 3130


hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
cache deny QUERY
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0




acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/24







acl SSL_ports port 443
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http

acl CONNECT method CONNECT
acl purge method PURGE
acl manager proto cache_object

#acl TunNet src 41.229.0.0/24
acl TunNet src 192.168.0.0/24

acl squid_passwd proxy_auth REQUIRED
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost
http_access allow TunNet squid_passwd
http_access deny all
http_reply_access allow all
icp_access allow all
http_access allow purge localhost
http_access deny purge









coredump_dir /var/spool/squid

#redirect_program /usr/bin/squidGuard -c /etc/squid/squidGuard.conf
url_rewrite_program /usr/bin/squidGuard –c /etc/squid/squidGuard.conf


redirect_children 10

http_port 8080 transparent







#acl whitelist dstdomain "/etc/squid/whitelist"
#acl blacklist dstdomain "/etc/squid/blacklist"
#acl filtre_reg url_regex -i ^.*yahoo.*$ ^.*porn.*$ ^.*hack.*$ ^.*crack.*$ ^.*drug.*$ ^.*felation.*$

############################## ++++++++++++++++++++++++++++++
#acl blacklist dstdomain "/etc/squid/blacklist"
#acl blacklist src "/etc/squid/blacklist"
acl blacklist url_regex -i "/etc/squid/blacklist"
#acl blacklist dstdomain "/etc/squid/blacklist"
############################++++++++++++++++++++++++++++

#http_access allow whitelist
http_access deny blacklist
#http_access allow squid_passwd
#http_access allow filtre_reg


###############
acl mm src http://www.facebook.com
http_access deny mm













acl dadUser proxy_auth
acl kidsUser proxy_auth kids
acl whitelist dstdomain "/etc/squid/blacklist"
http_access allow dadUser
http_access deny kidsUser blacklist















acl ncsa_adult_squid_passwd proxy_auth adult
acl ncsa_kids_squid_passwd proxy_auth kids


http_access deny !ncsa_adult_squid_passwd
http_access allow ncsa_adult_squid_passwd
http_access allow ncsa_kids_squid_passwd whitelist
http_access deny ncsa_kids_squid_passwd blacklist
http_access deny all




cache_effective_user proxy
cache_effective_group proxy








dns_testnames lockerz.com
cachemgr_passwd disable all
err_html_text 40000000000000004 nooooooot found
cache_mgr anis180@gmail.com
access_log /var/log/squid/access.log


++++++++++++++++++++++++++++++++++++++
et voila mon squidGuard
++++++++++++++++++++++++++++++++++++++
#
# Configuration File for SquidGuard
#
# Created with the SquidGuard Configuration Webmin Module
# Copyright (C) 2001 by Tim Niemueller <tim@niemueller.de>
# http://www.niemueller.de/webmin/modules/squidguard/
#
# File created on 19/May/2010 10:44
#

dbhome /var/lib/squidguard/db
logdir /var/log/squid









dest pornographie {
urllist adult/urls
domainlist adult/domains
}

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

destination audio-video {
urllist audio-video/urls
domainlist audio-video/domains
}

dest drogues {
urllist drugs/urls
domainlist drugs/domains
}

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

dest jeux {
urllist gambling/urls
domainlist gambling/domains
}

dest hackers {
urllist hacking/urls
domainlist hacking/domains
}

dest redirecteurs {
urllist redirector/urls
domainlist redirector/domains
}

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

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



source lan
{
user kids
ip 41.229.111.52/24
ip 41.229.111.0/24
ip 198.168.1.9/24
}

acl {








lan {
pass !pornographie !agressif !audio-video !drogues !forums !jeux !hackers !redirecteurs !violence !warez
redirect http://www.msn.com
}


default {
redirect http://www.tunisia-sat.com
pass none
}
}

+++++++++++++++++++++++++++++++++++++

mais le filtrage ne foncionne plus
?????????????????????????????


Haut
 Profil  
Répondre en citant  
Afficher les messages publiés depuis :  Trier par  
Publier un nouveau sujet Répondre au sujet  [ 1 message ] 

Le fuseau horaire est UTC-5 heures [Heure d’été]


Qui est en ligne ?

Utilisateur(s) parcourant ce forum : Aucun utilisateur inscrit et 4 invité(s)


Vous ne pouvez pas publier de nouveaux sujets dans ce forum
Vous ne pouvez pas répondre aux sujets dans ce forum
Vous ne pouvez pas éditer vos messages dans ce forum
Vous ne pouvez pas supprimer vos messages dans ce forum

Recherche de:
Aller vers :  
cron
Propulsé par phpBB® Forum Software © phpBB Group
Traduction et support en françaisHébergement de site