Код: Выделить всё
# NETWORK OPTIONS
redirect_program /usr/local/bin/squidGuard
redirect_children 10
auth_param basic program /usr/local/libexec/squid/ncsa_auth /usr/local/etc/squid/internet_users
auth_param basic children 10
auth_param basic realm Squid proxy-caching web server
auth_param basic credentialsttl 2 hours
auth_param basic casesensitive off
# ACCESS CONTROLS
acl all src 0.0.0.0/0.0.0.0
acl darim proxy_auth REQUIRED
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443 563
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 563 # https, snews
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
http_access allow darim
http_access deny all
visible_hostname FreeBSD.Local
coredump_dir /usr/local/squid/cache
в конфиге прописал:
Код: Выделить всё
dbhome /var/db/squidGuard
logdir /var/log
src clients
{
admin
tany
elena
luch
buh
}
dest ads
{
domainlist ads/domains
expressionlist ads/expressions
urllist ads/urls
redirect http://192.168.1.5/block/ads.html
}
............................
dest whitelist
{
domainlist whitelist/domains
redirect http://192.168.1.5/block/whitelist.html
}
acl {
clients {
pass good !ads !adult !aggressive !antispyware !artnudes !audio-video !banners !beerliquorinfo !beerliquorsale !cellphones !chat !childcare !cleaning !clothing !culinary !dating !dialers !drugs !ecommerce !entertainment !frencheducation !gambling !gardening !hacking !homerepair !hygiene !jewelry !jobsearch !kidstimewasting !mobile-phone !naturism !news !onlineauctions !onlinegames !onlinepayment !personalfinance !pets !porn !proxy !radio !religion !ringtones !sexuality !sexual_education !sportnews !sports !spyware !updatesites !vacation !violence !virusinfected !warez !weapons all
}
default {
pass none
redirect http://192.168.1.5/block/default.html
}
}
Код: Выделить всё
FreeBSD# cat /var/log/squidGuard.log
2007-11-29 14:57:58 [1298] syntax error in configfile /usr/local/etc/squid/squidGuard.conf line 6
2007-11-29 14:57:58 [1298] going into emergency mode
2007-11-29 14:57:58 [1298] ending emergency mode, stdin empty