The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]



Индекс форумов
Составление сообщения

Исходное сообщение
"Работа Squid под нагрузкой"
Отправлено dixit, 03-Дек-12 20:20 
> Покажите ваш конфиг squid-a

Пожалуйста:

cache_peer 10.168.62.254 parent 8080 0 no-query no-digest
cache_peer 10.9.1.11 parent 8080 0 no-query no-digest

auth_param ntlm program /usr/bin/ntlm_auth -s /etc/samba/smb.conf --helper-protocol=squid-2.5-ntlmssp --domain=USB.ROOT.LC --require-membership-of="usb.root.lc+grp.all.internet"
auth_param ntlm children 1100
auth_param ntlm keep_alive on
authenticate_cache_garbage_interval 1 hour
authenticate_ttl 1 hour

auth_param  basic program /usr/bin/ntlm_auth -s /etc/samba/smb.conf --helper-protocol=squid-2.5-basic --domain=USB.ROOT.LC --require-membership-of="usb.root.lc+grp.all.internet"
auth_param basic children 30
auth_param basic credentialsttl 20 minute
auth_param basic casesensitive off

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 wsus_srv src 192.168.8.113/32
acl deloyt_temp src 192.168.252.0/24
acl deloyt_temp src 192.168.66.0/24
acl wsus_srv src 192.168.8.234/32
acl wsus_srv src 192.168.67.99/32

acl ftp_port port 21
acl SSL_ports port 563 8443
acl Safe_ports port 80          # http
acl Safe_ports port 443         # https
acl Safe_ports port 70          # gopher
acl Safe_ports port 210         # wais
acl Safe_ports port 1025-7999
acl radio_port port 8000
acl Safe_ports port 8001-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 allow localhost

http_access allow CONNECT SSL_ports  Safe_ports

acl inet_users proxy_auth REQUIRED

acl magic_usb1 url_regex -i "/etc/squid/acl/nopassword.txt"

acl deny_rep_mime_flashvideo rep_mime_type ^audio/x-scpls
acl deny_rep_mime_flashvideo rep_mime_type ^video/x-flv
acl deny_rep_mime_flashvideo rep_mime_type ^audio/mpeg
acl deny_rep_mime_flashvideo rep_mime_type ^video/x-ms-asf
acl deny_rep_mime_flashvideo rep_mime_type ^application/vnd.ms.wms-hdr.asfv1
acl deny_rep_mime_flashvideo rep_mime_type ^application/x-fcs
acl deny_rep_mime_flashvideo rep_mime_type ^audio/x-mp3
acl deny_rep_mime_flashvideo rep_mime_type ^audio/aacp

acl no_acces    url_regex "/etc/squid/acl/ban_site.txt"
acl denyintime  url_regex "/etc/squid/acl/time.txt"

acl italia url_regex "/etc/squid/acl/italia.txt"
acl italia_10.9.1.11 url_regex "/etc/squid/acl/italia_10.9.1.11.txt"

acl bad_media_workers proxy_auth "/etc/squid/acl/bad_media_workers.txt"
acl good_workers proxy_auth "/etc/squid/acl/good_workers.txt"
acl deny_user proxy_auth 032-gordonov 032-semenchukav 18-huzeevdv
acl ban_from_local dst 192.168.4.1
acl ban_from_local dst 192.168.4.128
acl ban_from_local dst 10.178.34.61

http_access allow magic_usb1

http_access allow wsus_srv

http_access deny radio_port
http_access deny ban_from_local

http_access deny deny_user
http_access deny deloyt_temp denyintime
http_access allow deloyt_temp

http_access allow good_workers ftp_port
http_access deny ftp_port

http_reply_access deny deny_rep_mime_flashvideo bad_media_workers

http_access allow good_workers denyintime
http_access deny denyintime
http_access deny no_acces
http_access allow inet_users

cache_peer_access 10.168.62.254 allow italia
cache_peer_access 10.9.1.11 allow italia_10.9.1.11

http_access deny all

http_port 8080

ftp_user squid@yahoo.com
ftp_passive on

never_direct allow italia
never_direct allow italia_10.9.1.11

hierarchy_stoplist cgi-bin ?

cache_dir ufs /squid/cache 1024 16 256

coredump_dir /squid/cache

cache_access_log /squid/logs/access.log

cache_log /squid/logs/cache.log
cache_store_log /dev/null

logfile_rotate 2
debug_options ALL,1 rotate=2
cache_effective_user squid
cache_effective_group squid
cache_mem 512 MB
cache_swap_low 70
cache_swap_high 90
maximum_object_size 8192 KB
minimum_object_size 8 KB
maximum_object_size_in_memory 16 KB

memory_pools off
memory_pools_limit 30 MB

client_db off
quick_abort_min 0 KB
quick_abort_max 0 KB

snmp_port 3401
acl SNMP_acl snmp_community public
snmp_access allow SNMP_acl localhost
snmp_access deny all

half_closed_clients off

refresh_pattern ^ftp:         &n... 1440    20%     10080
refresh_pattern ^gopher:        1440    0%      1440
refresh_pattern -i (/cgi-bin/|\?) 0     0%      0
refresh_pattern -i onegate.unicreditgroup.eu/.          3600    100%    3600
refresh_pattern .               0       20%     4320

sleep_after_fork 10000
max_filedescriptors 16384


 

Ваше сообщение
Имя*:
EMail:
Для отправки новых сообщений в текущей нити на email укажите знак ! перед адресом, например, !user@host.ru (!! - не показывать email).
Более тонкая настройка отправки ответов производится в профиле зарегистрированного участника форума.
Заголовок*:
Сообщение*:
  Введите код, изображенный на картинке: КОД
 
При общении не допускается: неуважительное отношение к собеседнику, хамство, унизительное обращение, ненормативная лексика, переход на личности, агрессивное поведение, обесценивание собеседника, провоцирование флейма голословными и заведомо ложными заявлениями. Не отвечайте на сообщения, явно нарушающие правила - удаляются не только сами нарушения, но и все ответы на них. Лог модерирования.



Партнёры:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
Хостинг:

Закладки на сайте
Проследить за страницей
Created 1996-2024 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру