Режик считывает два правила остальные игнорирует

Обсуждение программы редиректора
Ответить
Mr.Biglz
Сообщения: 13
Зарегистрирован: Пт мар 17, 2006 17:40
Контактная информация:

Режик считывает два правила остальные игнорирует

Сообщение Mr.Biglz »

Здравствуйте!
Возникла проблема после перехода с windows на linux
Под видой режик работал идеально не каких проблем, сейчас режик запускается ошибок нет но с конфигурационного файла считывает только два правила остальные игнорирует.
В логах нечего по этому поводу нет не ошибок не намеков уже несколько дней бьюсь над этим понять не могу что ему нужно.
Права к файлам все проверил все ок.
Пожалуйста помогите.

Конфиг

error_log /var/log/rejik3/redirector.err
change_log /var/log/rejik3/redirector.log
make-cache /usr/local/rejik3/make-cache

allow_ip f:/etc/squid/banlists/users
allow_urls /etc/squid/banlists/allowurls

<GAMES>
ban_dir /etc/squid/banlists/games
url http://192.168.3.100/rejik/games.html

<PORNO>
ban_dir /etc/squid/banlists/porno
url http://192.168.3.100/rejik/porno.html

<AudioVideo>
ban_dir /etc/squid/banlists/audiovideo
allow_ip f:/etc/squid/banlists/audiovideo/users
url http://192.168.3.100/rejik/audiovideo.html

<ICQ>
ban_dir /etc/squid/banlists/icq
allow_ip f:/etc/squid/banlists/icq/users
url http://192.168.3.100/rejik/raz.html

<CHAT>
ban_dir /etc/squid/banlists/chats
allow_ip f:/etc/squid/banlists/chats/users
url http://192.168.3.100/rejik/raz.html

<PROXY>
ban_dir /etc/squid/banlists/proxy
url http://192.168.3.100/rejik/raz.html

<CLOSED>
ban_dir /etc/squid/banlists/closed
work_ip f:/etc/squid/banlists/closed/users
url http://192.168.3.100/rejik/pornoclosed.html
reverse

<WAREZ>
ban_dir /etc/squid/banlists/warez
allow_ip f:/etc/squid/banlists/warez/users
url http://192.168.3.100/rejik/soft.html

<SPYWARE>
ban_dir /etc/squid/banlists/spyware
allow_ip f:/etc/squid/banlists/spyware/users
url http://192.168.3.100/rejik/soft.html

<VIRUS>
ban_dir /etc/squid/banlists/virus
url http://192.168.3.100/rejik/virus.html


Логи


2007-09-14 07:46:01 [24755] Run make-cache
2007-09-14 07:46:01 [24755] Make-cache finished
2007-09-14 07:46:01 [24755] Load 6 rules from /etc/squid/banlists/games/allow_urls.cache
2007-09-14 07:46:01 [24755] Load 0 pattern from GAMES pcre
2007-09-14 07:46:01 [24755] Load 0 pattern from PORNO pcre
2007-09-14 07:46:01 [24755] Load 2 rules from /etc/squid/banlists/closed/urls.cache
2007-09-14 07:46:01 [24755] Load 0 pattern from CLOSED pcre
2007-09-14 07:46:01 [24755] Redirector start and working
2007-09-14 07:46:01 [24756] Run make-cache
2007-09-14 07:46:01 [24756] Make-cache finished
2007-09-14 07:46:01 [24756] Load 6 rules from /etc/squid/banlists/games/allow_urls.cache
2007-09-14 07:46:01 [24756] Load 0 pattern from GAMES pcre
2007-09-14 07:46:01 [24756] Load 0 pattern from PORNO pcre
2007-09-14 07:46:01 [24756] Load 2 rules from /etc/squid/banlists/closed/urls.cache
2007-09-14 07:46:01 [24756] Load 0 pattern from CLOSED pcre
2007-09-14 07:46:01 [24756] Redirector start and working
2007-09-14 07:46:01 [24760] Run make-cache
2007-09-14 07:46:01 [24760] Make-cache finished
2007-09-14 07:46:01 [24760] Load 6 rules from /etc/squid/banlists/games/allow_urls.cache
2007-09-14 07:46:01 [24760] Load 0 pattern from GAMES pcre
2007-09-14 07:46:01 [24760] Load 0 pattern from PORNO pcre
2007-09-14 07:46:01 [24760] Load 2 rules from /etc/squid/banlists/closed/urls.cache
2007-09-14 07:46:01 [24760] Load 0 pattern from CLOSED pcre
2007-09-14 07:46:01 [24760] Redirector start and working
2007-09-14 07:46:01 [24758] Run make-cache
2007-09-14 07:46:01 [24758] Make-cache finished
2007-09-14 07:46:01 [24758] Load 6 rules from /etc/squid/banlists/games/allow_urls.cache
2007-09-14 07:46:01 [24758] Load 0 pattern from GAMES pcre
2007-09-14 07:46:01 [24758] Load 0 pattern from PORNO pcre
2007-09-14 07:46:01 [24758] Load 2 rules from /etc/squid/banlists/closed/urls.cache
2007-09-14 07:46:01 [24758] Load 0 pattern from CLOSED pcre
2007-09-14 07:46:01 [24758] Redirector start and working
2007-09-14 07:46:01 [24761] Run make-cache
2007-09-14 07:46:01 [24761] Make-cache finished
2007-09-14 07:46:01 [24761] Load 6 rules from /etc/squid/banlists/games/allow_urls.cache
2007-09-14 07:46:01 [24761] Load 0 pattern from GAMES pcre
2007-09-14 07:46:01 [24761] Load 0 pattern from PORNO pcre
2007-09-14 07:46:01 [24761] Load 2 rules from /etc/squid/banlists/closed/urls.cache
2007-09-14 07:46:01 [24761] Load 0 pattern from CLOSED pcre
2007-09-14 07:46:01 [24761] Redirector start and working
2007-09-14 07:46:01 [24766] Run make-cache
2007-09-14 07:46:01 [24766] Make-cache finished
2007-09-14 07:46:01 [24766] Load 6 rules from /etc/squid/banlists/games/allow_urls.cache
2007-09-14 07:46:01 [24766] Load 0 pattern from GAMES pcre
2007-09-14 07:46:01 [24766] Load 0 pattern from PORNO pcre
2007-09-14 07:46:01 [24766] Load 2 rules from /etc/squid/banlists/closed/urls.cache
2007-09-14 07:46:01 [24766] Load 0 pattern from CLOSED pcre
2007-09-14 07:46:01 [24766] Redirector start and working
2007-09-14 07:46:01 [24764] Run make-cache
2007-09-14 07:46:01 [24764] Make-cache finished
2007-09-14 07:46:01 [24764] Load 6 rules from /etc/squid/banlists/games/allow_urls.cache
2007-09-14 07:46:01 [24764] Load 0 pattern from GAMES pcre
2007-09-14 07:46:01 [24764] Load 0 pattern from PORNO pcre
2007-09-14 07:46:01 [24764] Load 2 rules from /etc/squid/banlists/closed/urls.cache
2007-09-14 07:46:01 [24764] Load 0 pattern from CLOSED pcre
2007-09-14 07:46:01 [24764] Redirector start and working
2007-09-14 07:46:01 [24770] Run make-cache
2007-09-14 07:46:01 [24770] Make-cache finished
2007-09-14 07:46:01 [24770] Load 6 rules from /etc/squid/banlists/games/allow_urls.cache
2007-09-14 07:46:01 [24770] Load 0 pattern from GAMES pcre
2007-09-14 07:46:01 [24770] Load 0 pattern from PORNO pcre
2007-09-14 07:46:01 [24770] Load 2 rules from /etc/squid/banlists/closed/urls.cache
2007-09-14 07:46:01 [24770] Load 0 pattern from CLOSED pcre
2007-09-14 07:46:01 [24770] Redirector start and working
2007-09-14 07:46:01 [24767] Run make-cache
2007-09-14 07:46:01 [24767] Make-cache finished
2007-09-14 07:46:01 [24767] Load 6 rules from /etc/squid/banlists/games/allow_urls.cache
2007-09-14 07:46:01 [24767] Load 0 pattern from GAMES pcre
2007-09-14 07:46:01 [24767] Load 0 pattern from PORNO pcre
2007-09-14 07:46:01 [24767] Load 2 rules from /etc/squid/banlists/closed/urls.cache
2007-09-14 07:46:01 [24767] Load 0 pattern from CLOSED pcre
2007-09-14 07:46:01 [24767] Redirector start and working
2007-09-14 07:46:01 [24771] Run make-cache
2007-09-14 07:46:01 [24771] Make-cache finished
2007-09-14 07:46:01 [24771] Load 6 rules from /etc/squid/banlists/games/allow_urls.cache
2007-09-14 07:46:01 [24771] Load 0 pattern from GAMES pcre
2007-09-14 07:46:01 [24771] Load 0 pattern from PORNO pcre
2007-09-14 07:46:01 [24771] Load 2 rules from /etc/squid/banlists/closed/urls.cache
2007-09-14 07:46:01 [24771] Load 0 pattern from CLOSED pcre
2007-09-14 07:46:01 [24771] Redirector start and working

Slava
Site Admin
Сообщения: 2251
Зарегистрирован: Пт апр 02, 2004 12:34
Контактная информация:

Сообщение Slava »

удалите *.cache файлы, удалите логи и сделайте check-redirecor.
Вновь созданный лог и ls -la /etc/squid/banlists/*

Mr.Biglz
Сообщения: 13
Зарегистрирован: Пт мар 17, 2006 17:40
Контактная информация:

Сообщение Mr.Biglz »

Сделал как вы сказали не помогло вот что в логах после cache-redirector:

2007-09-14 09:37:27 [28962] Run make-cache
2007-09-14 09:37:27 [28963] MAKE-CACHE: MAKE /etc/squid/banlists/closed/urls.cache
2007-09-14 09:37:27 [28963] MAKE-CACHE: Load 2 rules from /etc/squid/banlists/closed/urls
2007-09-14 09:37:27 [28963] MAKE-CACHE: MAKE /etc/squid/banlists/games/allow_urls.cache
2007-09-14 09:37:27 [28963] MAKE-CACHE: Load 6 rules from /etc/squid/banlists/allowurls
2007-09-14 09:37:27 [28962] Make-cache finished
2007-09-14 09:37:27 [28962] Load 6 rules from /etc/squid/banlists/games/allow_urls.cache
2007-09-14 09:37:27 [28962] Load 0 pattern from GAMES pcre
2007-09-14 09:37:27 [28962] Load 0 pattern from PORNO pcre
2007-09-14 09:37:27 [28962] Load 2 rules from /etc/squid/banlists/closed/urls.cache
2007-09-14 09:37:27 [28962] Load 0 pattern from CLOSED pcre
2007-09-14 09:37:27 [28962] Redirector start and working




-rw-rw---- 1 squid root 74 Р_Р_Р_ 20 09:08 /etc/squid/banlists/allowurls
-rw-rw---- 1 squid root 785 Р_Р_Р_ 30 14:33 /etc/squid/banlists/users

/etc/squid/banlists/audiovideo:
РёС'Р_Р_Р_ 16
drwxrw---- 2 squid root 4096 Р_Р_Р_ 11 13:37 .
drwxrw---- 14 squid root 4096 Р_Р_Р_ 30 14:33 ..
-rw-rw---- 1 squid root 242 Р_Р_Р_ 11 11:34 audio-video.pcre
-rw-rw---- 1 squid root 2830 Р_Р_Р_ 23 09:11 audio-video.urls
-rw-rw---- 1 squid root 0 Р_Р_Р_ 11 11:49 users

/etc/squid/banlists/banner:
РёС'Р_Р_Р_ 100
drwxrw---- 2 squid root 4096 Р_Р_Р_ 11 13:37 .
drwxrw---- 14 squid root 4096 Р_Р_Р_ 30 14:33 ..
-rw-rw---- 1 squid root 1761 Р_Р_Р_ 11 11:34 banner.pcre
-rw-rw---- 1 squid root 82078 Р_Р_Р_ 23 09:11 banner.urls

/etc/squid/banlists/chats:
РёС'Р_Р_Р_ 12
drwxrw---- 2 squid root 4096 Р_Р_Р_ 11 13:37 .
drwxrw---- 14 squid root 4096 Р_Р_Р_ 30 14:33 ..
-rw-rw---- 1 squid root 1799 Р_Р_Р_ 11 11:34 chats.urls
-rw-rw---- 1 squid root 0 Р_Р_Р_ 11 11:44 users

/etc/squid/banlists/closed:
РёС'Р_Р_Р_ 20
drwxrw---- 2 squid root 4096 РЎРчР_ 14 09:37 .
drwxrw---- 14 squid root 4096 Р_Р_Р_ 30 14:33 ..
-rw-rw---- 1 squid root 0 Р"РчРє 7 2005 pcre
-rw-rw---- 1 squid root 29 Р_Р_Р_ 30 15:12 urls
-rw-r--r-- 1 squid squid 51 РЎРчР_ 14 09:37 urls.cache
-rw-rw---- 1 squid root 43 Р_Р_Р_ 30 15:12 users

/etc/squid/banlists/games:
РёС'Р_Р_Р_ 32
drwxrw---- 2 squid root 4096 РЎРчР_ 14 09:37 .
drwxrw---- 14 squid root 4096 Р_Р_Р_ 30 14:33 ..
-rw-r--r-- 1 squid squid 116 РЎРчР_ 14 09:37 allow_urls.cache
-rw------- 1 squid squid 0 РЎРчР_ 14 09:37 lock.file
-rw-rw---- 1 squid root 16942 Р_Р_Р_ 11 11:34 online-games.urls
-rw-rw---- 1 squid root 0 Р_Р_Р_ 30 15:01 pcre

/etc/squid/banlists/icq:
РёС'Р_Р_Р_ 20
drwxrw---- 2 squid root 4096 Р_Р_Р_ 31 11:49 .
drwxrw---- 14 squid root 4096 Р_Р_Р_ 30 14:33 ..
-rw-rw---- 1 squid root 84 Р_Р_Р_ 11 11:34 icq.pcre
-rw-rw---- 1 squid root 1340 Р_Р_Р_ 11 11:34 icq.urls
-rw-rw---- 1 squid root 866 Р_Р_Р_ 31 11:49 users

/etc/squid/banlists/mail:
РёС'Р_Р_Р_ 24
drwxrw---- 2 squid root 4096 Р_Р_Р_ 11 13:37 .
drwxrw---- 14 squid root 4096 Р_Р_Р_ 30 14:33 ..
-rw-rw---- 1 squid root 0 Р_Р_Р_ 11 11:44 users
-rw-rw---- 1 squid root 15324 Р_Р_Р_ 11 11:34 web-mail.urls

/etc/squid/banlists/porno:
РёС'Р_Р_Р_ 2444
drwxrw---- 2 squid root 4096 РЎРчР_ 13 14:45 .
drwxrw---- 14 squid root 4096 Р_Р_Р_ 30 14:33 ..
-rw-r--r-- 1 root root 0 РЎРчР_ 13 14:45 pcre
-rw-rw---- 1 squid root 2486945 Р_Р_Р_ 30 14:35 porno.urls

/etc/squid/banlists/proxy:
РёС'Р_Р_Р_ 16
drwxrw---- 2 squid root 4096 Р_Р_Р_ 11 13:37 .
drwxrw---- 14 squid root 4096 Р_Р_Р_ 30 14:33 ..
-rw-rw---- 1 squid root 4153 Р_Р_Р_ 23 09:11 web-proxy.urls

/etc/squid/banlists/spyware:
РёС'Р_Р_Р_ 16
drwxrw---- 2 squid root 4096 Р_Р_Р_ 23 13:34 .
drwxrw---- 14 squid root 4096 Р_Р_Р_ 30 14:33 ..
-rw-rw---- 1 squid root 7148 Р_Р_Р_ 23 13:34 spyware.urls
-rw-rw---- 1 squid root 0 Р_Р_Р_ 11 11:56 users

/etc/squid/banlists/virus:
РёС'Р_Р_Р_ 16
drwxrw---- 2 squid root 4096 Р_Р_Р_ 11 13:37 .
drwxrw---- 14 squid root 4096 Р_Р_Р_ 30 14:33 ..
-rw-rw---- 1 squid root 8054 Р_Р_Р_ 23 09:11 virus-detect.urls

/etc/squid/banlists/warez:
РёС'Р_Р_Р_ 12
drwxrw---- 2 squid root 4096 Р_Р_Р_ 11 13:37 .
drwxrw---- 14 squid root 4096 Р_Р_Р_ 30 14:33 ..
-rw-rw---- 1 squid root 0 Р_Р_Р_ 11 11:56 users
-rw-rw---- 1 squid root 1997 Р_Р_Р_ 11 11:34 warez.urls

Slava
Site Admin
Сообщения: 2251
Зарегистрирован: Пт апр 02, 2004 12:34
Контактная информация:

Сообщение Slava »

Режик не видит файлы вида pormo.urls и porno.pcre, а видит только urls и pcre.
Переименуйте файлы и все заработает, как в секции closed, которая работает сейчас.

Mr.Biglz
Сообщения: 13
Зарегистрирован: Пт мар 17, 2006 17:40
Контактная информация:

Сообщение Mr.Biglz »

Спасибо! все заработало!

Ответить