>>А чем c-icap не устраивает ?
>
>
>хм. я просто хотел отрезать баннеры и порнуху. на версии squid 2.5
>стоял squidguard и прекрасно с этим справлялся.
>
>в squid 2.6 убрали в конфиге опцию redirector и как я понял,
>путь к программе обработчику запросов нужно теперь прописывать в url_rewriter.
>
>а как c-icap может мне в этом помочь?
никто не отвечает, поэтому напишу сам
Если добавить в 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 - что за фигня?