Стоит Squid 3, расширили канал до 30 мб, заметил что если поставить больше 9-10 м/бит всё ограничения снимаются, на маленьких скоростях 1,2,5 м/бит режет нормально,,, (оперативы 2 гб)
acl localhost src 127.0.0.1/32
acl to_localhost dst 127.0.0.0/8
acl localnet src 192.168.0.0/24
acl ip src "/var/sq/ip.txt"
acl user src "/var/sq/user.txt"
acl bad dstdom_regex "/var/sq/no.txt"
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 5190 # icq
acl Safe_ports port 1025-65535 # unregistered ports
acl CONNECT method CONNECT
http_access allow ip
http_access allow localnet
http_access allow localhost
http_access deny user bad
http_access allow user
http_access deny all
icp_access deny all
htcp_access deny all
http_port 192.168.0.246:3128 transparent
http_port 127.0.0.1:3128 transparent
cache_mem 1024 MB
maximum_object_size_in_memory 512 KB
cache_dir ufs /var/sq/cache 50000 16 256
maximum_object_size 24576 KB
access_log /var/log/squid3/access.log squid
cache_log /var/log/squid3/cache.log
cache_store_log none
pid_filename /var/run/squid3.pid
debug_options ALL,1
refresh_pattern ^ftp: &n... 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern (cgi-bin|\?) 0 0% 0
refresh_pattern . 0 20% 4320
quick_abort_min 16 KB
quick_abort_max 16 KB
quick_abort_pct 95
negative_ttl 5 minutes
positive_dns_ttl 6 hours
negative_dns_ttl 1 minutes
#request_header_access From deny all
#request_header_access Referer deny all
#request_header_access Server deny all
#request_header_access User-Agent deny all
#request_header_access WWW-Authenticate deny all
#request_header_access Link deny all
#header_replace User-Agent Opera/9.80 (Windows NT 6.1; U; ru) Presto/2.6.7 Version/11.00
cache_effective_user proxy
cache_effective_group proxy
visible_hostname server.ex
delay_pools 2
delay_class 1 1
delay_parameters 1 -1/-1
delay_access 1 allow ip
delay_access 1 deny all
delay_class 2 2
delay_parameters 2 500000/500000 200000/200000
delay_access 2 allow localnet
delay_access 2 allow user
delay_access 2 deny all
icp_port 3130
error_directory /usr/share/squid3/errors/Russian-koi8-r
#deny_info ERR_BLOCKED_BANNERS bad_url
#deny_info ERR_BLOCKED_BANNER_REG bad_url_reg
#deny_info ERR_BLOCKED_SPYWARE spyware
coredump_dir /var/sq/squid3_warm