SquidNT + rejik(режик поднимается но ничего не блокирует)
Добавлено: Ср апр 02, 2008 17:41
здравствуйте.
сначала была проблема которая здесь как я потом нашел уже поднималась.
при запуске сквида из под командной строки режик поднимался а при запуске сквида как службы нет.
в логе режика следующее
[3876] MAKE-CACHE: ERROR: fcntl return error: Bad file descriptor
2008-03-24 15:20:38 [2616] MAKE-CACHE: ERROR: fcntl return error: Bad file descriptor
2008-03-24 15:20:38 [2032] MAKE-CACHE: ERROR: Can't open file c:/squid/etc/banlists/banners/lock.file: Permission denied
2008-03-24 15:20:38 [3292] MAKE-CACHE: ERROR: Can't open file c:/squid/etc/banlists/banners/lock.file: Permission denied
проблема была решена путем добавления прав lock.file "на все" и для всех.
теперь режик поднимается в обоих случаях, но однако в обоих случаях ничего не блокирует.
conf squid'a :
url_rewrite_program c:/squid/sbin/redirector.exe c:/squid/etc/redirector.conf
url_rewrite_children 5
log rejik'a:
2008-04-01 15:52:58 [5672] Run make-cache
2008-04-01 15:52:58 [5672] Make-cache finished
2008-04-01 15:52:58 [5672] Load 658 rules from c:/squid/etc/banlists/banners/urls.cache
2008-04-01 15:52:58 [5672] Load 8 pattern from BANNER pcre
2008-04-01 15:52:58 [5672] Load 22283 rules from c:/squid/etc/banlists/porno/urls.cache
2008-04-01 15:52:58 [5672] Load 5 pattern from MP3 pcre
2008-04-01 15:52:58 [5672] Load 1 rules from c:/squid/etc/banlists/js/urls.cache
2008-04-01 15:52:58 [5672] Redirector start and working
2008-04-01 15:52:58 [5948] Run make-cache
2008-04-01 15:52:58 [5948] Make-cache finished
2008-04-01 15:52:58 [5948] Load 658 rules from c:/squid/etc/banlists/banners/urls.cache
2008-04-01 15:52:58 [5948] Load 8 pattern from BANNER pcre
2008-04-01 15:52:58 [4200] Run make-cache
2008-04-01 15:52:58 [5948] Load 22283 rules from c:/squid/etc/banlists/porno/urls.cache
2008-04-01 15:52:58 [5948] Load 5 pattern from MP3 pcre
2008-04-01 15:52:58 [5948] Load 1 rules from c:/squid/etc/banlists/js/urls.cache
2008-04-01 15:52:58 [5948] Redirector start and working
2008-04-01 15:52:58 [5128] Waiting for make-cache finished
2008-04-01 15:52:58 [4200] Make-cache finished
2008-04-01 15:52:58 [5128] Make-cache finished detected, continue
2008-04-01 15:52:58 [5128] Load 658 rules from c:/squid/etc/banlists/banners/urls.cache
2008-04-01 15:52:58 [5128] Load 8 pattern from BANNER pcre
2008-04-01 15:52:58 [1664] Run make-cache
2008-04-01 15:52:58 [5128] Load 22283 rules from c:/squid/etc/banlists/porno/urls.cache
2008-04-01 15:52:58 [5128] Load 5 pattern from MP3 pcre
2008-04-01 15:52:58 [5128] Load 1 rules from c:/squid/etc/banlists/js/urls.cache
2008-04-01 15:52:58 [5128] Redirector start and working
2008-04-01 15:52:58 [1664] Make-cache finished
2008-04-01 15:52:58 [1664] Load 658 rules from c:/squid/etc/banlists/banners/urls.cache
2008-04-01 15:52:58 [1664] Load 8 pattern from BANNER pcre
2008-04-01 15:52:58 [1664] Load 22283 rules from c:/squid/etc/banlists/porno/urls.cache
2008-04-01 15:52:58 [1664] Load 5 pattern from MP3 pcre
2008-04-01 15:52:58 [1664] Load 1 rules from c:/squid/etc/banlists/js/urls.cache
2008-04-01 15:52:58 [1664] Redirector start and working
помогите пожалуйста чем могите заставить его работать.
спасибо.
сначала была проблема которая здесь как я потом нашел уже поднималась.
при запуске сквида из под командной строки режик поднимался а при запуске сквида как службы нет.
в логе режика следующее
[3876] MAKE-CACHE: ERROR: fcntl return error: Bad file descriptor
2008-03-24 15:20:38 [2616] MAKE-CACHE: ERROR: fcntl return error: Bad file descriptor
2008-03-24 15:20:38 [2032] MAKE-CACHE: ERROR: Can't open file c:/squid/etc/banlists/banners/lock.file: Permission denied
2008-03-24 15:20:38 [3292] MAKE-CACHE: ERROR: Can't open file c:/squid/etc/banlists/banners/lock.file: Permission denied
проблема была решена путем добавления прав lock.file "на все" и для всех.
теперь режик поднимается в обоих случаях, но однако в обоих случаях ничего не блокирует.
conf squid'a :
url_rewrite_program c:/squid/sbin/redirector.exe c:/squid/etc/redirector.conf
url_rewrite_children 5
log rejik'a:
2008-04-01 15:52:58 [5672] Run make-cache
2008-04-01 15:52:58 [5672] Make-cache finished
2008-04-01 15:52:58 [5672] Load 658 rules from c:/squid/etc/banlists/banners/urls.cache
2008-04-01 15:52:58 [5672] Load 8 pattern from BANNER pcre
2008-04-01 15:52:58 [5672] Load 22283 rules from c:/squid/etc/banlists/porno/urls.cache
2008-04-01 15:52:58 [5672] Load 5 pattern from MP3 pcre
2008-04-01 15:52:58 [5672] Load 1 rules from c:/squid/etc/banlists/js/urls.cache
2008-04-01 15:52:58 [5672] Redirector start and working
2008-04-01 15:52:58 [5948] Run make-cache
2008-04-01 15:52:58 [5948] Make-cache finished
2008-04-01 15:52:58 [5948] Load 658 rules from c:/squid/etc/banlists/banners/urls.cache
2008-04-01 15:52:58 [5948] Load 8 pattern from BANNER pcre
2008-04-01 15:52:58 [4200] Run make-cache
2008-04-01 15:52:58 [5948] Load 22283 rules from c:/squid/etc/banlists/porno/urls.cache
2008-04-01 15:52:58 [5948] Load 5 pattern from MP3 pcre
2008-04-01 15:52:58 [5948] Load 1 rules from c:/squid/etc/banlists/js/urls.cache
2008-04-01 15:52:58 [5948] Redirector start and working
2008-04-01 15:52:58 [5128] Waiting for make-cache finished
2008-04-01 15:52:58 [4200] Make-cache finished
2008-04-01 15:52:58 [5128] Make-cache finished detected, continue
2008-04-01 15:52:58 [5128] Load 658 rules from c:/squid/etc/banlists/banners/urls.cache
2008-04-01 15:52:58 [5128] Load 8 pattern from BANNER pcre
2008-04-01 15:52:58 [1664] Run make-cache
2008-04-01 15:52:58 [5128] Load 22283 rules from c:/squid/etc/banlists/porno/urls.cache
2008-04-01 15:52:58 [5128] Load 5 pattern from MP3 pcre
2008-04-01 15:52:58 [5128] Load 1 rules from c:/squid/etc/banlists/js/urls.cache
2008-04-01 15:52:58 [5128] Redirector start and working
2008-04-01 15:52:58 [1664] Make-cache finished
2008-04-01 15:52:58 [1664] Load 658 rules from c:/squid/etc/banlists/banners/urls.cache
2008-04-01 15:52:58 [1664] Load 8 pattern from BANNER pcre
2008-04-01 15:52:58 [1664] Load 22283 rules from c:/squid/etc/banlists/porno/urls.cache
2008-04-01 15:52:58 [1664] Load 5 pattern from MP3 pcre
2008-04-01 15:52:58 [1664] Load 1 rules from c:/squid/etc/banlists/js/urls.cache
2008-04-01 15:52:58 [1664] Redirector start and working
помогите пожалуйста чем могите заставить его работать.
спасибо.