Приветствую!
Помогите пожалуйста решить проблему.
Есть FreeBSD 8.2 AMD64:[root@proxy ~]# uname -a
FreeBSD proxy.vestor.local 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Fri Dec 9 13:00:25 MSK 2011 root@proxy.vestor.local:/usr/obj/usr/src/sys/NEWKERN amd64
Есть squid 3.1:
[root@proxy ~]# squid -v
Squid Cache: Version 3.1.16
configure options: '--with-default-user=squid' '--bindir=/usr/local/sbin' '--sbindir=/usr/local/sbin' '--datadir=/usr/local/etc/squid' '--libexecdir=/usr/local/libexec/squid' '--localstatedir=/var/squid' '--sysconfdir=/usr/local/etc/squid' '--with-logdir=/var/log/squid' '--with-pidfile=/var/run/squid/squid.pid' '--enable-removal-policies=lru heap' '--disable-linux-netfilter' '--disable-linux-tproxy' '--disable-epoll' '--disable-translation' '--enable-auth=basic digest negotiate ntlm' '--enable-basic-auth-helpers=DB NCSA PAM MSNT SMB squid_radius_auth YP' '--enable-digest-auth-helpers=password' '--enable-external-acl-helpers=ip_user session unix_group wbinfo_group' '--enable-ntlm-auth-helpers=smb_lm' '--enable-negotiate-auth-helpers=squid_kerb_auth' '--enable-storeio=ufs diskd aufs' '--enable-disk-io=AIO Blocking DiskDaemon DiskThreads' '--disable-ipv6' '--enable-delay-pools' '--enable-icmp' '--enable-cache-digests' '--enable-useragent-log' '--enable-arp-acl' '--enable-ipfw-transparent' '--disable-ecap' '--disable-loadable-modules' '--enable-kqueue' '--disable-optimizations' '--prefix=/usr/local' '--mandir=/usr/local/man' '--infodir=/usr/local/info/' '--build=amd64-portbld-freebsd8.2' 'build_alias=amd64-portbld-freebsd8.2' 'CC=cc' 'CFLAGS=-pipe -g' 'LDFLAGS=' 'CPPFLAGS=' 'CXX=c++' 'CXXFLAGS=-pipe -g' 'CPP=cpp' --with-squid=/usr/ports/www/squid31/work/squid-3.1.16 --enable-ltdl-convenience
Есть конфа сквида:
[root@proxy ~]# cat /usr/local/etc/squid/squid.conf
acl manager proto cache_object
acl localhost src 127.0.0.1/32 ::1
acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 ::1
acl localnet src 172.17.17.0/24
acl SSL_ports port 443
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl CONNECT method CONNECT
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localnet
http_access allow localhost
http_access deny all
http_port 3128 transparent
error_directory /usr/local/etc/squid/errors/ru-ru
dead_peer_timeout 30 seconds
peer_connect_timeout 30 seconds
icp_query_timeout 5000
cache_mem 1024 MB
cache_dir ufs /usr/squid.cache 8192 128 256
cache_swap_high 70
memory_replacement_policy heap LFUDA
maximum_object_size 4096 KB
minimum_object_size 4 KB
maximum_object_size_in_memory 16 KB
ipcache_size 4096
fqdncache_size 4096
cache_access_log none
access_log /var/log/squid/access.log squid
cache_log /var/log/squid/cache.log
cache_store_log none
pid_filename /var/log/squid/squid.pid
coredump_dir /usr/squid.cache
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i \.gif$ 10080 100% 43200
refresh_pattern -i \.jpg$ 10080 100% 43200
refresh_pattern -i \.jpeg$ 10080 100% 43200
refresh_pattern -i \.bmp$ 10080 100% 43200
refresh_pattern -i \.mid$ 10080 100% 43200
refresh_pattern -i \.wav$ 10080 100% 43200
refresh_pattern -i \.ico$ 10080 100% 43200
refresh_pattern -i \.yim$ 10080 100% 43200
refresh_pattern -i \.jar$ 10080 100% 43200
refresh_pattern -i \.ldict$ 10080 100% 43200
refresh_pattern -i \.swf$ 10080 100% 43200
refresh_pattern -i \.class$ 10080 100% 43200
refresh_pattern -i \.cab$ 10080 100% 43200
refresh_pattern . 10 100% 10080
negative_ttl 5 minutes
positive_dns_ttl 6 hours
negative_dns_ttl 1 minute
Все это работает, НО не пишет ничего в access.log
[root@proxy ~]# ls -la /var/log/squid
total 270116
drwxr-x--- 2 squid squid 512 Dec 12 12:28 .
drwxr-xr-x 3 root wheel 512 Dec 12 13:00 ..
-rw-r----- 1 squid squid 0 Dec 12 13:24 access.log
-rw-r----- 1 squid squid 276423412 Dec 12 12:28 cache.log
-rw-r----- 1 squid squid 0 Dec 12 14:19 netdb.state
Как видно из приведенного выше - файл пустой. Куда копать не понимаю.
P.S. Также он себ несколько странно ведет. При включенном сквиде:
[root@proxy ~]# ps wax | grep squid
1568 ?? Is 0:00.00 squid
1570 ?? S 0:00.02 (squid) (squid)
1575 0 S+ 0:00.00 grep squid
пытаюсь его погасить и получаю:
[root@proxy ~]# squid -k shutdown
squid: No running copy
Если гасить через kill - все нормально.