Free7+Sams 1.0.3 аутентификация по IP
Сделал все по инструкции. при запуске squid`a он сплевывает следующую информацию в лог cache.log
Кто-нибудь может объяснить что все это знгачит?)
Код: Выделить всё
2008/09/23 11:43:22| Starting Squid Cache version 2.6.STABLE16 for i386-portbld-freebsd7.0...
2008/09/23 11:43:22| Process ID 1775
2008/09/23 11:43:22| With 11072 file descriptors available
2008/09/23 11:43:22| Using kqueue for the IO loop
2008/09/23 11:43:22| DNS Socket created at 0.0.0.0, port 61097, FD 5
2008/09/23 11:43:22| Adding nameserver 194.85.128.10 from /etc/resolv.conf
2008/09/23 11:43:22| helperOpenServers: Starting 5 'redirector' processes
2008/09/23 11:43:22| helperOpenServers: Starting 5 'ncsa_auth' processes
cannot stat /usr/local/etc/squid/ncsa.sams
cannot stat /usr/local/etc/squid/ncsa.sams
cannot stat /usr/local/etc/squid/ncsa.sams
cannot stat /usr/local/etc/squid/ncsa.sams
cannot stat /usr/local/etc/squid/ncsa.sams
2008/09/23 11:43:22| Unlinkd pipe opened on FD 20
2008/09/23 11:43:22| Swap maxSize 102400 KB, estimated 7876 objects
2008/09/23 11:43:22| Target number of buckets: 393
2008/09/23 11:43:22| Using 8192 Store buckets
2008/09/23 11:43:22| Max Mem size: 8192 KB
2008/09/23 11:43:22| Max Swap size: 102400 KB
2008/09/23 11:43:22| Rebuilding storage in /usr/local/squid/cache (DIRTY)
2008/09/23 11:43:22| Using Least Load store dir selection
2008/09/23 11:43:22| Set Current Directory to /usr/local/squid/cache
2008/09/23 11:43:22| Loaded Icons.
2008/09/23 11:43:22| Accepting proxy HTTP connections at 192.168.124.222, port 3128, FD 22.
2008/09/23 11:43:22| Accepting ICP messages at 0.0.0.0, port 3130, FD 23.
2008/09/23 11:43:22| WCCP Disabled.
2008/09/23 11:43:22| Ready to serve requests.
2008/09/23 11:43:22| helperHandleRead: unexpected read from url_rewriter #1, 79 bytes 'ERROR: Can't write to file /usr/local/rejik3/redirector.err: Permission denied
'
2008/09/23 11:43:22| helperHandleRead: unexpected read from url_rewriter #2, 79 bytes 'ERROR: Can't write to file /usr/local/rejik3/redirector.err: Permission denied
'
2008/09/23 11:43:22| helperHandleRead: unexpected read from url_rewriter #3, 79 bytes 'ERROR: Can't write to file /usr/local/rejik3/redirector.err: Permission denied
'
2008/09/23 11:43:22| helperHandleRead: unexpected read from url_rewriter #4, 79 bytes 'ERROR: Can't write to file /usr/local/rejik3/redirector.err: Permission denied
'
2008/09/23 11:43:22| helperHandleRead: unexpected read from url_rewriter #5, 79 bytes 'ERROR: Can't write to file /usr/local/rejik3/redirector.err: Permission denied
'
2008/09/23 11:43:22| WARNING: basicauthenticator #1 (FD 11) exited
2008/09/23 11:43:22| WARNING: basicauthenticator #2 (FD 12) exited
2008/09/23 11:43:22| WARNING: basicauthenticator #3 (FD 13) exited
2008/09/23 11:43:22| Too few basicauthenticator processes are running
FATAL: The basicauthenticator helpers are crashing too rapidly, need help!
Squid Cache (Version 2.6.STABLE16): Terminated abnormally.
CPU Usage: 0.018 seconds = 0.000 user + 0.018 sys
Maximum Resident Size: 5944 KB
Page faults with physical i/o: 0
2008/09/23 11:43:25| Starting Squid Cache version 2.6.STABLE16 for i386-portbld-freebsd7.0...
2008/09/23 11:43:25| Process ID 1788
2008/09/23 11:43:25| With 11072 file descriptors available
2008/09/23 11:43:25| Using kqueue for the IO loop
2008/09/23 11:43:25| DNS Socket created at 0.0.0.0, port 58345, FD 5
2008/09/23 11:43:25| Adding nameserver 194.85.128.10 from /etc/resolv.conf
2008/09/23 11:43:25| helperOpenServers: Starting 5 'redirector' processes
2008/09/23 11:43:25| helperOpenServers: Starting 5 'ncsa_auth' processes
cannot stat /usr/local/etc/squid/ncsa.sams
cannot stat /usr/local/etc/squid/ncsa.sams
cannot stat /usr/local/etc/squid/ncsa.sams
cannot stat /usr/local/etc/squid/ncsa.sams
cannot stat /usr/local/etc/squid/ncsa.sams
2008/09/23 11:43:25| Unlinkd pipe opened on FD 20
2008/09/23 11:43:25| Swap maxSize 102400 KB, estimated 7876 objects
2008/09/23 11:43:25| Target number of buckets: 393
2008/09/23 11:43:25| Using 8192 Store buckets
2008/09/23 11:43:25| Max Mem size: 8192 KB
2008/09/23 11:43:25| Max Swap size: 102400 KB
2008/09/23 11:43:25| Rebuilding storage in /usr/local/squid/cache (DIRTY)
2008/09/23 11:43:25| Using Least Load store dir selection
2008/09/23 11:43:25| Set Current Directory to /usr/local/squid/cache
2008/09/23 11:43:25| Loaded Icons.
2008/09/23 11:43:25| Accepting proxy HTTP connections at 192.168.124.222, port 3128, FD 22.
2008/09/23 11:43:25| Accepting ICP messages at 0.0.0.0, port 3130, FD 23.
2008/09/23 11:43:25| WCCP Disabled.
2008/09/23 11:43:25| Ready to serve requests.
2008/09/23 11:43:25| helperHandleRead: unexpected read from url_rewriter #1, 79 bytes 'ERROR: Can't write to file /usr/local/rejik3/redirector.err: Permission denied
'
2008/09/23 11:43:25| helperHandleRead: unexpected read from url_rewriter #2, 79 bytes 'ERROR: Can't write to file /usr/local/rejik3/redirector.err: Permission denied
'
2008/09/23 11:43:25| helperHandleRead: unexpected read from url_rewriter #3, 79 bytes 'ERROR: Can't write to file /usr/local/rejik3/redirector.err: Permission denied
'
2008/09/23 11:43:25| helperHandleRead: unexpected read from url_rewriter #4, 79 bytes 'ERROR: Can't write to file /usr/local/rejik3/redirector.err: Permission denied
'
2008/09/23 11:43:25| helperHandleRead: unexpected read from url_rewriter #5, 79 bytes 'ERROR: Can't write to file /usr/local/rejik3/redirector.err: Permission denied
'
2008/09/23 11:43:25| WARNING: basicauthenticator #1 (FD 11) exited
2008/09/23 11:43:25| WARNING: basicauthenticator #2 (FD 12) exited
2008/09/23 11:43:25| WARNING: basicauthenticator #3 (FD 13) exited
2008/09/23 11:43:25| Too few basicauthenticator processes are running
FATAL: The basicauthenticator helpers are crashing too rapidly, need help!
Squid Cache (Version 2.6.STABLE16): Terminated abnormally.
CPU Usage: 0.018 seconds = 0.012 user + 0.006 sys
Maximum Resident Size: 4084 KB
Page faults with physical i/o: 0
2008/09/23 11:43:28| Starting Squid Cache version 2.6.STABLE16 for i386-portbld-freebsd7.0...
2008/09/23 11:43:28| Process ID 1801
2008/09/23 11:43:28| With 11072 file descriptors available
2008/09/23 11:43:28| Using kqueue for the IO loop
2008/09/23 11:43:28| DNS Socket created at 0.0.0.0, port 53814, FD 5
2008/09/23 11:43:28| Adding nameserver 194.85.128.10 from /etc/resolv.conf
2008/09/23 11:43:28| helperOpenServers: Starting 5 'redirector' processes
2008/09/23 11:43:28| helperOpenServers: Starting 5 'ncsa_auth' processes
cannot stat /usr/local/etc/squid/ncsa.sams
cannot stat /usr/local/etc/squid/ncsa.sams
cannot stat /usr/local/etc/squid/ncsa.sams
cannot stat /usr/local/etc/squid/ncsa.sams
cannot stat /usr/local/etc/squid/ncsa.sams
2008/09/23 11:43:28| Unlinkd pipe opened on FD 20
2008/09/23 11:43:28| Swap maxSize 102400 KB, estimated 7876 objects
2008/09/23 11:43:28| Target number of buckets: 393
2008/09/23 11:43:28| Using 8192 Store buckets
2008/09/23 11:43:28| Max Mem size: 8192 KB
2008/09/23 11:43:28| Max Swap size: 102400 KB
2008/09/23 11:43:28| Rebuilding storage in /usr/local/squid/cache (DIRTY)
2008/09/23 11:43:28| Using Least Load store dir selection
2008/09/23 11:43:28| Set Current Directory to /usr/local/squid/cache
2008/09/23 11:43:28| Loaded Icons.
2008/09/23 11:43:28| Accepting proxy HTTP connections at 192.168.124.222, port 3128, FD 22.
2008/09/23 11:43:28| Accepting ICP messages at 0.0.0.0, port 3130, FD 23.
2008/09/23 11:43:28| WCCP Disabled.
2008/09/23 11:43:28| Ready to serve requests.
2008/09/23 11:43:28| helperHandleRead: unexpected read from url_rewriter #1, 79 bytes 'ERROR: Can't write to file /usr/local/rejik3/redirector.err: Permission denied
'
2008/09/23 11:43:28| helperHandleRead: unexpected read from url_rewriter #2, 79 bytes 'ERROR: Can't write to file /usr/local/rejik3/redirector.err: Permission denied
'
2008/09/23 11:43:28| helperHandleRead: unexpected read from url_rewriter #3, 79 bytes 'ERROR: Can't write to file /usr/local/rejik3/redirector.err: Permission denied
'
2008/09/23 11:43:28| helperHandleRead: unexpected read from url_rewriter #4, 79 bytes 'ERROR: Can't write to file /usr/local/rejik3/redirector.err: Permission denied
'
2008/09/23 11:43:28| helperHandleRead: unexpected read from url_rewriter #5, 79 bytes 'ERROR: Can't write to file /usr/local/rejik3/redirector.err: Permission denied
'
2008/09/23 11:43:28| WARNING: basicauthenticator #1 (FD 11) exited
2008/09/23 11:43:28| WARNING: basicauthenticator #2 (FD 12) exited
2008/09/23 11:43:28| WARNING: basicauthenticator #3 (FD 13) exited
2008/09/23 11:43:28| Too few basicauthenticator processes are running
FATAL: The basicauthenticator helpers are crashing too rapidly, need help!
Squid Cache (Version 2.6.STABLE16): Terminated abnormally.
CPU Usage: 0.018 seconds = 0.012 user + 0.006 sys
Maximum Resident Size: 5716 KB
Page faults with physical i/o: 0
2008/09/23 11:43:31| Starting Squid Cache version 2.6.STABLE16 for i386-portbld-freebsd7.0...
2008/09/23 11:43:31| Process ID 1814
2008/09/23 11:43:31| With 11072 file descriptors available
2008/09/23 11:43:31| Using kqueue for the IO loop
2008/09/23 11:43:31| DNS Socket created at 0.0.0.0, port 49647, FD 5
2008/09/23 11:43:31| Adding nameserver 194.85.128.10 from /etc/resolv.conf
2008/09/23 11:43:31| helperOpenServers: Starting 5 'redirector' processes
2008/09/23 11:43:31| helperOpenServers: Starting 5 'ncsa_auth' processes
cannot stat /usr/local/etc/squid/ncsa.sams
cannot stat /usr/local/etc/squid/ncsa.sams
cannot stat /usr/local/etc/squid/ncsa.sams
cannot stat /usr/local/etc/squid/ncsa.sams
2008/09/23 11:43:31| Unlinkd pipe opened on FD 20
cannot stat /usr/local/etc/squid/ncsa.sams
2008/09/23 11:43:31| Swap maxSize 102400 KB, estimated 7876 objects
2008/09/23 11:43:31| Target number of buckets: 393
2008/09/23 11:43:31| Using 8192 Store buckets
2008/09/23 11:43:31| Max Mem size: 8192 KB
2008/09/23 11:43:31| Max Swap size: 102400 KB
2008/09/23 11:43:31| Rebuilding storage in /usr/local/squid/cache (DIRTY)
2008/09/23 11:43:31| Using Least Load store dir selection
2008/09/23 11:43:31| Set Current Directory to /usr/local/squid/cache
2008/09/23 11:43:31| Loaded Icons.
2008/09/23 11:43:31| Accepting proxy HTTP connections at 192.168.124.222, port 3128, FD 22.
2008/09/23 11:43:31| Accepting ICP messages at 0.0.0.0, port 3130, FD 23.
2008/09/23 11:43:31| WCCP Disabled.
2008/09/23 11:43:31| Ready to serve requests.
2008/09/23 11:43:31| helperHandleRead: unexpected read from url_rewriter #1, 79 bytes 'ERROR: Can't write to file /usr/local/rejik3/redirector.err: Permission denied
'
2008/09/23 11:43:31| helperHandleRead: unexpected read from url_rewriter #2, 79 bytes 'ERROR: Can't write to file /usr/local/rejik3/redirector.err: Permission denied
'
2008/09/23 11:43:31| helperHandleRead: unexpected read from url_rewriter #3, 79 bytes 'ERROR: Can't write to file /usr/local/rejik3/redirector.err: Permission denied
'
2008/09/23 11:43:31| helperHandleRead: unexpected read from url_rewriter #4, 79 bytes 'ERROR: Can't write to file /usr/local/rejik3/redirector.err: Permission denied
'
2008/09/23 11:43:31| helperHandleRead: unexpected read from url_rewriter #5, 79 bytes 'ERROR: Can't write to file /usr/local/rejik3/redirector.err: Permission denied
'
2008/09/23 11:43:31| WARNING: basicauthenticator #1 (FD 11) exited
2008/09/23 11:43:31| WARNING: basicauthenticator #2 (FD 12) exited
2008/09/23 11:43:31| WARNING: basicauthenticator #3 (FD 13) exited
2008/09/23 11:43:31| Too few basicauthenticator processes are running
FATAL: The basicauthenticator helpers are crashing too rapidly, need help!
Squid Cache (Version 2.6.STABLE16): Terminated abnormally.
CPU Usage: 0.018 seconds = 0.018 user + 0.000 sys
Maximum Resident Size: 5284 KB
Page faults with physical i/o: 0
2008/09/23 11:43:35| Starting Squid Cache version 2.6.STABLE16 for i386-portbld-freebsd7.0...
2008/09/23 11:43:35| Process ID 1827
2008/09/23 11:43:35| With 11072 file descriptors available
2008/09/23 11:43:35| Using kqueue for the IO loop
2008/09/23 11:43:35| DNS Socket created at 0.0.0.0, port 63064, FD 5
2008/09/23 11:43:35| Adding nameserver 194.85.128.10 from /etc/resolv.conf
2008/09/23 11:43:35| helperOpenServers: Starting 5 'redirector' processes
2008/09/23 11:43:35| helperOpenServers: Starting 5 'ncsa_auth' processes
cannot stat /usr/local/etc/squid/ncsa.sams
cannot stat /usr/local/etc/squid/ncsa.sams
cannot stat /usr/local/etc/squid/ncsa.sams
cannot stat /usr/local/etc/squid/ncsa.sams
cannot stat /usr/local/etc/squid/ncsa.sams
2008/09/23 11:43:35| Unlinkd pipe opened on FD 20
2008/09/23 11:43:35| Swap maxSize 102400 KB, estimated 7876 objects
2008/09/23 11:43:35| Target number of buckets: 393
2008/09/23 11:43:35| Using 8192 Store buckets
2008/09/23 11:43:35| Max Mem size: 8192 KB
2008/09/23 11:43:35| Max Swap size: 102400 KB
2008/09/23 11:43:35| Rebuilding storage in /usr/local/squid/cache (DIRTY)
2008/09/23 11:43:35| Using Least Load store dir selection
2008/09/23 11:43:35| Set Current Directory to /usr/local/squid/cache
2008/09/23 11:43:35| Loaded Icons.
2008/09/23 11:43:35| Accepting proxy HTTP connections at 192.168.124.222, port 3128, FD 22.
2008/09/23 11:43:35| Accepting ICP messages at 0.0.0.0, port 3130, FD 23.
2008/09/23 11:43:35| WCCP Disabled.
2008/09/23 11:43:35| Ready to serve requests.
2008/09/23 11:43:35| helperHandleRead: unexpected read from url_rewriter #1, 79 bytes 'ERROR: Can't write to file /usr/local/rejik3/redirector.err: Permission denied
'
2008/09/23 11:43:35| helperHandleRead: unexpected read from url_rewriter #2, 79 bytes 'ERROR: Can't write to file /usr/local/rejik3/redirector.err: Permission denied
'
2008/09/23 11:43:35| helperHandleRead: unexpected read from url_rewriter #3, 79 bytes 'ERROR: Can't write to file /usr/local/rejik3/redirector.err: Permission denied
'
2008/09/23 11:43:35| helperHandleRead: unexpected read from url_rewriter #4, 79 bytes 'ERROR: Can't write to file /usr/local/rejik3/redirector.err: Permission denied
'
2008/09/23 11:43:35| helperHandleRead: unexpected read from url_rewriter #5, 79 bytes 'ERROR: Can't write to file /usr/local/rejik3/redirector.err: Permission denied
'
2008/09/23 11:43:35| WARNING: basicauthenticator #1 (FD 11) exited
2008/09/23 11:43:35| WARNING: basicauthenticator #2 (FD 12) exited
2008/09/23 11:43:35| WARNING: basicauthenticator #3 (FD 13) exited
2008/09/23 11:43:35| Too few basicauthenticator processes are running
FATAL: The basicauthenticator helpers are crashing too rapidly, need help!
Squid Cache (Version 2.6.STABLE16): Terminated abnormally.
CPU Usage: 0.018 seconds = 0.006 user + 0.012 sys
Maximum Resident Size: 5092 KB
Page faults with physical i/o: 0
squid.conf
Код: Выделить всё
# created by SAMS _sams_ 2008-9-23 10:26:19
# OPTIONS FOR AUTHENTICATION
# -----------------------------------------------------------------------------
# TAG: auth_param
auth_param basic program /usr/local/libexec/squid/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
auth_param basic casesensitive off
# ACCESS CONTROLS
# -----------------------------------------------------------------------------
# TAG: acl
acl _sams_default src "/usr/local/etc/squid/default.sams"
acl _sams_default_time time MTWHFAS 00:00-24:00
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
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
#acl squidusers proxy_auth REQUIRED
# TAG: http_access
http_access allow _sams_default _sams_default_time
#http_access allow squidusers
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access deny all
# TAG: icp_access
icp_access allow all
# NETWORK OPTIONS
# -----------------------------------------------------------------------------
# TAG: http_port
http_port 192.168.124.222:3128
# OPTIONS WHICH AFFECT THE NEIGHBOR SELECTION ALGORITHM
# -----------------------------------------------------------------------------
# TAG: hierarchy_stoplist
hierarchy_stoplist cgi-bin ?
# TAG: cache
acl QUERY urlpath_regex cgi-bin \?
cache deny QUERY
# LOGFILE OPTIONS
# -----------------------------------------------------------------------------
# TAG: access_log
access_log /usr/local/squid/logs/access.log squid
# OPTIONS FOR URL REWRITING
# -----------------------------------------------------------------------------
# TAG: url_rewrite_program
url_rewrite_program /usr/local/rejik3/redirector /usr/local/rejik3/redirector.conf
# OPTIONS FOR TUNING THE CACHE
# -----------------------------------------------------------------------------
# TAG: refresh_pattern
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
# HTTP OPTIONS
# -----------------------------------------------------------------------------
# TAG: broken_vary_encoding
acl apache rep_header Server ^Apache
broken_vary_encoding allow apache
# DELAY POOL PARAMETERS
# -----------------------------------------------------------------------------
# TAG: delay_class
delay_pools 1
delay_class 1 2
delay_access 1 allow _sams_default
delay_access 1 deny all
delay_parameters 1 64000/64000 64000/64000
# MISCELLANEOUS
# -----------------------------------------------------------------------------
# TAG: forwarded_for on|off
forwarded_for off
# TAG: coredump_dir
coredump_dir /usr/local/squid/cache