Поставил Squid и djbdnscache, настроил как было написано, но squid клиентов из локальной сети в интернет не пускает - пишет у клиента в IE "Connection failed", а на proxy в access.log:
1115363436.451 246 192.168.0.2 TCP_MISS/503 1404 GET http://www.asuscom.ru:3128/index.shtml - NONE/- text/html
в store.log:
1115363436.451 RELEASE -1 FFFFFFFF 37026C71A7BB6AEFAFC7202990E095EB 503 1115363436 0 1115363436 text/html 1093/1335 GET http://www.asuscom.ru:3128/index.shtml
Причем рекомендуемый тест :
$ squidclient http://www.ixbt.com > test
проходит нормально - в access.log:
1115288213.975 91 127.0.0.1 TCP_MISS/301 519 GET http://www.ixbt.ru - DIRECT/81.19.66.87 text/html
в store.log:
1115288213.975 RELEASE -1 FFFFFFFF 85AD068D8FD874F3184D3F0FF58CA51D 301 1115288168 -1 -1 text/html -1/224 GET http://www.ixbt.ru
Если в pf убрать заворот на squid, то все хорошо - клиенты по NAT летают с использованием dnscache.
Cache.log:
2005/05/06 11:09:12| Starting Squid Cache version 2.5.STABLE9 for i386-unknown-openbsd3.6...
2005/05/06 11:09:12| Process ID 9993
2005/05/06 11:09:12| With 1024 file descriptors available
2005/05/06 11:09:12| DNS Socket created at 0.0.0.0, port 45796, FD 5
2005/05/06 11:09:12| Adding nameserver 192.168.0.1 from /etc/resolv.conf
2005/05/06 11:09:12| Unlinkd pipe opened on FD 10
2005/05/06 11:09:12| Swap maxSize 102400 KB, estimated 7876 objects
2005/05/06 11:09:12| Target number of buckets: 393
2005/05/06 11:09:12| Using 8192 Store buckets
2005/05/06 11:09:12| Max Mem size: 8192 KB
2005/05/06 11:09:12| Max Swap size: 102400 KB
2005/05/06 11:09:12| Rebuilding storage in /usr/local/squid/var/cache (CLEAN)
2005/05/06 11:09:12| Using Least Load store dir selection
2005/05/06 11:09:12| Set Current Directory to /usr/local/squid/var/cache
2005/05/06 11:09:12| Loaded Icons.
2005/05/06 11:09:12| Accepting HTTP connections at 127.0.0.1, port 3128, FD 12.
2005/05/06 11:09:12| Ready to serve requests.
2005/05/06 11:09:12| Done reading /usr/local/squid/var/cache swaplog (2 entries)
2005/05/06 11:09:12| Finished rebuilding storage from disk.
2005/05/06 11:09:12| 2 Entries scanned
2005/05/06 11:09:12| 0 Invalid entries.
2005/05/06 11:09:12| 0 With invalid flags.
2005/05/06 11:09:12| 2 Objects loaded.
2005/05/06 11:09:12| 0 Objects expired.
2005/05/06 11:09:12| 0 Objects cancelled.
2005/05/06 11:09:12| 0 Duplicate URLs purged.
2005/05/06 11:09:12| 0 Swapfile clashes avoided.
2005/05/06 11:09:12| Took 0.0 seconds ( 2.0 objects/sec).
2005/05/06 11:09:12| Beginning Validation Procedure
2005/05/06 11:09:13| Completed Validation Procedure
2005/05/06 11:09:13| Validated 2 Entries
2005/05/06 11:09:13| store_swap_size = 102k
2005/05/06 11:09:13| storeLateRelease: released 0 objects
Не могу понять где тут собака зарыта?