не работает режик
Re: не работает режик
покажите конфиг режика и проверьте права на создание лог файлов, прописанных в конфиге режика.
Re: не работает режик
так же с порно. попробовал зайти на сайт из списка порно сайтов, открылся
Re: не работает режик
вот права на redirector.conf
-rw-r--r-- 1 squid squid 3273 Июл 27 16:39 redirector.conf
вот его содержимое
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/banners
url http://127.0.0.1/block/www/1x1.gif
#log off
<PORNO>
ban_dir /usr/local/rejik3/banlists/porno/porno
url http://127.0.0.1/block/www/porno.html
<MP3>
ban_dir /usr/local/rejik3/banlists/mp3/mp3
url http://127.0.0.1/block/www/mp3.html
<JS>
ban_dir /usr/local/rejik3/banlists/js/js
url http://127.0.0.1/block/www/js.js
вот права на папку
drwxrwx--- 4 squid squid 4096 Июл 27 16:47 rejik3
-rw-r--r-- 1 squid squid 3273 Июл 27 16:39 redirector.conf
вот его содержимое
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/banners
url http://127.0.0.1/block/www/1x1.gif
#log off
<PORNO>
ban_dir /usr/local/rejik3/banlists/porno/porno
url http://127.0.0.1/block/www/porno.html
<MP3>
ban_dir /usr/local/rejik3/banlists/mp3/mp3
url http://127.0.0.1/block/www/mp3.html
<JS>
ban_dir /usr/local/rejik3/banlists/js/js
url http://127.0.0.1/block/www/js.js
вот права на папку
drwxrwx--- 4 squid squid 4096 Июл 27 16:47 rejik3
Re: не работает режик
Почему у Вас двойные папки, например mp3/mp3 ?
Запустите check-redirector, появятся ли логи режика и если да, то покажите их.
Запустите check-redirector, появятся ли логи режика и если да, то покажите их.
Re: не работает режик
насчет двойных папок, так я скопировал ))
при запуске check-redirector выдал
ERROR: Can't write to file /usr/local/rejik3/redirector.err: Permission denied
странно, почему у меня же на папку rejik3 права есть на запись и владелиц squid
drwxrwx--- 4 squid squid 4096 Июл 27 16:47 rejik3
при запуске check-redirector выдал
ERROR: Can't write to file /usr/local/rejik3/redirector.err: Permission denied
странно, почему у меня же на папку rejik3 права есть на запись и владелиц squid
drwxrwx--- 4 squid squid 4096 Июл 27 16:47 rejik3
Re: не работает режик
счас зашел под учеткой squid и создал файлик в деректории rejik3
значит при запуске check-redirector лог ошибок создается не под сквидом
значит при запуске check-redirector лог ошибок создается не под сквидом
Re: не работает режик
1. покажите check-redirector
2. cat squid.conf|grep cache_effective_use
2. cat squid.conf|grep cache_effective_use
Re: не работает режик
check-redirector я же написал что выдает ERROR: Can't write to file /usr/local/rejik3/redirector.err: Permission denied
[root@gateway ~]# cat /etc/squid/squid.conf|grep cache_effective_use
# TAG: cache_effective_user
# to UID to "squid". If you define cache_effective_user, but not
# cache_effective_user.
#cache_effective_user squid
cache_effective_user squid
[root@gateway ~]# cat /etc/squid/squid.conf|grep cache_effective_use
# TAG: cache_effective_user
# to UID to "squid". If you define cache_effective_user, but not
# cache_effective_user.
#cache_effective_user squid
cache_effective_user squid
Re: не работает режик
покажите содержимое check-redirectorfate писал(а):check-redirector я же написал что выдает ERROR: Can't write to file /usr/local/rejik3/redirector.err: Permission denied
Re: не работает режик
Извини не так понял
вот:
su squid -c "echo \"http://sex.ru 127.0.0.1/- - GET\" | /usr/local/rejik3/redirector /usr/local/rejik3/redirector.conf;"
вот:
su squid -c "echo \"http://sex.ru 127.0.0.1/- - GET\" | /usr/local/rejik3/redirector /usr/local/rejik3/redirector.conf;"
Re: не работает режик
1. Перейдите под пользователя сквида (su - squid), если нет шела, пропишите его при помощи vipw.
2. echo test >/usr/local/rejik3/redirector.err
2. echo test >/usr/local/rejik3/redirector.err
Re: не работает режик
черт знает что
echo test >/usr/local/rejik3/redirector.err не создался
touch: невозможно выполнить touch для `/usr/local/rejik3/redirector.err': Отказано в доступе
bash-3.2$ touch /usr/local/rejik3/redir.err зато так создается, почему-то именно redirector.err не может создать
echo test >/usr/local/rejik3/redirector.err не создался
touch: невозможно выполнить touch для `/usr/local/rejik3/redirector.err': Отказано в доступе
bash-3.2$ touch /usr/local/rejik3/redir.err зато так создается, почему-то именно redirector.err не может создать
Re: не работает режик
может быть там уже есть файл с какими либо правами, которые не позволяют создать файл или в него писать?
возможно висит запущенный процесс режика, который не даёт создать этот файл?
возможно висит запущенный процесс режика, который не даёт создать этот файл?
Re: не работает режик
фиг знает что сделал но redirector.err создался
вот его содержание
2010-07-27 16:55:33 [3675] MAKE-CACHE: delete dublicate rule: smi.ru/cgi-bin/banner in BANNER section
2010-07-27 16:55:33 [3675] MAKE-CACHE: delete rule: bannerbank.ru:8080 because exist rule: bannerbank.ru
2010-07-27 16:55:33 [3675] MAKE-CACHE: delete rule: counter.yadro.ru because exist rule: yadro.ru
2010-07-27 16:55:33 [3675] MAKE-CACHE: MAKE /usr/local/rejik3/banlists/porno/porno/urls.cache
2010-07-27 16:55:33 [3675] MAKE-CACHE: Load 22918 rules from /usr/local/rejik3/banlists/porno/porno/urls
2010-07-27 16:55:33 [3675] MAKE-CACHE: delete dublicate rule: bdsmbeholder.com in PORNO section
2010-07-27 16:55:33 [3675] MAKE-CACHE: delete dublicate rule: lesbian-post.com in PORNO section
2010-07-27 16:55:33 [3675] MAKE-CACHE: delete rule: age.bedclip.com because exist rule: bedclip.com
2010-07-27 16:55:33 [3675] MAKE-CACHE: delete rule: spunker.bigfast.net because exist rule: bigfast.net
2010-07-27 16:55:33 [3675] MAKE-CACHE: delete rule: andympegs.coolfreehost.com because exist rule: coolfreehost.com
2010-07-27 16:55:33 [3675] MAKE-CACHE: delete rule: sexseries.coolfreehost.com because exist rule: coolfreehost.com
2010-07-27 16:55:33 [3675] MAKE-CACHE: delete rule: websex.coolfreehost.com because exist rule: coolfreehost.com
2010-07-27 16:55:33 [3675] MAKE-CACHE: delete rule: hotmature.coolxxxhost.com because exist rule: coolxxxhost.com
2010-07-27 16:55:33 [3675] MAKE-CACHE: delete rule: playboy.fason.ru because exist rule: fason.ru
2010-07-27 16:55:33 [3675] MAKE-CACHE: delete rule: teens.groupsexaction.com because exist rule: groupsexaction.com
2010-07-27 16:55:33 [3675] MAKE-CACHE: delete rule: xbs.mtree.com because exist rule: mtree.com
2010-07-27 16:55:33 [3675] MAKE-CACHE: delete rule: hot.netporn.com because exist rule: netporn.com
2010-07-27 16:55:33 [3675] MAKE-CACHE: delete rule: autotgp.nexgenfreehosting.com because exist rule: nexgenfreehosting.com
2010-07-27 16:55:33 [3675] MAKE-CACHE: delete rule: lixxx.nexgenfreehosting.com because exist rule: nexgenfreehosting.com
2010-07-27 16:55:33 [3675] MAKE-CACHE: delete rule: teenpix.nexgenfreehosting.com because exist rule: nexgenfreehosting.com
2010-07-27 16:55:33 [3675] MAKE-CACHE: delete rule: teens.nexgenfreehosting.com because exist rule: nexgenfreehosting.com
2010-07-27 16:55:33 [3675] MAKE-CACHE: delete rule: titeteens.nexgenfreehosting.com because exist rule: nexgenfreehosting.com
2010-07-27 16:55:33 [3675] MAKE-CACHE: delete rule: bnrs.porntops.com because exist rule: porntops.com
2010-07-27 16:55:33 [3675] MAKE-CACHE: delete rule: adultmovienetwork.primenetwork.net because exist rule: primenetwork.net
2010-07-27 16:55:33 [3675] MAKE-CACHE: delete rule: x.rxxx.org because exist rule: rxxx.org
2010-07-27 16:55:33 [3675] MAKE-CACHE: delete rule: terra.es/personal7 because exist rule: terra.es
2010-07-27 16:55:33 [3675] MAKE-CACHE: delete rule: maturewomen.thexxxsex.com because exist rule: thexxxsex.com
2010-07-27 16:55:33 [3675] MAKE-CACHE: delete rule: girls.twistys.net because exist rule: twistys.net
2010-07-27 16:55:33 [3675] MAKE-CACHE: MAKE /usr/local/rejik3/banlists/js/js/urls.cache
2010-07-27 16:55:33 [3675] MAKE-CACHE: Load 1 rules from /usr/local/rejik3/banlists/js/js/urls
2010-07-27 16:55:33 [3674] Make-cache finished
2010-07-27 16:55:33 [3674] Load 661 rules from /usr/local/rejik3/banlists/banners/banners/urls.cache
2010-07-27 16:55:33 [3674] Load 8 pattern from BANNER pcre
2010-07-27 16:55:33 [3674] Load 22283 rules from /usr/local/rejik3/banlists/porno/porno/urls.cache
2010-07-27 16:55:33 [3674] Load 5 pattern from MP3 pcre
2010-07-27 16:55:33 [3674] Load 1 rules from /usr/local/rejik3/banlists/js/js/urls.cache
2010-07-27 16:55:33 [3674] Redirector start and working (3.2.
2010-07-27 16:55:56 [3678] Run make-cache (3.2.
2010-07-27 16:55:56 [3678] Make-cache finished
2010-07-27 16:55:56 [3678] Load 661 rules from /usr/local/rejik3/banlists/banners/banners/urls.cache
2010-07-27 16:55:56 [3678] Load 8 pattern from BANNER pcre
2010-07-27 16:55:56 [3678] Load 22283 rules from /usr/local/rejik3/banlists/porno/porno/urls.cache
2010-07-27 16:55:56 [3678] Load 5 pattern from MP3 pcre
2010-07-27 16:55:56 [3678] Load 1 rules from /usr/local/rejik3/banlists/js/js/urls.cache
2010-07-27 16:55:56 [3678] Redirector start and working (3.2.
вот его содержание
2010-07-27 16:55:33 [3675] MAKE-CACHE: delete dublicate rule: smi.ru/cgi-bin/banner in BANNER section
2010-07-27 16:55:33 [3675] MAKE-CACHE: delete rule: bannerbank.ru:8080 because exist rule: bannerbank.ru
2010-07-27 16:55:33 [3675] MAKE-CACHE: delete rule: counter.yadro.ru because exist rule: yadro.ru
2010-07-27 16:55:33 [3675] MAKE-CACHE: MAKE /usr/local/rejik3/banlists/porno/porno/urls.cache
2010-07-27 16:55:33 [3675] MAKE-CACHE: Load 22918 rules from /usr/local/rejik3/banlists/porno/porno/urls
2010-07-27 16:55:33 [3675] MAKE-CACHE: delete dublicate rule: bdsmbeholder.com in PORNO section
2010-07-27 16:55:33 [3675] MAKE-CACHE: delete dublicate rule: lesbian-post.com in PORNO section
2010-07-27 16:55:33 [3675] MAKE-CACHE: delete rule: age.bedclip.com because exist rule: bedclip.com
2010-07-27 16:55:33 [3675] MAKE-CACHE: delete rule: spunker.bigfast.net because exist rule: bigfast.net
2010-07-27 16:55:33 [3675] MAKE-CACHE: delete rule: andympegs.coolfreehost.com because exist rule: coolfreehost.com
2010-07-27 16:55:33 [3675] MAKE-CACHE: delete rule: sexseries.coolfreehost.com because exist rule: coolfreehost.com
2010-07-27 16:55:33 [3675] MAKE-CACHE: delete rule: websex.coolfreehost.com because exist rule: coolfreehost.com
2010-07-27 16:55:33 [3675] MAKE-CACHE: delete rule: hotmature.coolxxxhost.com because exist rule: coolxxxhost.com
2010-07-27 16:55:33 [3675] MAKE-CACHE: delete rule: playboy.fason.ru because exist rule: fason.ru
2010-07-27 16:55:33 [3675] MAKE-CACHE: delete rule: teens.groupsexaction.com because exist rule: groupsexaction.com
2010-07-27 16:55:33 [3675] MAKE-CACHE: delete rule: xbs.mtree.com because exist rule: mtree.com
2010-07-27 16:55:33 [3675] MAKE-CACHE: delete rule: hot.netporn.com because exist rule: netporn.com
2010-07-27 16:55:33 [3675] MAKE-CACHE: delete rule: autotgp.nexgenfreehosting.com because exist rule: nexgenfreehosting.com
2010-07-27 16:55:33 [3675] MAKE-CACHE: delete rule: lixxx.nexgenfreehosting.com because exist rule: nexgenfreehosting.com
2010-07-27 16:55:33 [3675] MAKE-CACHE: delete rule: teenpix.nexgenfreehosting.com because exist rule: nexgenfreehosting.com
2010-07-27 16:55:33 [3675] MAKE-CACHE: delete rule: teens.nexgenfreehosting.com because exist rule: nexgenfreehosting.com
2010-07-27 16:55:33 [3675] MAKE-CACHE: delete rule: titeteens.nexgenfreehosting.com because exist rule: nexgenfreehosting.com
2010-07-27 16:55:33 [3675] MAKE-CACHE: delete rule: bnrs.porntops.com because exist rule: porntops.com
2010-07-27 16:55:33 [3675] MAKE-CACHE: delete rule: adultmovienetwork.primenetwork.net because exist rule: primenetwork.net
2010-07-27 16:55:33 [3675] MAKE-CACHE: delete rule: x.rxxx.org because exist rule: rxxx.org
2010-07-27 16:55:33 [3675] MAKE-CACHE: delete rule: terra.es/personal7 because exist rule: terra.es
2010-07-27 16:55:33 [3675] MAKE-CACHE: delete rule: maturewomen.thexxxsex.com because exist rule: thexxxsex.com
2010-07-27 16:55:33 [3675] MAKE-CACHE: delete rule: girls.twistys.net because exist rule: twistys.net
2010-07-27 16:55:33 [3675] MAKE-CACHE: MAKE /usr/local/rejik3/banlists/js/js/urls.cache
2010-07-27 16:55:33 [3675] MAKE-CACHE: Load 1 rules from /usr/local/rejik3/banlists/js/js/urls
2010-07-27 16:55:33 [3674] Make-cache finished
2010-07-27 16:55:33 [3674] Load 661 rules from /usr/local/rejik3/banlists/banners/banners/urls.cache
2010-07-27 16:55:33 [3674] Load 8 pattern from BANNER pcre
2010-07-27 16:55:33 [3674] Load 22283 rules from /usr/local/rejik3/banlists/porno/porno/urls.cache
2010-07-27 16:55:33 [3674] Load 5 pattern from MP3 pcre
2010-07-27 16:55:33 [3674] Load 1 rules from /usr/local/rejik3/banlists/js/js/urls.cache
2010-07-27 16:55:33 [3674] Redirector start and working (3.2.
2010-07-27 16:55:56 [3678] Run make-cache (3.2.
2010-07-27 16:55:56 [3678] Make-cache finished
2010-07-27 16:55:56 [3678] Load 661 rules from /usr/local/rejik3/banlists/banners/banners/urls.cache
2010-07-27 16:55:56 [3678] Load 8 pattern from BANNER pcre
2010-07-27 16:55:56 [3678] Load 22283 rules from /usr/local/rejik3/banlists/porno/porno/urls.cache
2010-07-27 16:55:56 [3678] Load 5 pattern from MP3 pcre
2010-07-27 16:55:56 [3678] Load 1 rules from /usr/local/rejik3/banlists/js/js/urls.cache
2010-07-27 16:55:56 [3678] Redirector start and working (3.2.
Re: не работает режик
redirector.log пустой