Здравствуйте.
Имею ASPLinux 9, kernel-2.6.13.4, squid-2.5.STABLE5-2.9.0asp.
Соединение с провайдером организовано через его локальную сеть, а доступ к Интернет- через тоннель. ICQ бегает через squid.
При этом наблюдается странная ситуация- часто во второй половине дня у большинства клиентов обрывается соедиенение с ICQ; хотя бывают случаи непрерывной работы ICQ круглосуточно по несколько дней подряд. В момент отсутствия доступа к ICQ из предприятия, доступ к сервису из сети провайдера имелся.
Для решения проблемы использовал статью https://www.opennet.ru/base/net/squid_icq.txt.html
Ни одна из рекомендаций не улучшила ситуацию.
Прошу помощи в решении данной проблемы.Привожу squid.conf
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERYcache_mem 64 MB
maximum_object_size 16384 KB
cache_dir ufs /var/spool/squid 500 16 256
cache_store_log none
redirect_program /home/traffic/cgi-bin/Squid/mySQL/redirect-mysql.placl 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 RootUser src "/etc/squid/squidblock/users/root.users"
acl SSL_ports port 443 563 5190 # ssl, icq- 443, 5190
acl SSL_ports port 4242 4661 4662 # eMule
acl SSL_ports port 44777 7177 # svn
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 563 # https, snews
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 CONNECThttp_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_portsacl ICQbanner urlpath_regex /client/ate/ad-handler
http_access deny ICQbannerhttp_access allow localhost
http_access allow RootUseracl BadUsers src "/etc/squid/squidblock/users/bad.users"
http_access deny BadUsersacl squid_block_badlang url_regex -i "/etc/squid/squidblock/badlang.block.txt"
acl squid_unblock_badlang url_regex -i "/etc/squid/squidblock/badlang.unblock.txt"
acl squid_block_entertain url_regex -i "/etc/squid/squidblock/entertain.block.txt"
acl squid_unblock_entertain url_regex -i "/etc/squid/squidblock/entertain.unblock.txt"
acl squid_block_games url_regex -i "/etc/squid/squidblock/games.block.txt"
acl squid_unblock_games url_regex -i "/etc/squid/squidblock/games.unblock.txt"
acl squid_block_mp3 url_regex -i "/etc/squid/squidblock/mp3.block.txt"
acl squid_block_pirate url_regex -i "/etc/squid/squidblock/pirate.block.txt"
acl squid_unblock_pirate url_regex -i "/etc/squid/squidblock/pirate.unblock.txt"
acl squid_block_porn url_regex -i "/etc/squid/squidblock/porn.block.txt pron.block.txt"
acl squid_unblock_porn url_regex -i "/etc/squid/squidblock/porn.unblock.txt"
http_access allow squid_unblock_badlang
http_access deny squid_block_badlang !squid_unblock_badlang
http_access deny squid_block_entertain !squid_unblock_entertain
http_access deny squid_block_games !squid_unblock_games
http_access deny squid_block_pirate !squid_unblock_pirate
http_access deny squid_block_mp3
http_access deny squid_block_porn !squid_unblock_pornacl AntiChat urlpath_regex chat
http_access deny AntiChatacl TimeNoMusic time MTWHF
acl MusicVideoFiles urlpath_regex \.avi$
acl MusicVideoFiles urlpath_regex \.mov$
acl MusicVideoFiles urlpath_regex \.mp.*$
acl MusicVideoFiles urlpath_regex \.wav$
acl MusicVideoFiles urlpath_regex \.wmv$
http_access deny MusicVideoFiles TimeNoMusicacl Time_Kutsenko time MTWHF 7:00-17:00
acl Workstation_Kutsenko src 192.168.0.119/255.255.255.255
acl WEB_Redactor src 192.168.0.147/255.255.255.255
acl TimeSmena time 8:00-22:00
acl LocalNetwork src "/etc/squid/squidblock/users/local.users"#******************************************************************************
#
# ICQ *** test ***
#
# Проба устранить пропадание связи с ICQ_DOMAINS
#
acl ICQ_USERS src localhost
acl ICQ_USERS src "/etc/squid/squidblock/users/root.users"
acl ICQ_USERS src "/etc/squid/squidblock/users/local.users"acl ICQ_DOMAINS dstdomain aol.com icq.com login.icq.com
acl ICQ_ADDRESS dst 64.12.0.0/16 205.188.0.0/16
acl ICQ_PORTS port 443 5190
acl ICQ_PROTOCOL proto HTTPS# test 1 ***
http_access allow ICQ_USERS ICQ_ADDRESS ICQ_PORTS ICQ_PROTOCOL CONNECT
always_direct allow ICQ_ADDRESS ICQ_PORTS CONNECT
always_direct allow ICQ_DOMAINS ICQ_PORTS CONNECT
acl CONNECT method CONNECT# test 2 ***
#http_access allow CONNECT ICQ_PORTS
#http_access allow ICQ_USERS ICQ_PORTS# test 3 ***
#http_access allow CONNECT ICQ_USERS ICQ_DOMAINS ICQ_PORTS# test 4 ***
#acl ICQ_DATA url_regex data? monitor?
#http_access allow ICQ_DOMAINS
#http_access allow ICQ_ADDRESS ICQ_PROTOCOL
#http_access allow ICQ_ADDRESS ICQ_DATA
#******************************************************************************acl MaxOpenURL maxconn 7
client_db on
acl ip_0_10 src 192.168.0.10/255.255.255.255
acl mac_0_10 arp 00:11:D8:A4:46:AC
http_access allow ip_0_10 mac_0_10 TimeSmena
..
acl ip_0_119 src 192.168.0.119/255.255.255.255
acl mac_0_119 arp 00:80:48:12:AD:2C
http_access allow ip_0_119 mac_0_119 Time_Kutsenko
..
acl ip_7_235 src 192.168.7.235/255.255.255.255
http_access allow ip_7_235 TimeSmenahttp_access deny all
delay_pools 3
delay_class 1 1
delay_access 1 allow localhost
delay_access 1 allow RootUser
delay_access 1 deny all
delay_parameters 1 -1/-1
delay_class 2 2
delay_access 2 allow LocalNetwork
delay_access 2 allow Workstation_Kutsenko
delay_access 2 allow WEB_Redactor
delay_access 2 deny all
delay_parameters 2 48000/48000 32000/48000
delay_class 3 1
delay_access 3 allow BadUsers
delay_access 3 deny all
delay_parameters 3 300/500icp_access allow all
visible_hostname proxy.my_domain.com
append_domain .my_domain.comacl onserver url_regex .*my_domain\.com
acl DirectIPs dst 192.168.0.0/255.255.255.0
always_direct allow onserver
always_direct allow DirectIPs
acl SiteMyProvider dstdomain .smela.com.ua
always_direct allow SiteMyProviderextension_methods REPORT MERGE MKACTIVITY CHECKOUT DELETE
Спасибо.
у клиентов в аське птица - Keep connection alive стоит ?
>у клиентов в аське птица - Keep connection alive стоит ?Стоят
ну могу посоветовать пускать аську мимо сквида правилами firewall, включив NAT/Маскарад по порту 5190
>ну могу посоветовать пускать аську мимо сквида правилами firewall, включив NAT/Маскарад по
>порту 5190Я пробовал сделать так-
#!/bin/sh
#iptables=/sbin/iptables
sets() {
lan_ip_range=192.168.0.0/24#
# https --> 443/{tcp,udp}
# icq --> 4000/udp
# icq --> 5190/tcp
#
for port_icq in https icq; do
for protocol in tcp udp; do
$iptables $1 FORWARD --source $lan_ip_range --protocol $protocol --destination-port $port_icq -m state --state NEW,ESTABLISHED -j ACCEPT
$iptables --table nat $1 POSTROUTING --source $lan_ip_range --protocol $protocol --destination-port $port_icq -j MASQUERADE
$iptables $1 FORWARD --protocol $protocol --source-port $port_icq --destination $lan_ip_range -m state --state ESTABLISHED,RELATED -j ACCEPT
done
done
} # sets()deny_icq() {
$iptables -A FORWARD --destination login.icq.com -j DROP
$iptables -A FORWARD --source login.icq.com -j DROP
} # deny_icq()case "$1" in
start)
sets -A
;;stop)
sets -D
;;restart)
stop
sleep 7
start
;;status)
$iptables --list FORWARD
;;deny_icq)
deny_icq
;;*)
echo "Используйте $0 {start|stop|restart|status|deny_icq}"
esacexit 0
# *** End of script ***
Быть может я не прав. Если не затруднит- скажите как сделать правильно.
Спасибо.