Странности со squid
Добавлено: 2013-07-29 14:58:03
1. FreeBSD 9.1
2. Squid 3.3.8
3. squid.conf
4. При перезапуске сервера squid подвешивает сервер, до тех пор пока не нажму Ctrl+C, система догружается и сквид даже работает нормально.
Вот что в логах
5. cache.log
6. В чем проблема, что сервер не может подняться после ребута ?
2. Squid 3.3.8
Код: Выделить всё
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' '--sysconfdir=/usr/local/etc/squid' '--with-logdir=/var/log/squid' '--with-pidfile=/var/run/squid/squid.pid' '--with-swapdir=/var/squid/cache/squid' '--enable-auth' '--enable-build-info' '--enable-loadable-modules' '--enable-removal-policies=lru heap' '--disable-epoll' '--disable-linux-netfilter' '--disable-linux-tproxy' '--disable-translation' '--enable-auth-basic=DB MSNT MSNT-multi-domain NCSA PAM POP3 RADIUS fake getpwnam SASL SMB' '--enable-auth-digest=file' '--enable-external-acl-helpers=file_userip time_quota unix_group wbinfo_group SQL_session' '--enable-auth-negotiate=kerberos wrapper' '--enable-auth-ntlm=fake smb_lm' '--enable-storeio=diskd rock ufs aufs' '--enable-disk-io=AIO Blocking DiskDaemon IpcIo Mmapped DiskThreads' '--enable-log-daemon-helpers=file' '--enable-url-rewrite-helpers=fake' '--enable-delay-pools' '--disable-htcp' '--disable-forw-via-db' '--disable-cache-digests' '--enable-wccp' '--disable-wccpv2' '--disable-ident-lookups' '--enable-eui' '--enable-ipfw-transparent' '--enable-pf-transparent' '--enable-ipf-transparent' '--disable-follow-x-forwarded-for' '--disable-ecap' '--disable-icap-client' '--enable-esi' '--enable-kqueue' '--with-large-files' '--disable-optimizations' '--enable-debug-cbdata' '--prefix=/usr/local' '--mandir=/usr/local/man' '--infodir=/usr/local/info/' '--build=amd64-portbld-freebsd9.1' 'build_alias=amd64-portbld-freebsd9.1' 'CC=cc' 'CFLAGS=-pipe -I/usr/local/include -I/usr/local/include -I/usr/local/include/libxml2 -g' 'LDFLAGS= -L/usr/local/lib -pthread -L/usr/local/lib' 'CPPFLAGS=-I/usr/local/include' 'CXX=c++' 'CXXFLAGS=-pipe -I/usr/local/include -I/usr/local/include -I/usr/local/include/libxml2 -g' 'CPP=cpp'
Код: Выделить всё
visible_hostname Proxy
acl localnet src 192.168.0.0/16
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
http_port 3128
pid_filename /var/run/squid.pid
coredump_dir /tmp/cache/squid
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern . 0 20% 4320
cache_mem 256 MB
cache_dir ufs /tmp/cache/squid 1000 32 256
ftp_user anonymous@
ftp_passive on
acl superuser src 192.168.0.10-192.168.0.20
acl CONNECT method CONNECT
url_rewrite_program /usr/local/bin/samsredir
url_rewrite_children 30
http_access allow all superuser
auth_param basic program /usr/local/libexec/squid/basic_ncsa_auth /usr/local/etc/squid/ncsa.sams
auth_param basic children 5
auth_param basic realm Squid proxy-caching web server
auth_param basic credentialsttl 2 hours
acl password proxy_auth REQUIRED
http_access allow password
http_access deny all
4. При перезапуске сервера squid подвешивает сервер, до тех пор пока не нажму Ctrl+C, система догружается и сквид даже работает нормально.
Вот что в логах
5. cache.log
Код: Выделить всё
2013/07/29 17:43:01 kid1| Preparing for shutdown after 0 requests
2013/07/29 17:43:01 kid1| Waiting 30 seconds for active connections to finish
2013/07/29 17:43:01 kid1| Closing HTTP port [::]:3129
2013/07/29 17:43:01 kid1| Closing HTTP port 0.0.0.0:3128
2013/07/29 17:43:01 kid1| Shutdown: NTLM authentication.
2013/07/29 17:43:01 kid1| Shutdown: Negotiate authentication.
2013/07/29 17:43:01 kid1| Shutdown: Digest authentication.
2013/07/29 17:43:01 kid1| Shutdown: Basic authentication.
2013/07/29 17:44:08 kid1| Starting Squid Cache version 3.3.8 for amd64-portbld-freebsd9.1...
2013/07/29 17:44:08 kid1| Process ID 925
2013/07/29 17:44:08 kid1| Process Roles: worker
2013/07/29 17:44:08 kid1| With 11095 file descriptors available
2013/07/29 17:44:08 kid1| Initializing IP Cache...
2013/07/29 17:44:08 kid1| DNS Socket created at [::], FD 7
2013/07/29 17:44:08 kid1| DNS Socket created at 0.0.0.0, FD 8
2013/07/29 17:44:08 kid1| Adding nameserver 212.1.1.1 from /etc/resolv.conf
2013/07/29 17:44:08 kid1| Adding nameserver 192.168.1.1 from /etc/resolv.conf
2013/07/29 17:44:08 kid1| helperOpenServers: Starting 0/30 'samsredir' processes
2013/07/29 17:44:08 kid1| helperOpenServers: No 'samsredir' processes needed.
2013/07/29 17:44:08 kid1| helperOpenServers: Starting 0/5 'basic_ncsa_auth' processes
2013/07/29 17:44:08 kid1| helperOpenServers: No 'basic_ncsa_auth' processes needed.
2013/07/29 17:44:08 kid1| Logfile: opening log daemon:/var/log/squid/access.log
2013/07/29 17:44:08 kid1| Logfile Daemon: opening log /var/log/squid/access.log
2013/07/29 17:44:08 kid1| WARNING: no_suid: setuid(0): (1) Operation not permitted
2013/07/29 17:44:08 kid1| WARNING: no_suid: setuid(0): (1) Operation not permitted
2013/07/29 17:44:09 kid1| Unlinkd pipe opened on FD 14
2013/07/29 17:44:09 kid1| Store logging disabled
2013/07/29 17:44:09 kid1| Swap maxSize 1024000 + 262144 KB, estimated 98934 objects
2013/07/29 17:44:09 kid1| Target number of buckets: 4946
2013/07/29 17:44:09 kid1| Using 8192 Store buckets
2013/07/29 17:44:09 kid1| Max Mem size: 262144 KB
2013/07/29 17:44:09 kid1| Max Swap size: 1024000 KB
2013/07/29 17:44:09 kid1| Rebuilding storage in /tmp/cache/squid (dirty log)
2013/07/29 17:44:09 kid1| Using Least Load store dir selection
2013/07/29 17:44:09 kid1| Set Current Directory to /tmp/cache/squid
2013/07/29 17:44:09 kid1| Loaded Icons.
2013/07/29 17:44:09 kid1| Squid plugin modules loaded: 0
2013/07/29 17:44:09 kid1| Accepting HTTP Socket connections at local=[::]:3129 remote=[::] FD 17 flags=9
2013/07/29 17:44:09 kid1| Accepting NAT intercepted HTTP Socket connections at local=0.0.0.0:3128 remote=[::] FD 18 flags=41
2013/07/29 17:44:09 kid1| Done reading /tmp/cache/squid swaplog (226 entries)
2013/07/29 17:44:09 kid1| Finished rebuilding storage from disk.
2013/07/29 17:44:09 kid1| 226 Entries scanned
2013/07/29 17:44:09 kid1| 0 Invalid entries.
2013/07/29 17:44:09 kid1| 0 With invalid flags.
2013/07/29 17:44:09 kid1| 226 Objects loaded.
2013/07/29 17:44:09 kid1| 0 Objects expired.
2013/07/29 17:44:09 kid1| 0 Objects cancelled.
2013/07/29 17:44:09 kid1| 0 Duplicate URLs purged.
2013/07/29 17:44:09 kid1| 0 Swapfile clashes avoided.
2013/07/29 17:44:09 kid1| Took 0.12 seconds (1884.53 objects/sec).
2013/07/29 17:44:09 kid1| Beginning Validation Procedure
2013/07/29 17:44:09 kid1| Completed Validation Procedure
2013/07/29 17:44:09 kid1| Validated 226 Entries
2013/07/29 17:44:09 kid1| store_swap_size = 4336.00 KB
2013/07/29 17:44:10 kid1| storeLateRelease: released 0 objects