[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]



Bob Toxen
bob at verysecurelinux.com               [Please use for email to me]
<a  rel="nofollow" href="http://www.verysecurelinux.com";>http://www.verysecurelinux.com</a>        [Network&amp;Linux/Unix security consulting]
<a  rel="nofollow" href="http://www.realworldlinuxsecurity.com";>http://www.realworldlinuxsecurity.com</a> [My book:&quot;Real World Linux Security 2/e&quot;]
Quality Linux &amp; UNIX security and SysAdmin &amp; software consulting since 1990.

&quot;Microsoft: Unsafe at any clock speed!&quot;
   -- Bob Toxen 10/03/2002

On Tue, May 24, 2005 at 12:52:25PM -0400, Jim Popovitch wrote:
&gt; On Tue, 2005-05-24 at 12:29 -0400, Christopher Fowler wrote:
&gt; &gt; On Tue, 2005-05-24 at 11:40, James Sumners wrote:
&gt; &gt; &gt; I am interested in controlling the bandwith of specific protocols
&gt; &gt; &gt; across a whole network.
&gt; &gt; 
&gt; &gt; What I want to do too.  I want to be sure that all traffic leaving my
&gt; &gt; network with a destination of port 25 has extremely low priority.  And
&gt; &gt; at most can consume no more than 10% of the total bandwidth.  I also
&gt; &gt; want my VOIP Packet8 device to have very high priority.  My firewall is
&gt; &gt; a 2.4.X machine so I'm sure things are different in 2.6.X vs 2.4.X. 

&gt; Iptables works on 2.4.x, I'm using it on several Redhat 7.3 boxes
&gt; (kernel 2.4.20) and 2.6.11 boxes

&gt; The problem w/ 10% is not something that (afaik) iptables can address.
&gt; That is a more advanced routing feature.

&gt; Here's some examples of what you can do with iptables, modify
&gt; accordingly:

&gt; #Slow down GoogleBot
&gt; iptables -A INPUT -i eth* -p tcp -s 64.68.82.0/24 -m tos --tos
&gt;  Minimize-Cost
&gt; iptables -A OUTPUT -o eth* -p tcp -d 64.68.82.0/24 -m tos --tos
&gt;  Minimize-Cost

&gt; #give high priority (Maximize-Reliability) status to SSH
&gt; iptables -A INPUT -i eth* -p tcp --dport 22 -m tos --tos
&gt;  Maximize-Reliability
&gt; iptables -A OUTPUT -o eth* -p tcp --sport 22 -m tos --tos
&gt;  Maximize-Reliability

&gt; #give high priority (Minimize-Delay) to http traffic
&gt; iptables -A INPUT -i eth* -p tcp --dport 80 -m tos --tos Minimize-Delay
&gt; iptables -A OUTPUT -o eth* -p tcp --sport 80 -m tos --tos Minimize-Delay

&gt; #give low priority (Minimize-Cost) status to in/out smtp traffic
&gt; iptables -A INPUT -i eth* -p tcp --dport 25 -m tos --tos Minimize-Cost
&gt; iptables -A OUTPUT -o eth* -p tcp --dport 25 -m tos --tos Minimize-Cost


&gt; see &quot;iptables -m tos -h' for other TOS values.

&gt; -Jim P.


</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<!--X-Follow-Ups-End-->
<!--X-References-->
<ul><li><strong>References</strong>:
<ul>
<li><strong><a name="00826" href="msg00826.html">[ale] b'bye</a></strong>
<ul><li><em>From:</em> jsheets at yahoo.com (Jerald Sheets)</li></ul></li>
<li><strong><a name="00828" href="msg00828.html">[ale] b'bye</a></strong>
<ul><li><em>From:</em> jrickman at gmail.com (Jonathan Rickman)</li></ul></li>
<li><strong><a name="00838" href="msg00838.html">[ale] b'bye</a></strong>
<ul><li><em>From:</em> cfowler at outpostsentinel.com (Christopher Fowler)</li></ul></li>
<li><strong><a name="00846" href="msg00846.html">[ale] b'bye</a></strong>
<ul><li><em>From:</em> groups at ChangingLINKS.com (ChangingLINKS.com)</li></ul></li>
<li><strong><a name="00847" href="msg00847.html">[ale] b'bye</a></strong>
<ul><li><em>From:</em> cfowler at outpostsentinel.com (Christopher Fowler)</li></ul></li>
<li><strong><a name="00850" href="msg00850.html">[ale] b'bye</a></strong>
<ul><li><em>From:</em> jimpop at yahoo.com (Jim Popovitch)</li></ul></li>
<li><strong><a name="00851" href="msg00851.html">[ale] b'bye</a></strong>
<ul><li><em>From:</em> james.sumners at gmail.com (James Sumners)</li></ul></li>
<li><strong><a name="00860" href="msg00860.html">[ale] b'bye</a></strong>
<ul><li><em>From:</em> cfowler at outpostsentinel.com (Christopher Fowler)</li></ul></li>
<li><strong><a name="00863" href="msg00863.html">[ale] iptables TOS (was: b'bye)</a></strong>
<ul><li><em>From:</em> jimpop at yahoo.com (Jim Popovitch)</li></ul></li>
</ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00937.html">[ale] Sound of Silence</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00939.html">[ale] NIC troubles</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00881.html">[ale] iptables TOS</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00945.html">[ale] QoS talk</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00938"><strong>Date</strong></a></li>
<li><a href="threads.html#00938"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>