рабочий конфиг
FreeBSD 6.1 # CONFIGURATION DIRECTORIES
оба пути рабочии
#dbhome /usr/local/squidGuard/db
dbhome /var/db/squidGuard
logdir /var/log
# SOURCE ADDRESSES:
src privilegedsource {
iplist src/privilegedsource/ips
}
src my {
iplist src/privilegedsource/ip
}
src bannedsource {
iplist src/bannedsource/ips
}
src lansource {
iplist src/lansource/lan
}
dest adult {
domainlist adult/domains
urllist adult/urls
expressionlist adult/expressions
log /usr/local/squid/squidGuard/dest/adult.log
}
dest porn {
domainlist porn/domains
urllist porn/urls
expressionlist porn/expressions
log /usr/local/squid/squidGuard/dest/porn.log
}
dest audio-video {
domainlist audio-video/domains
urllist audio-video/urls
log /usr/local/squid/squidGuard/dest/audio-video.log
}
dest forums {
domainlist forums/domains
urllist forums/urls
expressionlist forums/expressions
log /usr/local/squid/squidGuard/dest/forums.log
}
dest hacking {
domainlist hacking/domains
urllist hacking/urls
log /usr/local/squid/squidGuard/dest/hacking.log
}
dest redirector {
domainlist redirector/domains
urllist redirector/urls
expressionlist redirector/expressions
log /usr/local/squid/squidGuard/dest/redirector.log
}
dest warez {
domainlist warez/domains
urllist warez/urls
log /usr/local/squid/squidGuard/dest/warez.log
}
dest ads {
domainlist ads/domains
urllist ads/urls
redirect http://127.0.0.1/cgi-bin/2x2.gif
log /usr/local/squid/squidGuard/dest/ads.log
}
dest aggressive {
domainlist aggressive/domains
urllist aggressive/urls
log /usr/local/squid/squidGuard/dest/aggressive.log
}
dest drugs {
domainlist drugs/domains
urllist drugs/urls
log /usr/local/squid/squidGuard/dest/drugs.log
}
dest gambling {
domainlist gambling/domains
urllist gambling/urls
log /usr/local/squid/squidGuard/dest/gambling.log
}
dest publicite {
domainlist publicite/domains
urllist publicite/urls
expressionlist publicite/expressions
log /usr/local/squid/squidGuard/dest/publicite.log
}
dest violence {
domainlist violence/domains
urllist violence/urls
expressionlist violence/expressions
log /usr/local/squid/squidGuard/dest/violence.log
}
dest banneddestination {
domainlist banneddestination/domains
urllist banneddestination/urls
expressionlist banneddestination/expressions
log /usr/local/squid/squidGuard/dest/banneddestination.log
}
dest advertising {
domainlist advertising/domains
urllist advertising/urls
log /usr/local/squid/squidGuard/dest/advertising.log
}
# ACLs
acl {
my { pass !porn !ads !advertising !banneddestination all
redirect http://127.0.0.1/cgi-bin/squidGuard.cgi?clientaddr=%a&s...
}
default { pass none
redirect http://127.0.0.1/cgi-bin/squidGuard.cgi?clientaddr=%a&s...
log /usr/local/squid/squidGuard/default.log
}
}