LINUX.ORG.RU
ФорумAdmin

Как прикрутить squidguard к Squid 2.6 ????


0

0

Сорри за предыдущее сообщение, удалите его.

# squid -v
Squid Cache: Version 2.6.STABLE4

установил squidguard

прописал в squid.conf:

url_rewrite_program /usr/bin/squidGuard
url_rewrite_children 30

перезапускаю сквид и получаю в cache.log:

2006/10/25 17:41:41| WARNING: url_rewriter #30 (FD 36) exited
2006/10/25 17:41:41| WARNING: url_rewriter #20 (FD 26) exited
2006/10/25 17:41:41| WARNING: url_rewriter #26 (FD 32) exited
2006/10/25 17:41:41| WARNING: url_rewriter #25 (FD 31) exited
2006/10/25 17:41:41| WARNING: url_rewriter #28 (FD 34) exited
2006/10/25 17:41:41| WARNING: url_rewriter #5 (FD 11) exited
2006/10/25 17:41:41| WARNING: url_rewriter #15 (FD 21) exited
2006/10/25 17:41:41| WARNING: url_rewriter #8 (FD 14) exited
2006/10/25 17:41:41| WARNING: url_rewriter #29 (FD 35) exited
2006/10/25 17:41:41| WARNING: url_rewriter #16 (FD 22) exited
2006/10/25 17:41:41| WARNING: url_rewriter #27 (FD 33) exited
2006/10/25 17:41:41| WARNING: url_rewriter #6 (FD 12) exited
2006/10/25 17:41:41| WARNING: url_rewriter #18 (FD 24) exited
2006/10/25 17:41:41| WARNING: url_rewriter #14 (FD 20) exited
2006/10/25 17:41:41| WARNING: url_rewriter #11 (FD 17) exited
2006/10/25 17:41:41| Too few url_rewriter processes are running
FATAL: The url_rewriter helpers are crashing too rapidly, need help!

Squid Cache (Version 2.6.STABLE4): Terminated abnormally.
CPU Usage: 0.024 seconds = 0.012 user + 0.012 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 0
Memory usage for squid via mallinfo():
        total space in arena:    2644 KB
        Ordinary blocks:         2581 KB     18 blks
        Small blocks:               0 KB      0 blks
        Holding blocks:           624 KB      3 blks
        Free Small blocks:          0 KB
        Free Ordinary blocks:      62 KB
        Total in use:            3205 KB 98%
        Total free:                62 KB 2%


я пробовал играться с числом url_rewrite_children ставил и 5 и меньше и 40 и больше - результат один...

как прикрутить всё-таки squidguard к squid 2.6? 
anonymous
Ответ на: комментарий от anonymous

Что вы гоните
Сорь за грубость
Работает все по старому.

Squid Cache: Version 2.6.STABLE4
redirect_program /usr/local/squid/bin/squidGuard

Лучше скажите как побороть
когда в гурде стоит запрет на mp3 и юзер
урл пишет через проценты типа http://www.com/m%20.m%P%3
то гвард пропускает и неблокирует
как победить

sova ★★
()
Ответ на: комментарий от anonymous

Если добавить в squid.conf

redirect_program /usr/bin/squidGuard 
redirect_children 20

при этом все опции url_rewriter закоментированы

2006/10/26 11:43:48| Starting Squid Cache version 2.6.STABLE4 for i386-debian-linux-gnu...
2006/10/26 11:43:48| Process ID 5379
2006/10/26 11:43:48| With 1024 file descriptors available
2006/10/26 11:43:48| Using epoll for the IO loop
2006/10/26 11:43:48| DNS Socket created at 0.0.0.0, port 32770, FD 6
2006/10/26 11:43:48| Adding domain domen.local from /etc/resolv.conf
2006/10/26 11:43:48| Adding nameserver 10.1.1.201 from /etc/resolv.conf
2006/10/26 11:43:48| helperOpenServers: Starting 20 'squidGuard' processes
2006/10/26 11:43:48| helperStatefulOpenServers: Starting 30 'ntlm_auth' processes
2006/10/26 11:43:50| helperOpenServers: Starting 10 'ntlm_auth' processes
2006/10/26 11:43:50| User-Agent logging is disabled.
2006/10/26 11:43:50| Referer logging is disabled.
2006/10/26 11:43:50| Unlinkd pipe opened on FD 71
2006/10/26 11:43:50| Swap maxSize 5242880 KB, estimated 403298 objects
2006/10/26 11:43:50| Target number of buckets: 20164
2006/10/26 11:43:50| Using 32768 Store buckets
2006/10/26 11:43:50| Max Mem  size: 122880 KB
2006/10/26 11:43:50| Max Swap size: 5242880 KB
2006/10/26 11:43:50| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec
2006/10/26 11:43:50| Store logging disabled
2006/10/26 11:43:50| Rebuilding storage in /var/spool/squid (DIRTY)
2006/10/26 11:43:50| Using Least Load store dir selection
2006/10/26 11:43:50| Set Current Directory to /var/spool/squid
2006/10/26 11:43:50| Loaded Icons.
2006/10/26 11:43:51| Accepting proxy HTTP connections at 0.0.0.0, port 8888, FD 72.
2006/10/26 11:43:51| HTCP Disabled.
2006/10/26 11:43:51| Accepting SNMP messages on port 3401, FD 73.
2006/10/26 11:43:51| WCCP Disabled.
2006/10/26 11:43:51| Ready to serve requests.
2006/10/26 11:43:51| WARNING: url_rewriter #14 (FD 20) exited
2006/10/26 11:43:51| WARNING: url_rewriter #13 (FD 19) exited
2006/10/26 11:43:51| WARNING: url_rewriter #18 (FD 24) exited
2006/10/26 11:43:51| WARNING: url_rewriter #19 (FD 25) exited
2006/10/26 11:43:51| WARNING: url_rewriter #16 (FD 22) exited
2006/10/26 11:43:51| WARNING: url_rewriter #15 (FD 21) exited
2006/10/26 11:43:51| WARNING: url_rewriter #17 (FD 23) exited
2006/10/26 11:43:51| WARNING: url_rewriter #12 (FD 18) exited
2006/10/26 11:43:51| WARNING: url_rewriter #9 (FD 15) exited
2006/10/26 11:43:51| WARNING: url_rewriter #3 (FD 9) exited
2006/10/26 11:43:51| Too few url_rewriter processes are running
FATAL: The url_rewriter helpers are crashing too rapidly, need help!

Squid Cache (Version 2.6.STABLE4): Terminated abnormally.
CPU Usage: 0.024 seconds = 0.016 user + 0.008 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 0
Memory usage for squid via mallinfo():
        total space in arena:    2516 KB
        Ordinary blocks:         2500 KB     13 blks
        Small blocks:               0 KB      0 blks
        Holding blocks:           624 KB      3 blks
        Free Small blocks:          0 KB
        Free Ordinary blocks:      15 KB
        Total in use:            3124 KB 99%
        Total free:                15 KB 0

и всё равно он валится на url_rewriter - что за фигня?

anonymous
()
Ответ на: комментарий от sova

А еще при использовании кеша больше двух гб
лучше использовать --enable-large-cache-files

Squid Cache: Version 2.6.STABLE4
configure options: '--enable-delay-pools' '--disable-wccp' '--enable-default-err-language=Russian-1251' '--enable-linux-
netfilter' '--enable-large-cache-files'

Кстати покажите свои опции компиляции

sova ★★
()
Ответ на: комментарий от sova

squid -v Squid Cache: Version 2.6.STABLE4 configure options: '--prefix=/usr' '--exec_prefix=/usr' '--bindir=/usr/sbin' '--sbindir=/usr/sbin' '--libexecdir=/usr/lib/squid' '--sysconfdir=/etc/squid' '--localstatedir=/var/spool/squid' '--datadir=/usr/share/squid' '--enable-async-io' '--with-pthreads' '--enable-storeio=ufs,aufs,coss,diskd,null' '--enable-linux-netfilter' '--enable-linux-proxy' '--enable-arp-acl' '--enable-epoll' '--enable-removal-policies=lru,heap' '--enable-snmp' '--enable-delay-pools' '--enable-htcp' '--enable-cache-digests' '--enable-icap-support' '--enable-underscores' '--enable-referer-log' '--enable-useragent-log' '--enable-auth=basic,digest,ntlm' '--enable-carp' '--with-large-files' 'i386-debian-linux' 'build_alias=i386-debian-linux' 'host_alias=i386-debian-linux' 'target_alias=i386-debian-linux'

anonymous
()
Ответ на: комментарий от anonymous

причем я уже уменьшал размер кэша до 512 мегов - ошибка не исчезла

anonymous
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.