странное поведение режика
Добавлено: Ср окт 08, 2008 18:55
система - fedora9, squid 3.0
Поставил последнюю версию режика
скачал DBL листы полную версию, пропарсил, разложил по папкам в том виде в котором он их создал
в squid.conf прописал требуемую строку, задал 10 чилдренов
поправил конфиг режика
запускаю, squid работает, а режик нет
redirector.err
2008-10-09 17:17:10 [12086] Run make-cache
2008-10-09 17:17:10 [12086] Make-cache finished
2008-10-09 17:17:10 [12086] Load 5 pattern from MP3 pcre
2008-10-09 17:17:10 [12086] Load 1 rules from /usr/local/rejik3/banlists/js/urls.cache
2008-10-09 17:17:10 [12086] Redirector start and working
2008-10-09 17:17:10 [12085] Run make-cache
2008-10-09 17:17:10 [12085] Make-cache finished
2008-10-09 17:17:10 [12085] Load 5 pattern from MP3 pcre
2008-10-09 17:17:10 [12085] Load 1 rules from /usr/local/rejik3/banlists/js/urls.cache
2008-10-09 17:17:10 [12085] Redirector start and working
2008-10-09 17:17:10 [12088] Run make-cache
2008-10-09 17:17:10 [12088] Make-cache finished
2008-10-09 17:17:10 [12088] Load 5 pattern from MP3 pcre
2008-10-09 17:17:10 [12088] Load 1 rules from /usr/local/rejik3/banlists/js/urls.cache
2008-10-09 17:17:10 [12088] Redirector start and working
2008-10-09 17:17:10 [12091] Run make-cache
2008-10-09 17:17:10 [12091] Make-cache finished
2008-10-09 17:17:10 [12091] Load 5 pattern from MP3 pcre
2008-10-09 17:17:10 [12091] Load 1 rules from /usr/local/rejik3/banlists/js/urls.cache
2008-10-09 17:17:10 [12091] Redirector start and working
2008-10-09 17:17:10 [12092] Run make-cache
2008-10-09 17:17:10 [12092] Make-cache finished
2008-10-09 17:17:10 [12092] Load 5 pattern from MP3 pcre
2008-10-09 17:17:10 [12092] Load 1 rules from /usr/local/rejik3/banlists/js/urls.cache
2008-10-09 17:17:10 [12092] Redirector start and working
2008-10-09 17:17:10 [12094] Run make-cache
2008-10-09 17:17:10 [12094] Make-cache finished
2008-10-09 17:17:10 [12094] Load 5 pattern from MP3 pcre
2008-10-09 17:17:10 [12094] Load 1 rules from /usr/local/rejik3/banlists/js/urls.cache
2008-10-09 17:17:10 [12094] Redirector start and working
2008-10-09 17:17:10 [12096] Run make-cache
2008-10-09 17:17:10 [12096] Make-cache finished
2008-10-09 17:17:10 [12096] Load 5 pattern from MP3 pcre
2008-10-09 17:17:10 [12096] Load 1 rules from /usr/local/rejik3/banlists/js/urls.cache
2008-10-09 17:17:10 [12096] Redirector start and working
2008-10-09 17:17:10 [12098] Run make-cache
2008-10-09 17:17:10 [12098] Make-cache finished
2008-10-09 17:17:10 [12098] Load 5 pattern from MP3 pcre
2008-10-09 17:17:10 [12098] Load 1 rules from /usr/local/rejik3/banlists/js/urls.cache
2008-10-09 17:17:10 [12098] Redirector start and working
2008-10-09 17:17:10 [12100] Run make-cache
2008-10-09 17:17:10 [12100] Make-cache finished
2008-10-09 17:17:10 [12100] Load 5 pattern from MP3 pcre
2008-10-09 17:17:10 [12100] Load 1 rules from /usr/local/rejik3/banlists/js/urls.cache
2008-10-09 17:17:10 [12100] Redirector start and working
2008-10-09 17:17:11 [12102] Run make-cache
2008-10-09 17:17:11 [12102] Make-cache finished
2008-10-09 17:17:11 [12102] Load 5 pattern from MP3 pcre
2008-10-09 17:17:11 [12102] Load 1 rules from /usr/local/rejik3/banlists/js/urls.cache
2008-10-09 17:17:11 [12102] Redirector start and working
2008-10-09 17:17:11 [12104] Run make-cache
2008-10-09 17:17:11 [12104] Make-cache finished
вопрос: почему он обрабатывает только одну папку???
дальше redirector.conf
error_log /usr/local/rejik3/redirector.err
change_log /usr/local/rejik3/redirector.log
make-cache /usr/local/rejik3/make-cache
###Global setup
work_ip 192.168.1.0/255.255.255.0
#allow_urls /usr/local/rejik3/banlists/allow_urls
<BANNER>
ban_dir /usr/local/rejik3/banlists/banners
url http://mskgw.masterlock.ru/1x1.gif
work_ip 192.168.1.0/255.255.255.0
#log off
<PORNO>
ban_dir /usr/local/rejik3/banlists/porno
url http://mskgw.masterlock.ru/porno.html
work_ip 192.168.1.0/255.255.255.0
<MP3>
ban_dir /usr/local/rejik3/banlists/mp3
url http://mskgw.masterlock.ru/mp3.html
work_ip 192.168.1.0/255.255.255.0
<JS>
ban_dir /usr/local/rejik3/banlists/js
url http://mskgw.masterlock.ru/js.js
work_ip 192.168.1.0/255.255.255.0
#log off
<AUDIO-VIDEO>
ban_dir /usr/local/rejik3/banlists/audio-video
url http://mskgw.masterlock.ru/mp3.html
work_ip 192.168.1.0/255.255.255.0
<CHATS>
ban_dir /usr/local/rejik3/banlists/chats
url http://mskgw.masterlock.ru/mp3.html
work_ip 192.168.1.0/255.255.255.0
<DATING>
ban_dir /usr/local/rejik3/banlists/dating
url http://mskgw.masterlock.ru/mp3.html
work_ip 192.168.1.0/255.255.255.0
<GAMES>
ban_dir /usr/local/rejik3/banlists/games
url http://mskgw.masterlock.ru/mp3.html
work_ip 192.168.1.0/255.255.255.0
<PHISHING>
ban_dir /usr/local/rejik3/banlists/phishing
url http://mskgw.masterlock.ru/mp3.html
work_ip 192.168.1.0/255.255.255.0
<PHOTO>
ban_dir /usr/local/rejik3/banlists/photo
url http://mskgw.masterlock.ru/mp3.html
work_ip 192.168.1.0/255.255.255.0
<SPYWARE>
ban_dir /usr/local/rejik3/banlists/spyware
url http://mskgw.masterlock.ru/mp3.html
work_ip 192.168.1.0/255.255.255.0
<VIRUS>
ban_dir /usr/local/rejik3/banlists/virus
url http://mskgw.masterlock.ru/mp3.html
work_ip 192.168.1.0/255.255.255.0
<WAREZ>
ban_dir /usr/local/rejik3/banlists/warez
url http://mskgw.masterlock.ru/mp3.html
work_ip 192.168.1.0/255.255.255.0
<PROXY>
ban_dir /usr/local/rejik3/banlists/proxy
url http://mskgw.masterlock.ru/mp3.html
work_ip 192.168.1.0/255.255.255.0
#<MAIL>
#ban_dir /usr/local/rejik3/banlists/mail
#url http://mskgw.masterlock.ru/mp3.html
в соответствии с конфигом были разложены и бан-листы
беру любой урл из бан-листа, вбиваю в браузер - пропускает на страницу - не редиректит, хотя все файлы-подмен доступны
один раз только в redirector.log написал строчку
2008-10-09 17:40:01 MP3: 192.168.1.53 - http://beon.ru/i/xspf_player_slim.swf?s ... oload=true (pcre rule#: 2)
проверяю лог squid - все нормально
2008/10/09 18:33:25| Starting Squid Cache version 3.0.STABLE7 for i386-redhat-linux-gnu...
2008/10/09 18:33:25| Process ID 12740
2008/10/09 18:33:25| With 1024 file descriptors available
2008/10/09 18:33:25| DNS Socket created at 0.0.0.0, port 57567, FD 9
2008/10/09 18:33:25| Adding nameserver 192.168.1.98 from squid.conf
2008/10/09 18:33:25| helperOpenServers: Starting 10 'redirector' processes
2008/10/09 18:33:25| User-Agent logging is disabled.
2008/10/09 18:33:25| Referer logging is disabled.
2008/10/09 18:33:26| Unlinkd pipe opened on FD 24
2008/10/09 18:33:26| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec
2008/10/09 18:33:26| Swap maxSize 102400 KB, estimated 7876 objects
2008/10/09 18:33:26| Target number of buckets: 393
2008/10/09 18:33:26| Using 8192 Store buckets
2008/10/09 18:33:26| Max Mem size: 8192 KB
2008/10/09 18:33:26| Max Swap size: 102400 KB
2008/10/09 18:33:26| Version 1 of swap file with LFS support detected...
2008/10/09 18:33:26| Rebuilding storage in /var/spool/squid (CLEAN)
2008/10/09 18:33:26| Using Least Load store dir selection
2008/10/09 18:33:26| Set Current Directory to /var/spool/squid
2008/10/09 18:33:26| Loaded Icons.
2008/10/09 18:33:26| Accepting HTTP connections at 0.0.0.0, port 3128, FD 26.
2008/10/09 18:33:26| Accepting ICP messages at 0.0.0.0, port 3130, FD 27.
2008/10/09 18:33:26| HTCP Disabled.
2008/10/09 18:33:26| Ready to serve requests.
2008/10/09 18:33:26| Store rebuilding is 65.94% complete
2008/10/09 18:33:27| Done reading /var/spool/squid swaplog (6211 entries)
2008/10/09 18:33:27| Finished rebuilding storage from disk.
2008/10/09 18:33:27| 6211 Entries scanned
2008/10/09 18:33:27| 0 Invalid entries.
2008/10/09 18:33:27| 0 With invalid flags.
2008/10/09 18:33:27| 6211 Objects loaded.
2008/10/09 18:33:27| 0 Objects expired.
2008/10/09 18:33:27| 0 Objects cancelled.
2008/10/09 18:33:27| 0 Duplicate URLs purged.
2008/10/09 18:33:27| 0 Swapfile clashes avoided.
2008/10/09 18:33:27| Took 1.01 seconds (6174.83 objects/sec).
2008/10/09 18:33:27| Beginning Validation Procedure
2008/10/09 18:33:27| Completed Validation Procedure
2008/10/09 18:33:27| Validated 12445 Entries
2008/10/09 18:33:27| store_swap_size = 92116
2008/10/09 18:33:27| storeLateRelease: released 0 objects
что делаю не так, может что-то недоустановил, недонастроил, где копать??? Помогите плиз! Очень срочно надо!
###
Сорри всем! Ошибка нашлась!
Надо было переименовывать бан-листы из banner.urls в urls и т.д.
Поставил последнюю версию режика
скачал DBL листы полную версию, пропарсил, разложил по папкам в том виде в котором он их создал
в squid.conf прописал требуемую строку, задал 10 чилдренов
поправил конфиг режика
запускаю, squid работает, а режик нет
redirector.err
2008-10-09 17:17:10 [12086] Run make-cache
2008-10-09 17:17:10 [12086] Make-cache finished
2008-10-09 17:17:10 [12086] Load 5 pattern from MP3 pcre
2008-10-09 17:17:10 [12086] Load 1 rules from /usr/local/rejik3/banlists/js/urls.cache
2008-10-09 17:17:10 [12086] Redirector start and working
2008-10-09 17:17:10 [12085] Run make-cache
2008-10-09 17:17:10 [12085] Make-cache finished
2008-10-09 17:17:10 [12085] Load 5 pattern from MP3 pcre
2008-10-09 17:17:10 [12085] Load 1 rules from /usr/local/rejik3/banlists/js/urls.cache
2008-10-09 17:17:10 [12085] Redirector start and working
2008-10-09 17:17:10 [12088] Run make-cache
2008-10-09 17:17:10 [12088] Make-cache finished
2008-10-09 17:17:10 [12088] Load 5 pattern from MP3 pcre
2008-10-09 17:17:10 [12088] Load 1 rules from /usr/local/rejik3/banlists/js/urls.cache
2008-10-09 17:17:10 [12088] Redirector start and working
2008-10-09 17:17:10 [12091] Run make-cache
2008-10-09 17:17:10 [12091] Make-cache finished
2008-10-09 17:17:10 [12091] Load 5 pattern from MP3 pcre
2008-10-09 17:17:10 [12091] Load 1 rules from /usr/local/rejik3/banlists/js/urls.cache
2008-10-09 17:17:10 [12091] Redirector start and working
2008-10-09 17:17:10 [12092] Run make-cache
2008-10-09 17:17:10 [12092] Make-cache finished
2008-10-09 17:17:10 [12092] Load 5 pattern from MP3 pcre
2008-10-09 17:17:10 [12092] Load 1 rules from /usr/local/rejik3/banlists/js/urls.cache
2008-10-09 17:17:10 [12092] Redirector start and working
2008-10-09 17:17:10 [12094] Run make-cache
2008-10-09 17:17:10 [12094] Make-cache finished
2008-10-09 17:17:10 [12094] Load 5 pattern from MP3 pcre
2008-10-09 17:17:10 [12094] Load 1 rules from /usr/local/rejik3/banlists/js/urls.cache
2008-10-09 17:17:10 [12094] Redirector start and working
2008-10-09 17:17:10 [12096] Run make-cache
2008-10-09 17:17:10 [12096] Make-cache finished
2008-10-09 17:17:10 [12096] Load 5 pattern from MP3 pcre
2008-10-09 17:17:10 [12096] Load 1 rules from /usr/local/rejik3/banlists/js/urls.cache
2008-10-09 17:17:10 [12096] Redirector start and working
2008-10-09 17:17:10 [12098] Run make-cache
2008-10-09 17:17:10 [12098] Make-cache finished
2008-10-09 17:17:10 [12098] Load 5 pattern from MP3 pcre
2008-10-09 17:17:10 [12098] Load 1 rules from /usr/local/rejik3/banlists/js/urls.cache
2008-10-09 17:17:10 [12098] Redirector start and working
2008-10-09 17:17:10 [12100] Run make-cache
2008-10-09 17:17:10 [12100] Make-cache finished
2008-10-09 17:17:10 [12100] Load 5 pattern from MP3 pcre
2008-10-09 17:17:10 [12100] Load 1 rules from /usr/local/rejik3/banlists/js/urls.cache
2008-10-09 17:17:10 [12100] Redirector start and working
2008-10-09 17:17:11 [12102] Run make-cache
2008-10-09 17:17:11 [12102] Make-cache finished
2008-10-09 17:17:11 [12102] Load 5 pattern from MP3 pcre
2008-10-09 17:17:11 [12102] Load 1 rules from /usr/local/rejik3/banlists/js/urls.cache
2008-10-09 17:17:11 [12102] Redirector start and working
2008-10-09 17:17:11 [12104] Run make-cache
2008-10-09 17:17:11 [12104] Make-cache finished
вопрос: почему он обрабатывает только одну папку???
дальше redirector.conf
error_log /usr/local/rejik3/redirector.err
change_log /usr/local/rejik3/redirector.log
make-cache /usr/local/rejik3/make-cache
###Global setup
work_ip 192.168.1.0/255.255.255.0
#allow_urls /usr/local/rejik3/banlists/allow_urls
<BANNER>
ban_dir /usr/local/rejik3/banlists/banners
url http://mskgw.masterlock.ru/1x1.gif
work_ip 192.168.1.0/255.255.255.0
#log off
<PORNO>
ban_dir /usr/local/rejik3/banlists/porno
url http://mskgw.masterlock.ru/porno.html
work_ip 192.168.1.0/255.255.255.0
<MP3>
ban_dir /usr/local/rejik3/banlists/mp3
url http://mskgw.masterlock.ru/mp3.html
work_ip 192.168.1.0/255.255.255.0
<JS>
ban_dir /usr/local/rejik3/banlists/js
url http://mskgw.masterlock.ru/js.js
work_ip 192.168.1.0/255.255.255.0
#log off
<AUDIO-VIDEO>
ban_dir /usr/local/rejik3/banlists/audio-video
url http://mskgw.masterlock.ru/mp3.html
work_ip 192.168.1.0/255.255.255.0
<CHATS>
ban_dir /usr/local/rejik3/banlists/chats
url http://mskgw.masterlock.ru/mp3.html
work_ip 192.168.1.0/255.255.255.0
<DATING>
ban_dir /usr/local/rejik3/banlists/dating
url http://mskgw.masterlock.ru/mp3.html
work_ip 192.168.1.0/255.255.255.0
<GAMES>
ban_dir /usr/local/rejik3/banlists/games
url http://mskgw.masterlock.ru/mp3.html
work_ip 192.168.1.0/255.255.255.0
<PHISHING>
ban_dir /usr/local/rejik3/banlists/phishing
url http://mskgw.masterlock.ru/mp3.html
work_ip 192.168.1.0/255.255.255.0
<PHOTO>
ban_dir /usr/local/rejik3/banlists/photo
url http://mskgw.masterlock.ru/mp3.html
work_ip 192.168.1.0/255.255.255.0
<SPYWARE>
ban_dir /usr/local/rejik3/banlists/spyware
url http://mskgw.masterlock.ru/mp3.html
work_ip 192.168.1.0/255.255.255.0
<VIRUS>
ban_dir /usr/local/rejik3/banlists/virus
url http://mskgw.masterlock.ru/mp3.html
work_ip 192.168.1.0/255.255.255.0
<WAREZ>
ban_dir /usr/local/rejik3/banlists/warez
url http://mskgw.masterlock.ru/mp3.html
work_ip 192.168.1.0/255.255.255.0
<PROXY>
ban_dir /usr/local/rejik3/banlists/proxy
url http://mskgw.masterlock.ru/mp3.html
work_ip 192.168.1.0/255.255.255.0
#<MAIL>
#ban_dir /usr/local/rejik3/banlists/mail
#url http://mskgw.masterlock.ru/mp3.html
в соответствии с конфигом были разложены и бан-листы
беру любой урл из бан-листа, вбиваю в браузер - пропускает на страницу - не редиректит, хотя все файлы-подмен доступны
один раз только в redirector.log написал строчку
2008-10-09 17:40:01 MP3: 192.168.1.53 - http://beon.ru/i/xspf_player_slim.swf?s ... oload=true (pcre rule#: 2)
проверяю лог squid - все нормально
2008/10/09 18:33:25| Starting Squid Cache version 3.0.STABLE7 for i386-redhat-linux-gnu...
2008/10/09 18:33:25| Process ID 12740
2008/10/09 18:33:25| With 1024 file descriptors available
2008/10/09 18:33:25| DNS Socket created at 0.0.0.0, port 57567, FD 9
2008/10/09 18:33:25| Adding nameserver 192.168.1.98 from squid.conf
2008/10/09 18:33:25| helperOpenServers: Starting 10 'redirector' processes
2008/10/09 18:33:25| User-Agent logging is disabled.
2008/10/09 18:33:25| Referer logging is disabled.
2008/10/09 18:33:26| Unlinkd pipe opened on FD 24
2008/10/09 18:33:26| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec
2008/10/09 18:33:26| Swap maxSize 102400 KB, estimated 7876 objects
2008/10/09 18:33:26| Target number of buckets: 393
2008/10/09 18:33:26| Using 8192 Store buckets
2008/10/09 18:33:26| Max Mem size: 8192 KB
2008/10/09 18:33:26| Max Swap size: 102400 KB
2008/10/09 18:33:26| Version 1 of swap file with LFS support detected...
2008/10/09 18:33:26| Rebuilding storage in /var/spool/squid (CLEAN)
2008/10/09 18:33:26| Using Least Load store dir selection
2008/10/09 18:33:26| Set Current Directory to /var/spool/squid
2008/10/09 18:33:26| Loaded Icons.
2008/10/09 18:33:26| Accepting HTTP connections at 0.0.0.0, port 3128, FD 26.
2008/10/09 18:33:26| Accepting ICP messages at 0.0.0.0, port 3130, FD 27.
2008/10/09 18:33:26| HTCP Disabled.
2008/10/09 18:33:26| Ready to serve requests.
2008/10/09 18:33:26| Store rebuilding is 65.94% complete
2008/10/09 18:33:27| Done reading /var/spool/squid swaplog (6211 entries)
2008/10/09 18:33:27| Finished rebuilding storage from disk.
2008/10/09 18:33:27| 6211 Entries scanned
2008/10/09 18:33:27| 0 Invalid entries.
2008/10/09 18:33:27| 0 With invalid flags.
2008/10/09 18:33:27| 6211 Objects loaded.
2008/10/09 18:33:27| 0 Objects expired.
2008/10/09 18:33:27| 0 Objects cancelled.
2008/10/09 18:33:27| 0 Duplicate URLs purged.
2008/10/09 18:33:27| 0 Swapfile clashes avoided.
2008/10/09 18:33:27| Took 1.01 seconds (6174.83 objects/sec).
2008/10/09 18:33:27| Beginning Validation Procedure
2008/10/09 18:33:27| Completed Validation Procedure
2008/10/09 18:33:27| Validated 12445 Entries
2008/10/09 18:33:27| store_swap_size = 92116
2008/10/09 18:33:27| storeLateRelease: released 0 objects
что делаю не так, может что-то недоустановил, недонастроил, где копать??? Помогите плиз! Очень срочно надо!
###
Сорри всем! Ошибка нашлась!
Надо было переименовывать бан-листы из banner.urls в urls и т.д.