<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Linux Forum &mdash; squid помогите разобраться]]></title>
	<link rel="self" href="https://linuxforum.ru/extern.php?action=feed&amp;tid=28843&amp;type=atom" />
	<updated>2013-06-30T06:24:42Z</updated>
	<generator>PunBB</generator>
	<id>https://linuxforum.ru/viewtopic.php?id=28843</id>
		<entry>
			<title type="html"><![CDATA[Re: squid помогите разобраться]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=352210#p352210" />
			<content type="html"><![CDATA[<p>Спасибо! Тему считаем решенной</p>]]></content>
			<author>
				<name><![CDATA[sotariz]]></name>
				<uri>https://linuxforum.ru/profile.php?id=13164</uri>
			</author>
			<updated>2013-06-30T06:24:42Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=352210#p352210</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: squid помогите разобраться]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=351827#p351827" />
			<content type="html"><![CDATA[<p>Все есть в документации<br /><a href="http://www.squid-cache.org/Doc/config/delay_parameters/">http://www.squid-cache.org/Doc/config/delay_parameters/</a><br /><a href="http://www.squid-cache.org/Doc/config/delay_class/">http://www.squid-cache.org/Doc/config/delay_class/</a></p><p>Описание ограничения для третьего класса<br /></p><div class="quotebox"><blockquote><p>For a class 3 delay pool:<br />&nbsp; &nbsp; &nbsp; &nbsp; delay_pools pool 3<br />&nbsp; &nbsp; &nbsp; &nbsp; delay_parameters pool aggregate network individual</p></blockquote></div><p>Описание третьего класса<br /></p><div class="quotebox"><blockquote><p>class 3&nbsp; &nbsp; &nbsp; &nbsp; Everything is limited by a single aggregate<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; bucket as well as a &quot;network&quot; bucket chosen<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; from bits 17 through 24 of the IP address and a<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;individual&quot; bucket chosen from bits 17 through<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 32 of the IPv4 address.</p></blockquote></div><p>pool - понятно<br />aggregate - ограничение для всех<br />network - ограничение для выделенной подсети 192.168.1.0/24<br />individual - ограничение на выбранный адрес 192.168.1.10<br />(возможно я неправильно перевел)</p>]]></content>
			<author>
				<name><![CDATA[marikk]]></name>
				<uri>https://linuxforum.ru/profile.php?id=20103</uri>
			</author>
			<updated>2013-06-27T05:04:34Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=351827#p351827</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: squid помогите разобраться]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=351745#p351745" />
			<content type="html"><![CDATA[<p><strong>marikk</strong>, вот именно такое объяснение я и желал) т.к. почитав несколько разных статей запутался в пулах/классах/параметрах.<br />единственное что пока не ясно это <br /></p><div class="quotebox"><blockquote><p>delay_parameters 3 64000/64000 32000/64000 6400/32000</p></blockquote></div><p>почему три параметра скорости, что они означают?</p>]]></content>
			<author>
				<name><![CDATA[sotariz]]></name>
				<uri>https://linuxforum.ru/profile.php?id=13164</uri>
			</author>
			<updated>2013-06-26T13:48:08Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=351745#p351745</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: squid помогите разобраться]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=351673#p351673" />
			<content type="html"><![CDATA[<p>Рекомендую прочитать для начала <br /><a href="http://www.opennet.ru/base/net/squid_inst.txt.html">http://www.opennet.ru/base/net/squid_inst.txt.html</a><br />Для более глубоко изучения конфига<br /><a href="http://www.squid-cache.org/Doc/config">http://www.squid-cache.org/Doc/config</a></p><p>Насколько я понял вы</p><p>создаете три канала по которым будете пускать юзеров<br /></p><div class="quotebox"><blockquote><p>delay_pools 3</p></blockquote></div><p>каждому каналу присваивается свой класс, трафик в канале лимитируется в зависимости от класса (подробней во второй ссылке)<br /></p><div class="quotebox"><blockquote><p>delay_class 1 1&nbsp; &nbsp;# pool 1 is class 1<br />delay_class 2 1&nbsp; &nbsp;# pool 2 is class 1<br />delay_class 3 3&nbsp; &nbsp;# pool 3 is class 3</p></blockquote></div><p>дальше вы распределяете пользователей по пулам (каналам). Здесь группе staff разрешено все остальным запрещено. Группа должна быть создана заранее<br /></p><div class="quotebox"><blockquote><p>delay_access 1 allow staff<br />delay_access 1 deny all</p></blockquote></div><p>Далее вы устанавливаете параметры для канала. Ограничение трафика или скорости или еще что это уже зависит от класса, который присвоен каналу<br /></p><div class="quotebox"><blockquote><p>delay_parameters 1 640000/640000<br />delay_parameters 2 64000/64000<br />delay_parameters 3 64000/64000 32000/64000 6400/32000</p></blockquote></div>]]></content>
			<author>
				<name><![CDATA[marikk]]></name>
				<uri>https://linuxforum.ru/profile.php?id=20103</uri>
			</author>
			<updated>2013-06-26T05:25:12Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=351673#p351673</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[squid помогите разобраться]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=351651#p351651" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>delay_pools 3     # 3 delay pools
delay_class 1 1   # pool 1 is class 1
delay_class 2 1   # pool 2 is class 1
delay_class 3 3   # pool 3 is class 3
delay_access 1 allow staff
delay_access 1 deny all
delay_access 2 allow students
delay_access 2 deny all
delay_access 3 allow college
delay_access 3 deny all
delay_parameters 1 640000/640000
delay_parameters 2 64000/64000
delay_parameters 3 64000/64000 32000/64000 6400/32000</code></pre></div><p>накопал в сети такой пример, но все равно ни как не могу понять что тут к чему... точнее понимаю 50/50, но не могу сообразить как это использовать во благо себе. у меня две группы хостов к которым я хочу применить правила ограничивающие скорость для всей группы... в идеале хочу дойти до решения своими мозгами)) по сему прошу прокомментировать сей кусок конфига.<br />Спасибо.</p>]]></content>
			<author>
				<name><![CDATA[sotariz]]></name>
				<uri>https://linuxforum.ru/profile.php?id=13164</uri>
			</author>
			<updated>2013-06-25T20:18:17Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=351651#p351651</id>
		</entry>
</feed>
