sams не режит скорость

Простые/общие вопросы по UNIX системам. Спросите здесь, если вы новичок

Модераторы: vadim64, terminus

Правила форума
Убедительная просьба юзать теги [cоde] при оформлении листингов.
Сообщения не оформленные должным образом имеют все шансы быть незамеченными.
Аватара пользователя
Саша
мл. сержант
Сообщения: 126
Зарегистрирован: 2008-06-08 20:10:46
Контактная информация:

sams не режит скорость

Непрочитанное сообщение Саша » 2011-04-26 10:41:32

День добрый есть сервак на нём стоит squid +sams ограничение по сайтам всё есть ок а вот скорость не режит. создал шабло скорость поставил для
Скорость канала для всего шаблона (byte/s): 400
Скорость канала для отдельного пользователя (byte/s): 400
т.е ниже некуда, создал юзера присвоил ему этот шаблон сам переконфигурировал а юзер использует интернет по максимуму.......
чё мбт быть а?
читал что в сквидке наличие # TAG: acl обязательны, выставил всё так же....
fedora 2.6.33.3-85.fc13.i686
squid squid-3.1
SAMS v. 1.0.5

конфиг сквида

Код: Выделить всё


# created by SAMS _sams_ 2011-4-26 11:33:6
#
# Recommended minimum configuration:
#  TAG: auth_param
auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid/ncsa.sams
auth_param basic children 5
auth_param basic realm Welcome to pbaza web server
auth_param basic credentialsttl 2 hours
auth_param basic casesensitive off
forwarded_for off
acl EXP proxy_auth REQUIRED
http_access allow EXP
redirect_program /usr/local/bin/samsredir
#  TAG: acl
acl _sams_default proxy_auth "/etc/squid/default.sams"
acl _sams_default_time time MTWHFAS 00:00-23:00
acl _sams_4d3973c06cd7c proxy_auth "/etc/squid/4d3973c06cd7c.sams"
acl _sams_4d3973c06cd7c_time time MTWHFAS 00:00-23:59
acl _sams_4d3973caa4f8d proxy_auth "/etc/squid/4d3973caa4f8d.sams"
acl _sams_4d3973caa4f8d_time time MTWHFAS 00:00-23:59
acl _sams_4d3973db6fede proxy_auth "/etc/squid/4d3973db6fede.sams"
acl _sams_4d3973db6fede_time time MTWHFAS 00:00-23:59
acl _sams_4d592673cdc24 proxy_auth "/etc/squid/4d592673cdc24.sams"
acl _sams_4d592673cdc24_time_1 time MTWHFAS 19:00-24:0
acl _sams_4d592673cdc24_time_2 time MTWHFAS 0:0-07:00
acl _sams_4db66b86253e6 proxy_auth "/etc/squid/4db66b86253e6.sams"
acl _sams_4db66b86253e6_time time MTWHFAS 00:00-23:59
acl _sams_chat url_regex "/etc/squid/chat.sams"
acl _sams_porno url_regex "/etc/squid/porno.sams"
acl _sams_4d3c55ff2df0f url_regex "/etc/squid/4d3c55ff2df0f.sams"
acl _sams_disabled_id proxy_auth "/etc/squid/disabled_id.sams"
acl _sams_local_url dstdomain "/etc/squid/local_url.sams"
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
# Example rule allowing access from your local networks.
# Adapt to list your (internal) IP networks from where browsing
# should be allowed
acl localnet src 10.0.0.0/8     # RFC1918 possible internal network
acl localnet src 172.16.0.0/12  # RFC1918 possible internal network
acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
acl localnet src fc00::/7       # RFC 4193 local private network range
acl localnet src fe80::/10      # RFC 4291 link-local (directly plugged) machines

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
#  TAG: http_access
http_access allow _sams_default  _sams_default_time
http_access allow _sams_4d3973c06cd7c  _sams_4d3c55ff2df0f !_sams_chat !_sams_porno _sams_4d3973c06cd7c_time
http_access allow _sams_4d3973caa4f8d  _sams_4d3973caa4f8d_time
http_access allow _sams_4d3973db6fede  _sams_4d3c55ff2df0f _sams_4d3973db6fede_time
http_access allow _sams_4d592673cdc24  _sams_4d592673cdc24_time_1  _sams_4d592673cdc24_time_2
http_access allow _sams_4db66b86253e6  _sams_4db66b86253e6_time
http_access deny _sams_disabled_id !_sams_local_url
#
# Recommended minimum Access Permission configuration:
#
# Only allow cachemgr access from localhost
http_access allow localhost
http_access deny all
# Deny requests to certain unsafe ports
http_access deny !Safe_ports

# Deny CONNECT to other than secure SSL ports
http_access deny CONNECT !SSL_ports

# We strongly recommend the following be uncommented to protect innocent
# web applications running on the proxy server who think the only
# one who can access services on "localhost" is a local user
#http_access deny to_localhost

#
# INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS
#

# Example rule allowing access from your local networks.
# Adapt localnet in the ACL section to list your (internal) IP networks
# from where browsing should be allowed
http_access allow localnet
http_access allow localhost

# And finally deny all other access to this proxy
http_access deny all

# Squid normally listens to port 3128
http_port 192.168.0.2:3128
#http_port 192.168.0.2:3128 transparent
#http_port 3128 intercept
# We recommend you to use at least the following line.
hierarchy_stoplist cgi-bin ?

cache_mem 128 MB

maximum_object_size 10240 KB
maximum_object_size_in_memory 512 KB
# Uncomment and adjust the following to add a disk cache directory.
cache_dir ufs /var/spool/squid 10240 16 256

# Leave coredumps in the first cache dir
coredump_dir /var/spool/squid

reload_into_ims on

# 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
refresh_pattern \.bz2$          43200   100%    43200 override-lastmod override-expire ignore-reload ignore-no-cache
refresh_pattern \.exe$          43200   100%    43200 override-lastmod override-expire ignore-reload ignore-no-cache
refresh_pattern \.gif$          43200   100%    43200 override-lastmod override-expire ignore-reload ignore-no-cache
refresh_pattern \.gz$           43200   100%    43200 override-lastmod override-expire ignore-reload ignore-no-cache
refresh_pattern \.ico$          43200   100%    43200 override-lastmod override-expire ignore-reload ignore-no-cache
refresh_pattern \.jpg$          43200   100%    43200 override-lastmod override-expire ignore-reload ignore-no-cache
refresh_pattern \.mid$          43200   100%    43200 override-lastmod override-expire ignore-reload ignore-no-cache
refresh_pattern \.mp3$          43200   100%    43200 override-lastmod override-expire ignore-reload ignore-no-cache
refresh_pattern \.pdf$          43200   100%    43200 override-lastmod override-expire ignore-reload ignore-no-cache
refresh_pattern \.swf$          43200   100%    43200 override-lastmod override-expire ignore-reload ignore-no-cache
refresh_pattern \.tar$          43200   100%    43200 override-lastmod override-expire ignore-reload ignore-no-cache
refresh_pattern \.tgz$          43200   100%    43200 override-lastmod override-expire ignore-reload ignore-no-cache
refresh_pattern \.zip$          43200   100%    43200 override-lastmod override-expire ignore-reload ignore-no-cache
refresh_pattern http://ad\.                        43200   100%    43200 override-lastmod override-expire ignore-reload ignore-no-cache
refresh_pattern http://ads\.                       43200   100%    43200 override-lastmod override-expire ignore-reload ignore-no-cache
refresh_pattern http://adv\.                       43200   100%    43200 override-lastmod override-expire ignore-reload ignore-no-cache
refresh_pattern http://click\.                     43200   100%    43200 override-lastmod override-expire ignore-reload ignore-no-cache
refresh_pattern http://count\.                     43200   100%    43200 override-lastmod override-expire ignore-reload ignore-no-cache
refresh_pattern http://counter\.                   43200   100%    43200 override-lastmod override-expire ignore-reload ignore-no-cache
refresh_pattern http://engine\.                    43200   100%    43200 override-lastmod override-expire ignore-reload ignore-no-cache
refresh_pattern http://img\.readme\.ru             43200   100%    43200 override-lastmod override-expire ignore-reload ignore-no-cache
refresh_pattern http://userpic\.livejournal\.com   43200   100%    43200 override-lastmod override-expire ignore-reload ignore-no-cache
refresh_pattern \.jpg$          43200   100%    43200 override-lastmod override-expire ignore-reload ignore-no-cache
refresh_pattern \.mid$          43200   100%    43200 override-lastmod override-expire ignore-reload ignore-no-cache
refresh_pattern \.mp3$          43200   100%    43200 override-lastmod override-expire ignore-reload ignore-no-cache
refresh_pattern \.pdf$          43200   100%    43200 override-lastmod override-expire ignore-reload ignore-no-cache
refresh_pattern \.swf$          43200   100%    43200 override-lastmod override-expire ignore-reload ignore-no-cache
refresh_pattern \.tar$          43200   100%    43200 override-lastmod override-expire ignore-reload ignore-no-cache
refresh_pattern \.tgz$          43200   100%    43200 override-lastmod override-expire ignore-reload ignore-no-cache
refresh_pattern \.zip$          43200   100%    43200 override-lastmod override-expire ignore-reload ignore-no-cache
refresh_pattern http://ad\.                        43200   100%    43200 override-lastmod override-expire ignore-reload ignore-no-cache
refresh_pattern http://ads\.                       43200   100%    43200 override-lastmod override-expire ignore-reload ignore-no-cache
refresh_pattern http://adv\.                       43200   100%    43200 override-lastmod override-expire ignore-reload ignore-no-cache
refresh_pattern http://click\.                     43200   100%    43200 override-lastmod override-expire ignore-reload ignore-no-cache
refresh_pattern http://count\.                     43200   100%    43200 override-lastmod override-expire ignore-reload ignore-no-cache
refresh_pattern http://counter\.                   43200   100%    43200 override-lastmod override-expire ignore-reload ignore-no-cache
refresh_pattern http://engine\.                    43200   100%    43200 override-lastmod override-expire ignore-reload ignore-no-cache
refresh_pattern http://img\.readme\.ru             43200   100%    43200 override-lastmod override-expire ignore-reload ignore-no-cache
refresh_pattern http://userpic\.livejournal\.com   43200   100%    43200 override-lastmod override-expire ignore-reload ignore-no-cache
refresh_pattern \.ru/bf-analyze                    43200   100%    43200 override-lastmod override-expire ignore-reload ignore-no-cache
refresh_pattern \.ru/bf-si                         43200   100%    43200 override-lastmod override-expire ignore-reload ignore-no-cache
refresh_pattern /advs/                             43200   100%    43200 override-lastmod override-expire ignore-reload ignore-no-cache
refresh_pattern /banners/                          43200   100%    43200 override-lastmod override-expire ignore-reload ignore-no-cache
refresh_pattern /cgi-bin/iframe/                   43200   100%    43200 override-lastmod override-expire ignore-reload ignore-no-cache
refresh_pattern ^ftp:           1440    20%     10080
refresh_pattern ^gopher:        1440    0%      1440
refresh_pattern .               0       80%     14400

visible_hostname baza.lalala.ru


Хостинговая компания Host-Food.ru
Хостинг HostFood.ru
 

Услуги хостинговой компании Host-Food.ru

Хостинг HostFood.ru

Тарифы на хостинг в России, от 12 рублей: https://www.host-food.ru/tariffs/hosting/
Тарифы на виртуальные сервера (VPS/VDS/KVM) в РФ, от 189 руб.: https://www.host-food.ru/tariffs/virtualny-server-vps/
Выделенные сервера, Россия, Москва, от 2000 рублей (HP Proliant G5, Intel Xeon E5430 (2.66GHz, Quad-Core, 12Mb), 8Gb RAM, 2x300Gb SAS HDD, P400i, 512Mb, BBU):
https://www.host-food.ru/tariffs/vydelennyi-server-ds/
Недорогие домены в популярных зонах: https://www.host-food.ru/domains/

GhOsT_MZ
лейтенант
Сообщения: 662
Зарегистрирован: 2011-04-25 11:40:35
Контактная информация:

Re: sams не режит скорость

Непрочитанное сообщение GhOsT_MZ » 2011-04-26 11:38:11

Если я ничего не путаю, то нужно собрать ядро с DUMMYNET.
http://www.freebsd.org/cgi/man.cgi?query=dummynet

Аватара пользователя
Саша
мл. сержант
Сообщения: 126
Зарегистрирован: 2008-06-08 20:10:46
Контактная информация:

Re: sams не режит скорость

Непрочитанное сообщение Саша » 2011-04-26 12:08:29

GhOsT_MZ писал(а):Если я ничего не путаю, то нужно собрать ядро с DUMMYNET.
http://www.freebsd.org/cgi/man.cgi?query=dummynet
если в этом причина, то как проверить есть ли поддержка этой функции в ядре?

GhOsT_MZ
лейтенант
Сообщения: 662
Зарегистрирован: 2011-04-25 11:40:35
Контактная информация:

Re: sams не режит скорость

Непрочитанное сообщение GhOsT_MZ » 2011-04-26 12:11:21

О, только заметил, что ОС не фрибзд, а федора... Ну там я не знаю как проверить.