Доврого времени суток всем.Столкнулся сегодня с такой проблемой: у меня есть прокси сервер на котором я ночью настроил связку SQUID + HAVP + CLAMAV. Все это ночью работало отлично (пробовал с нескольких хостов одновременно юзать инет под разными пользователями), а утром когда люди пришли на работу и залезли в инет - HAVP начал выдавать DNS error. И вообще сразу после загрузки прокси DNS lookup перестает работать. Опцию максимального количества серверов в havp конфиге менять пробовал, но проблему это не решило. Отключил havp - все рабтает. Очень нужен совет. Спасибо заранее.
Покажите версии ОС, программ, конфиги и ошибки в логах.
>Покажите версии ОС, программ, конфиги и ошибки в логах.Freebsd 6.3, Havp 0.88, squid 2.6 stable 16, clamav 0.94.
Настраивал в основном по этой статье:
http://www.lissyara.su/?id=1662Конфиг сквида:
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
auth_param basic program /usr/local/libexec/squid/ncsa_auth /usr/local/etc/squid/passwd#Recommended minimum configuration:
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 slow proxy_auth "/usr/local/etc/squid/slow"
acl medium proxy_auth "/usr/local/etc/squid/medium"
acl fast proxy_auth "/usr/local/etc/squid/fast"http_access allow slow
http_access allow medium
http_access allow fasthttp_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access deny allhttp_port 3128
#cache_peer 127.0.0.1 parent 3127 0 default no-query
#acl FTP proto FTP
#always_direct allow FTP
#always_direct allow SSL_Portshierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
cache deny QUERY
cache_dir ufs /usr/local/squid/cache 100 16 256refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320acl apache rep_header Server ^Apache
broken_vary_encoding allow apachevisible_hostname proxy
delay_pools 3
delay_class 1 1
delay_class 2 2
delay_class 3 2delay_access 1 allow fast
delay_access 1 deny alldelay_access 2 allow medium
delay_access 2 deny alldelay_access 3 allow slow
delay_access 3 deny alldelay_parameters 1 -1/-1
delay_parameters 2 64000/64000 -1/-1
delay_parameters 3 87500/87500 10000/10000Конфиг Хавпа:
SERVERNUMBER 2
MAXSERVERS 4ACCESSLOG /var/log/havp/access.log
ERRORLOG /var/log/havp/error.logLOG_OKS false
FORWARDED_IP true
PORT 3127
BIND_ADDRESS 127.0.0.1
TEMPLATEPATH /usr/local/etc/havp/templates/en
SCANNERTIMEOUT 5
RANGE true
ENABLECLAMLIB true
CLAMDBDIR /var/db/clamav
CLAMMAXFILESIZE 25
CLAMMAXRECURSION 3ENABLECLAMD false
ENABLEFPROT false
ENABLEAVG false
ENABLEAVESERVER false
ENABLESOPHIE false
ENABLETROPHIE false
ENABLENOD32 false
ENABLEAVAST falseENABLEARCAVIR false