##### /etc/squid/squid.conf ##### # comme Squid est lancé par un utilisateur différent de root # alors http_port ne peut être inférieur à 1024 http_port 192.168.0.2:3129 acl QUERY urlpath_regex cgi-bin \? no_cache deny QUERY cache_mem 10 MB cache_dir ufs /var/spool/squid 100 16 256 cache_access_log /var/log/squid/access.log cache_log /var/log/squid/cache.log cache_store_log /var/log/squid/store.log pid_filename /var/run/squid.pid # Pour que le proxy soit serveur DNS : # dns_nameservers dns_fai ou/et dns_passerelle # redirect_program /usr/bin/squidGuard -c etc/squid/squidGuard.conf refresh_pattern ^ftp: 1440 20% 10080 refresh_pattern ^gopher: 1440 0% 1440 refresh_pattern . 0 20% 4320 # ACL : les acl permettent de spécifier les autorisations # d'accès sur certains ports, et pour les ip des stations # Attention l'ordre donné ici est important ! acl all src 0.0.0.0/0.0.0.0 acl localhost src 127.0.0.1/255.255.255.255 acl manager proto cache_object acl SSL_ports port 443 563 acl Safe_ports port 80 # http acl Safe_ports port 20 # ftp-data acl Safe_ports port 21 # ftp acl Safe_ports port 443 563 # ssl acl Safe_ports port 70 # gopher acl Safe_ports port 210 # wais acl unSafe_ports port 1025-65535# unregistered ports 1025-65535 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 Safe_ports port 631 # cups acl Safe_ports port 873 # rsync acl Safe_ports port 901 # SWAT acl purge method PURGE acl CONNECT method CONNECT acl pop port 110 acl smtp port 25 acl Safe_ports port 110 acl Safe_ports port 25 acl Emule_susceptibles_ports port 4662,4667,14662,14667,24662,24667,4661,14661 acl porno browser sex acl msn port 1863 # On accepte tout ce qui vient du serveur http_access allow manager localhost http_access deny manager http_access allow purge localhost http_access deny purge http_access deny unSafe_ports # On rejette tous les ports différents de ceux déclarer dans les acl http_access allow msn http_access allow SSL_ports # On accepte les requetes des stations suivantes sur le proxy : http_access deny CONNECT !SSL_ports http_access allow localhost http_access deny Emule_susceptibles_ports http_access deny !Safe_ports http_access allow all # On accepte le local # On rejette tout le reste http_reply_access allow all icp_access allow all # On renseigne l'utilisateur et le groupe qui initialise Squid : cache_effective_user proxy cache_effective_group proxy # On renseigner le nom de machine qui fait serveur visible_hostname XSplatchi httpd_accel_host virtual httpd_accel_port 80 httpd_accel_with_proxy on httpd_accel_uses_host_header on #### END /etc/squid/squid.conf #### deny_info 192.168.0.190/deny.html porno ======================================= Erreur au lancement : ======================================= Failed to start Squid : 2006/12/04 19:14:21| parseConfigFile: line 95 unrecognized: 'httpd_accel_host virtual' 2006/12/04 19:14:21| parseConfigFile: line 96 unrecognized: 'httpd_accel_port 80' 2006/12/04 19:14:21| parseConfigFile: line 97 unrecognized: 'httpd_accel_with_proxy on' 2006/12/04 19:14:21| parseConfigFile: line 98 unrecognized: 'httpd_accel_uses_host_header on'