Не кешируются ICQ правила
Добавлено: Вт май 26, 2009 15:14
В папке icq нет файла urls.cache. В логе redirector.err ошибок нет по этому поводу. Когда пишется при старте режика какие правила загружаются, то пишется что 1 правило из pcre файла а про urls не пишется ничего. В pcre файле 3 строчки а не 1 по идее:
(^|\:\/\/)205\.188\.\d+\.\d+
(^|\:\/\/)64\.12\.\d+\.\d+
(^|\:\/\/)64\.236\.\d+\.\d+
На домашнем компе создается кеш. Файлы pcre и urls одинаковые на обоих компах. Причем какойто сайт c домена adobe.com в redirector.log блокируется по правилу icq. Жесть какаято. Никто не сталкивался? У меня еще есть много самодобавленных правил, и если какаято строка не кешируется - она пишется в redirector.err а тут все чисто с родным файлом. Права на файлы squid.squid как и везде. В конфиге все верно. Активно использую директиву allow_ip но опять же в icq я ее не использую. Вобщем вот тексты:
error_log /usr/local/rejik3/redirector.err
change_log /usr/local/rejik3/redirector.log
make-cache /usr/local/rejik3/make-cache
#allow_urls /usr/local/rejik3/banlists/allow_urls
<BANNER>
ban_dir /usr/local/rejik3/banlists/banners
#allow_ip 192.168.140.5 #akulov
#allow_ip 192.168.140.19 #raisich
#allow_ip 192.168.140.113 #simonov
url http://192.168.140.101/restricted.html
#log off
<PORNO>
ban_dir /usr/local/rejik3/banlists/porno
#allow_ip 192.168.140.251
allow_ip 192.168.140.5 #akulov
allow_ip 192.168.140.19 #raisich
allow_ip 192.168.140.113 #simonov
allow_ip 192.168.140.3 #vasia
allow_ip 192.168.140.111 #leha kosperskiy
#allow_ip 192.168.140.48 #reklama
allow_ip 192.168.140.50 #admin
#allow_ip 192.168.140.249
#allow_ip 192.168.140.57
url http://192.168.140.101/restricted.html
<MP3>
ban_dir /usr/local/rejik3/banlists/mp3
#url http://192.168.140.101/restricted.html
url http://google.ru
<JS>
ban_dir /usr/local/rejik3/banlists/js
#url http://192.168.140.101/restricted.html
#allow_ip 192.168.140.5 #akulov
#allow_ip 192.168.140.113 #simonov
#allow_ip 192.168.140.19 #raisich
url http://google.ru
<DATING>
ban_dir /usr/local/rejik3/banlists/dating
allow_ip 192.168.140.5 #akulov
allow_ip 192.168.140.19 #raisich
allow_ip 192.168.140.113 #simonov
allow_ip 192.168.140.111 #leha-kasper
allow_ip 192.168.140.3 #vasia
allow_ip 192.168.140.50 #admin
#url http://192.168.140.101/restricted.html
url http://google.ru
<PROXY>
ban_dir /usr/local/rejik3/banlists/proxy
#url http://192.168.140.101/restricted.html
url http://google.ru
<ICQ>
ban_dir /usr/local/rejik3/banlists/icq
allow_ip 192.168.140.5 #akulov
allow_ip 192.168.140.113 #simonov
allow_ip 192.168.140.19 #raisich
#url http://192.168.140.101/restricted.html
url http://google.ru
#<HANDMADE>
ban_dir /usr/local/rejik3/banlists/handmade
allow_ip 192.168.140.5 #akulov
allow_ip 192.168.140.19 #raisich
allow_ip 192.168.140.113 #simonov
allow_ip 192.168.140.48 #reklama
allow_ip 192.168.140.111 #leha-kasper
allow_ip 192.168.140.3 #vasia
#allow_ip 192.168.140.22 #popov
allow_ip 192.168.140.50 #admin
#allow_ip 192.168.140.25 # sekret
#url http://192.168.140.101/restricted.html
url http://google.ru
Как срабатывает кеш при старте сквида с режиком, причем за 1 секунду он стартует несколько раз (childs?) и каждый раз какието разные правила подгружает:
2009-05-26 16:50:17 [9532] Run make-cache
2009-05-26 16:50:17 [9532] Make-cache finished
2009-05-26 16:50:17 [9532] Load 2679 rules from /usr/local/rejik3/banlists/banners/urls.cache
2009-05-26 16:50:17 [9532] Load 71 pattern from BANNER pcre
2009-05-26 16:50:17 [9534] Run make-cache
2009-05-26 16:50:17 [9534] Make-cache finished
2009-05-26 16:50:17 [9534] Load 2679 rules from /usr/local/rejik3/banlists/banners/urls.cache
2009-05-26 16:50:17 [9534] Load 71 pattern from BANNER pcre
2009-05-26 16:50:17 [9536] Run make-cache
2009-05-26 16:50:17 [9532] Load 172479 rules from /usr/local/rejik3/banlists/porno/urls.cache
2009-05-26 16:50:17 [9532] Load 5 pattern from MP3 pcre
2009-05-26 16:50:17 [9532] Load 1 rules from /usr/local/rejik3/banlists/js/urls.cache
2009-05-26 16:50:17 [9532] Load 487 pattern from JS pcre
2009-05-26 16:50:17 [9532] Load 1594 rules from /usr/local/rejik3/banlists/dating/urls.cache
2009-05-26 16:50:17 [9532] Load 3348 rules from /usr/local/rejik3/banlists/proxy/urls.cache
2009-05-26 16:50:17 [9532] Load 140 rules from /usr/local/rejik3/banlists/handmade/urls.cache
2009-05-26 16:50:17 [9532] Load 1 pattern from ICQ pcre
2009-05-26 16:50:17 [9532] Redirector start and working
2009-05-26 16:50:17 [9534] Load 172479 rules from /usr/local/rejik3/banlists/porno/urls.cache
2009-05-26 16:50:17 [9534] Load 5 pattern from MP3 pcre
2009-05-26 16:50:17 [9534] Load 1 rules from /usr/local/rejik3/banlists/js/urls.cache
2009-05-26 16:50:17 [9534] Load 487 pattern from JS pcre
2009-05-26 16:50:17 [9534] Load 1594 rules from /usr/local/rejik3/banlists/dating/urls.cache
2009-05-26 16:50:17 [9534] Load 3348 rules from /usr/local/rejik3/banlists/proxy/urls.cache
2009-05-26 16:50:17 [9534] Load 140 rules from /usr/local/rejik3/banlists/handmade/urls.cache
2009-05-26 16:50:17 [9534] Load 1 pattern from ICQ pcre
2009-05-26 16:50:17 [9534] Redirector start and working
2009-05-26 16:50:17 [9538] Waiting for make-cache finished
2009-05-26 16:50:17 [9536] Make-cache finished
2009-05-26 16:50:17 [9536] Load 2679 rules from /usr/local/rejik3/banlists/banners/urls.cache
2009-05-26 16:50:17 [9536] Load 71 pattern from BANNER pcre
2009-05-26 16:50:17 [9536] Load 172479 rules from /usr/local/rejik3/banlists/porno/urls.cache
2009-05-26 16:50:17 [9536] Load 5 pattern from MP3 pcre
2009-05-26 16:50:17 [9536] Load 1 rules from /usr/local/rejik3/banlists/js/urls.cache
2009-05-26 16:50:17 [9536] Load 487 pattern from JS pcre
2009-05-26 16:50:17 [9536] Load 1594 rules from /usr/local/rejik3/banlists/dating/urls.cache
2009-05-26 16:50:17 [9536] Load 3348 rules from /usr/local/rejik3/banlists/proxy/urls.cache
2009-05-26 16:50:17 [9536] Load 140 rules from /usr/local/rejik3/banlists/handmade/urls.cache
2009-05-26 16:50:17 [9536] Load 1 pattern from ICQ pcre
2009-05-26 16:50:17 [9536] Redirector start and working
2009-05-26 16:50:17 [9538] Make-cache finished detected, continue
2009-05-26 16:50:17 [9538] Load 2679 rules from /usr/local/rejik3/banlists/banners/urls.cache
2009-05-26 16:50:17 [9538] Load 71 pattern from BANNER pcre
2009-05-26 16:50:17 [9538] Load 172479 rules from /usr/local/rejik3/banlists/porno/urls.cache
2009-05-26 16:50:17 [9538] Load 5 pattern from MP3 pcre
2009-05-26 16:50:17 [9538] Load 1 rules from /usr/local/rejik3/banlists/js/urls.cache
2009-05-26 16:50:17 [9538] Load 487 pattern from JS pcre
2009-05-26 16:50:17 [9538] Load 1594 rules from /usr/local/rejik3/banlists/dating/urls.cache
2009-05-26 16:50:17 [9538] Load 3348 rules from /usr/local/rejik3/banlists/proxy/urls.cache
2009-05-26 16:50:17 [9538] Load 140 rules from /usr/local/rejik3/banlists/handmade/urls.cache
2009-05-26 16:50:17 [9538] Load 1 pattern from ICQ pcre
2009-05-26 16:50:17 [9538] Redirector start and working
2009-05-26 16:50:17 [9539] Run make-cache
2009-05-26 16:50:17 [9539] Make-cache finished
2009-05-26 16:50:17 [9539] Load 2679 rules from /usr/local/rejik3/banlists/banners/urls.cache
2009-05-26 16:50:17 [9539] Load 71 pattern from BANNER pcre
2009-05-26 16:50:17 [9539] Load 172479 rules from /usr/local/rejik3/banlists/porno/urls.cache
2009-05-26 16:50:17 [9539] Load 5 pattern from MP3 pcre
2009-05-26 16:50:17 [9539] Load 1 rules from /usr/local/rejik3/banlists/js/urls.cache
2009-05-26 16:50:17 [9539] Load 487 pattern from JS pcre
2009-05-26 16:50:17 [9539] Load 1594 rules from /usr/local/rejik3/banlists/dating/urls.cache
2009-05-26 16:50:17 [9539] Load 3348 rules from /usr/local/rejik3/banlists/proxy/urls.cache
2009-05-26 16:50:17 [9539] Load 140 rules from /usr/local/rejik3/banlists/handmade/urls.cache
2009-05-26 16:50:17 [9539] Load 1 pattern from ICQ pcre
2009-05-26 16:50:17 [9539] Redirector start and working
(^|\:\/\/)205\.188\.\d+\.\d+
(^|\:\/\/)64\.12\.\d+\.\d+
(^|\:\/\/)64\.236\.\d+\.\d+
На домашнем компе создается кеш. Файлы pcre и urls одинаковые на обоих компах. Причем какойто сайт c домена adobe.com в redirector.log блокируется по правилу icq. Жесть какаято. Никто не сталкивался? У меня еще есть много самодобавленных правил, и если какаято строка не кешируется - она пишется в redirector.err а тут все чисто с родным файлом. Права на файлы squid.squid как и везде. В конфиге все верно. Активно использую директиву allow_ip но опять же в icq я ее не использую. Вобщем вот тексты:
error_log /usr/local/rejik3/redirector.err
change_log /usr/local/rejik3/redirector.log
make-cache /usr/local/rejik3/make-cache
#allow_urls /usr/local/rejik3/banlists/allow_urls
<BANNER>
ban_dir /usr/local/rejik3/banlists/banners
#allow_ip 192.168.140.5 #akulov
#allow_ip 192.168.140.19 #raisich
#allow_ip 192.168.140.113 #simonov
url http://192.168.140.101/restricted.html
#log off
<PORNO>
ban_dir /usr/local/rejik3/banlists/porno
#allow_ip 192.168.140.251
allow_ip 192.168.140.5 #akulov
allow_ip 192.168.140.19 #raisich
allow_ip 192.168.140.113 #simonov
allow_ip 192.168.140.3 #vasia
allow_ip 192.168.140.111 #leha kosperskiy
#allow_ip 192.168.140.48 #reklama
allow_ip 192.168.140.50 #admin
#allow_ip 192.168.140.249
#allow_ip 192.168.140.57
url http://192.168.140.101/restricted.html
<MP3>
ban_dir /usr/local/rejik3/banlists/mp3
#url http://192.168.140.101/restricted.html
url http://google.ru
<JS>
ban_dir /usr/local/rejik3/banlists/js
#url http://192.168.140.101/restricted.html
#allow_ip 192.168.140.5 #akulov
#allow_ip 192.168.140.113 #simonov
#allow_ip 192.168.140.19 #raisich
url http://google.ru
<DATING>
ban_dir /usr/local/rejik3/banlists/dating
allow_ip 192.168.140.5 #akulov
allow_ip 192.168.140.19 #raisich
allow_ip 192.168.140.113 #simonov
allow_ip 192.168.140.111 #leha-kasper
allow_ip 192.168.140.3 #vasia
allow_ip 192.168.140.50 #admin
#url http://192.168.140.101/restricted.html
url http://google.ru
<PROXY>
ban_dir /usr/local/rejik3/banlists/proxy
#url http://192.168.140.101/restricted.html
url http://google.ru
<ICQ>
ban_dir /usr/local/rejik3/banlists/icq
allow_ip 192.168.140.5 #akulov
allow_ip 192.168.140.113 #simonov
allow_ip 192.168.140.19 #raisich
#url http://192.168.140.101/restricted.html
url http://google.ru
#<HANDMADE>
ban_dir /usr/local/rejik3/banlists/handmade
allow_ip 192.168.140.5 #akulov
allow_ip 192.168.140.19 #raisich
allow_ip 192.168.140.113 #simonov
allow_ip 192.168.140.48 #reklama
allow_ip 192.168.140.111 #leha-kasper
allow_ip 192.168.140.3 #vasia
#allow_ip 192.168.140.22 #popov
allow_ip 192.168.140.50 #admin
#allow_ip 192.168.140.25 # sekret
#url http://192.168.140.101/restricted.html
url http://google.ru
Как срабатывает кеш при старте сквида с режиком, причем за 1 секунду он стартует несколько раз (childs?) и каждый раз какието разные правила подгружает:
2009-05-26 16:50:17 [9532] Run make-cache
2009-05-26 16:50:17 [9532] Make-cache finished
2009-05-26 16:50:17 [9532] Load 2679 rules from /usr/local/rejik3/banlists/banners/urls.cache
2009-05-26 16:50:17 [9532] Load 71 pattern from BANNER pcre
2009-05-26 16:50:17 [9534] Run make-cache
2009-05-26 16:50:17 [9534] Make-cache finished
2009-05-26 16:50:17 [9534] Load 2679 rules from /usr/local/rejik3/banlists/banners/urls.cache
2009-05-26 16:50:17 [9534] Load 71 pattern from BANNER pcre
2009-05-26 16:50:17 [9536] Run make-cache
2009-05-26 16:50:17 [9532] Load 172479 rules from /usr/local/rejik3/banlists/porno/urls.cache
2009-05-26 16:50:17 [9532] Load 5 pattern from MP3 pcre
2009-05-26 16:50:17 [9532] Load 1 rules from /usr/local/rejik3/banlists/js/urls.cache
2009-05-26 16:50:17 [9532] Load 487 pattern from JS pcre
2009-05-26 16:50:17 [9532] Load 1594 rules from /usr/local/rejik3/banlists/dating/urls.cache
2009-05-26 16:50:17 [9532] Load 3348 rules from /usr/local/rejik3/banlists/proxy/urls.cache
2009-05-26 16:50:17 [9532] Load 140 rules from /usr/local/rejik3/banlists/handmade/urls.cache
2009-05-26 16:50:17 [9532] Load 1 pattern from ICQ pcre
2009-05-26 16:50:17 [9532] Redirector start and working
2009-05-26 16:50:17 [9534] Load 172479 rules from /usr/local/rejik3/banlists/porno/urls.cache
2009-05-26 16:50:17 [9534] Load 5 pattern from MP3 pcre
2009-05-26 16:50:17 [9534] Load 1 rules from /usr/local/rejik3/banlists/js/urls.cache
2009-05-26 16:50:17 [9534] Load 487 pattern from JS pcre
2009-05-26 16:50:17 [9534] Load 1594 rules from /usr/local/rejik3/banlists/dating/urls.cache
2009-05-26 16:50:17 [9534] Load 3348 rules from /usr/local/rejik3/banlists/proxy/urls.cache
2009-05-26 16:50:17 [9534] Load 140 rules from /usr/local/rejik3/banlists/handmade/urls.cache
2009-05-26 16:50:17 [9534] Load 1 pattern from ICQ pcre
2009-05-26 16:50:17 [9534] Redirector start and working
2009-05-26 16:50:17 [9538] Waiting for make-cache finished
2009-05-26 16:50:17 [9536] Make-cache finished
2009-05-26 16:50:17 [9536] Load 2679 rules from /usr/local/rejik3/banlists/banners/urls.cache
2009-05-26 16:50:17 [9536] Load 71 pattern from BANNER pcre
2009-05-26 16:50:17 [9536] Load 172479 rules from /usr/local/rejik3/banlists/porno/urls.cache
2009-05-26 16:50:17 [9536] Load 5 pattern from MP3 pcre
2009-05-26 16:50:17 [9536] Load 1 rules from /usr/local/rejik3/banlists/js/urls.cache
2009-05-26 16:50:17 [9536] Load 487 pattern from JS pcre
2009-05-26 16:50:17 [9536] Load 1594 rules from /usr/local/rejik3/banlists/dating/urls.cache
2009-05-26 16:50:17 [9536] Load 3348 rules from /usr/local/rejik3/banlists/proxy/urls.cache
2009-05-26 16:50:17 [9536] Load 140 rules from /usr/local/rejik3/banlists/handmade/urls.cache
2009-05-26 16:50:17 [9536] Load 1 pattern from ICQ pcre
2009-05-26 16:50:17 [9536] Redirector start and working
2009-05-26 16:50:17 [9538] Make-cache finished detected, continue
2009-05-26 16:50:17 [9538] Load 2679 rules from /usr/local/rejik3/banlists/banners/urls.cache
2009-05-26 16:50:17 [9538] Load 71 pattern from BANNER pcre
2009-05-26 16:50:17 [9538] Load 172479 rules from /usr/local/rejik3/banlists/porno/urls.cache
2009-05-26 16:50:17 [9538] Load 5 pattern from MP3 pcre
2009-05-26 16:50:17 [9538] Load 1 rules from /usr/local/rejik3/banlists/js/urls.cache
2009-05-26 16:50:17 [9538] Load 487 pattern from JS pcre
2009-05-26 16:50:17 [9538] Load 1594 rules from /usr/local/rejik3/banlists/dating/urls.cache
2009-05-26 16:50:17 [9538] Load 3348 rules from /usr/local/rejik3/banlists/proxy/urls.cache
2009-05-26 16:50:17 [9538] Load 140 rules from /usr/local/rejik3/banlists/handmade/urls.cache
2009-05-26 16:50:17 [9538] Load 1 pattern from ICQ pcre
2009-05-26 16:50:17 [9538] Redirector start and working
2009-05-26 16:50:17 [9539] Run make-cache
2009-05-26 16:50:17 [9539] Make-cache finished
2009-05-26 16:50:17 [9539] Load 2679 rules from /usr/local/rejik3/banlists/banners/urls.cache
2009-05-26 16:50:17 [9539] Load 71 pattern from BANNER pcre
2009-05-26 16:50:17 [9539] Load 172479 rules from /usr/local/rejik3/banlists/porno/urls.cache
2009-05-26 16:50:17 [9539] Load 5 pattern from MP3 pcre
2009-05-26 16:50:17 [9539] Load 1 rules from /usr/local/rejik3/banlists/js/urls.cache
2009-05-26 16:50:17 [9539] Load 487 pattern from JS pcre
2009-05-26 16:50:17 [9539] Load 1594 rules from /usr/local/rejik3/banlists/dating/urls.cache
2009-05-26 16:50:17 [9539] Load 3348 rules from /usr/local/rejik3/banlists/proxy/urls.cache
2009-05-26 16:50:17 [9539] Load 140 rules from /usr/local/rejik3/banlists/handmade/urls.cache
2009-05-26 16:50:17 [9539] Load 1 pattern from ICQ pcre
2009-05-26 16:50:17 [9539] Redirector start and working