Здравствуйте!Установил сквид и сквидгард. В squidguard.conf добавил соответствующие фильтры и указал - клиента:
time workhours {
weekly mtwhf 08:00 - 17:00
# date *-*-01 08:00 - 16:30
}
src first_client {
ip 192.168.1.153
}
acl {
first_client within workhours {
pass !porn !my_blacklist all
}
default {
pass none
log default
}
}
dest porn {
domainlist porn/domains
urllist porn/urls
expressionlist porn/expressions
}
и т.д.
В squid.conf прописал:
redirect_program /usr/bin/squidGuard
redirect_children 1
redirector_bypass on
После этого перезапустил сквид и в логах сквидгарда читаем:
2011-04-20 19:35:56 [6613] New setting: dbhome: /usr/share/squidGuard-1.4/db
2011-04-20 19:35:56 [6613] New setting: logdir: /var/log/squidGuard
2011-04-20 19:35:56 [6613] Added User: root
2011-04-20 19:35:56 [6613] init domainlist /usr/share/squidGuard-1.4/db/my_blacklist/d
omains
2011-04-20 19:35:56 [6613] init urllist /usr/share/squidGuard-1.4/db/my_blacklist
2011-04-20 19:35:56 [6613] urllist empty, removed from memory
2011-04-20 19:35:56 [6613] destblock good missing active content, set inactive
2011-04-20 19:35:56 [6613] init domainlist /usr/share/squidGuard-1.4/db/ads/domains
2011-04-20 19:35:56 [6613] init urllist /usr/share/squidGuard-1.4/db/ads/urls
2011-04-20 19:35:56 [6613] init domainlist /usr/share/squidGuard-1.4/db/adult/domains
2011-04-20 19:35:56 [6613] domainlist empty, removed from memory
2011-04-20 19:35:56 [6613] init urllist /usr/share/squidGuard-1.4/db/adult/urls
2011-04-20 19:35:56 [6613] urllist empty, removed from memory
2011-04-20 19:35:56 [6613] init expressionlist /usr/share/squidGuard-1.4/db/adult/expr
essions
2011-04-20 19:35:56 [6613] init domainlist /usr/share/squidGuard-1.4/db/aggressive/dom
ains
2011-04-20 19:35:56 [6613] init urllist /usr/share/squidGuard-1.4/db/aggressive/urls
2011-04-20 19:35:56 [6613] init domainlist /usr/share/squidGuard-1.4/db/audio-video/do
mains
2011-04-20 19:35:56 [6613] init urllist /usr/share/squidGuard-1.4/db/audio-video/urls
2011-04-20 19:35:56 [6613] init domainlist /usr/share/squidGuard-1.4/db/drugs/domains
2011-04-20 19:35:56 [6613] init urllist /usr/share/squidGuard-1.4/db/drugs/urls
2011-04-20 19:35:56 [6613] init domainlist /usr/share/squidGuard-1.4/db/gambling/domains
2011-04-20 19:35:56 [6613] init urllist /usr/share/squidGuard-1.4/db/gambling/urls
2011-04-20 19:35:56 [6613] init domainlist /usr/share/squidGuard-1.4/db/hacking/domains
2011-04-20 19:35:56 [6613] init urllist /usr/share/squidGuard-1.4/db/hacking/urls
2011-04-20 19:35:56 [6613] init domainlist /usr/share/squidGuard-1.4/db/mail/domains
2011-04-20 19:35:56 [6613] init domainlist /usr/share/squidGuard-1.4/db/porn/domains
2011-04-20 19:35:59 [6613] init urllist /usr/share/squidGuard-1.4/db/porn/urls
2011-04-20 19:36:00 [6613] init expressionlist /usr/share/squidGuard-1.4/db/porn/expressions
2011-04-20 19:36:00 [6613] init domainlist /usr/share/squidGuard-1.4/db/proxy/domains
2011-04-20 19:36:00 [6613] init urllist /usr/share/squidGuard-1.4/db/proxy/urls
2011-04-20 19:36:00 [6613] urllist empty, removed from memory
2011-04-20 19:36:00 [6613] init domainlist /usr/share/squidGuard-1.4/db/violence/domains
2011-04-20 19:36:00 [6613] init urllist /usr/share/squidGuard-1.4/db/violence/urls
2011-04-20 19:36:00 [6613] urllist empty, removed from memory
2011-04-20 19:36:00 [6613] init domainlist /usr/share/squidGuard-1.4/db/warez/domains
2011-04-20 19:36:00 [6613] init urllist /usr/share/squidGuard-1.4/db/warez/urls
2011-04-20 19:36:00 [6613] (squidGuard): ACL destination !ads is not defined in configfile /etc/squid/squidGuard.conf
2011-04-20 19:36:00 [6613] Going into emergency mode
как видно, сквид и сквидгард благополучно связаны и базы фильтров прошли инициализацию. Но с клиента всё равно сумел зайти на любой порно сайт. Получается никакой фильтрации нет?