Все ленты — последние статьи

*2013 Мой новый SQUID по урезанию трафика

acl manager proto cache_object
acl localhost src 127.0.0.1/32 ::1
acl our_networks src 192.168.1.0/24


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

# почему то правило не сработало на бэд и включил всех во втором пуле вместо badclients....
acl goodclients src 192.168.1.105
#acl badclients src 192.168.1.101 192.168.1.102 192.168.1.108 192.168.109


acl block-site dstdomain .adriver.ru
acl block-site dstdomain .turboroller.ru
#acl block-site dstdomain .vk.com


#Создадим два пула по которым будут пролетать наши пользователи.
delay_pools 2
delay_class 1 1
delay_class 2 1

# Скоростные будут «лететь» по первому пулу.
delay_access 1 allow goodclients
delay_access 1 deny all

# А медленные по второму.
delay_access 2 allow our_networks
delay_access 2 deny all

#Ограничим скорость на пулах
#Первому дадим без ограничений
delay_parameters 1 -1/-1

#А второму установим в 128 килобит
delay_parameters 2 75000/75000


http_access deny block-site our_networks
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports


http_access allow our_networks
http_access allow manager localhost
http_access allow localhost
http_access allow !block-site our_networks

http_access deny all


http_port 3128


# Add any of your own refresh_pattern entries above these.
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/ ?) 0 0% 0
refresh_pattern . 0 20% 4320