The OpenNET Project / Index page

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

форумы  помощь  поиск  регистрация  майллист  вход/выход  слежка  RSS
"Не работают настройки delay pool"
Вариант для распечатки  
Пред. тема | След. тема 
Форум Настройка Squid и других прокси серверов (Squid)
Изначальное сообщение [ Отслеживать ]

"Не работают настройки delay pool"  +/
Сообщение от Poirot on 10-Мрт-11, 09:56 
Добрый день, помогите пожалуйста разобратся в настройках. Ограничение по трафику не работает :( Ниже настройки
acl all src all
acl manager proto cache_object
acl localhost src 127.0.0.1/32
acl to_localhost dst 127.0.0.0/8
acl to_localnets dst 192.168.0.0/16
acl our_guys src 192.168.0.56/32 192.168.0.70/32 192.168.0.145/32
acl bad_guys src 192.168.0.139/32
acl localnet src 192.168.0.0/24 # RFC1918 possible internal network
acl NDS_net src 192.168.112.133/32      # RFC1918 possible internal network
acl SSL_ports port 443 2096
acl Allowed_Connect_ports port 25
acl Allowed_Connect_ports port 110
acl Safe_ports port 80-89       # 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

http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports !Allowed_Connect_ports
http_access deny to_localhost
http_access allow localnet
http_access allow NDS_net
http_access deny all

icp_access allow localnet
icp_access deny all

http_port 3128

hierarchy_stoplist cgi-bin ?

cache_dir ufs /home/squid/cache 50000 32 256

logfile_rotate 5
access_log /home/squid/logs/access.log squid
cache_log /home/squid/logs/cache.log
cache_store_log /home/squid/logs/store.log

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

acl shoutcast rep_header X-HTTP09-First-Line ^ICY.[0-9]

upgrade_http0.9 deny shoutcast

acl apache rep_header Server ^Apache

broken_vary_encoding allow apache

coredump_dir /home/squid/cache

delay_pools 2
delay_class 1 2
delay_parameters 1 16000/16000 2500/2500
delay_access 1 allow localnet NDS_net !to_localnets !our_guys !bad_guys

delay_class 2 2
delay_parameters 1 64000/64000 32000/32000
delay_access 2 allow our_guys !bad_guys

Ответить | Правка | Cообщить модератору

Оглавление

Сообщения по теме [Сортировка по времени | RSS]


1. "Не работают настройки delay pool"  +/
Сообщение от arachnid (ok) on 10-Мрт-11, 10:25 
как минимум, Вы забыли правило, закрывающее пул.
delay_access <номер_пула> deny all
Ответить | Правка | ^ к родителю #0 | Наверх | Cообщить модератору

2. "Не работают настройки delay pool"  +/
Сообщение от Andrey Mitrofanov on 10-Мрт-11, 10:31 
Добавь ещё пару "delay_access X deny all":

> delay_pools 2
> delay_class 1 2
> delay_parameters 1 16000/16000 2500/2500
> delay_access 1 allow localnet NDS_net !to_localnets !our_guys !bad_guys

delay_access 1 deny all
> delay_class 2 2
> delay_parameters 1 64000/64000 32000/32000
> delay_access 2 allow our_guys !bad_guys

delay_access 2 deny all


И учти, что те, кто не попал в пулы, пройдёт вообще без ограничения скорости.
Возможно, тебе нужно что-то вроде
delay_access 1 deny to_localnets
delay_access 1 deny our_guys
delay_access 1 deny bad_guys
delay_access 1 allow localnet
delay_access 1 allow NDS_net
delay_access 1 deny all

delay_access 2 deny bad_guys
delay_access 2 allow our_guys
delay_access 2 deny all

   + какой-нибудь
http_access deny bad_guys
   (возможно, вместо всех упоминаний плохишей в пулах)

Ответить | Правка | ^ к родителю #0 | Наверх | Cообщить модератору

Архив | Удалить

Рекомендовать для помещения в FAQ | Индекс форумов | Темы | Пред. тема | След. тема




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

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