
<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://www.funtoo.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://www.funtoo.org/index.php?title=Traffic_Control&amp;feed=atom&amp;action=history</id>
		<title>Traffic Control - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://www.funtoo.org/index.php?title=Traffic_Control&amp;feed=atom&amp;action=history"/>
		<link rel="alternate" type="text/html" href="http://www.funtoo.org/index.php?title=Traffic_Control&amp;action=history"/>
		<updated>2013-06-19T14:18:50Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.20.6</generator>

	<entry>
		<id>http://www.funtoo.org/index.php?title=Traffic_Control&amp;diff=9278&amp;oldid=prev</id>
		<title>87.4.88.15: /* Other Links of Interest */</title>
		<link rel="alternate" type="text/html" href="http://www.funtoo.org/index.php?title=Traffic_Control&amp;diff=9278&amp;oldid=prev"/>
				<updated>2013-05-25T04:57:42Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Other Links of Interest&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr style='vertical-align: top;'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 04:57, 25 May 2013&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 142:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 142:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== Other Links of Interest ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== Other Links of Interest ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;* http://pupa.da.ru/tc/&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* http://manpages.ubuntu.com/manpages/maverick/en/man8/ufw.8.html&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* http://manpages.ubuntu.com/manpages/maverick/en/man8/ufw.8.html&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* https://help.ubuntu.com/community/UFW&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* https://help.ubuntu.com/community/UFW&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>87.4.88.15</name></author>	</entry>

	<entry>
		<id>http://www.funtoo.org/index.php?title=Traffic_Control&amp;diff=3305&amp;oldid=prev</id>
		<title>Drobbins: /* SSH */</title>
		<link rel="alternate" type="text/html" href="http://www.funtoo.org/index.php?title=Traffic_Control&amp;diff=3305&amp;oldid=prev"/>
				<updated>2011-06-29T04:44:24Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;SSH&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr style='vertical-align: top;'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 04:44, 29 June 2011&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 117:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 117:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;To use this code, place it ''near the top of the file'', just below the &amp;lt;tt&amp;gt;modemif=&amp;quot;eth4&amp;quot;&amp;lt;/tt&amp;gt; line, but ''before'' the main &amp;lt;tt&amp;gt;iptables&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;tc&amp;lt;/tt&amp;gt; rules. These rules will apply to ''all'' packets about to get queued to any interface, but this is not necessarily a bad thing, since the TCP flags being set are not just specific to our traffic control functionality. To make these rules specific to &amp;lt;tt&amp;gt;modemif&amp;lt;/tt&amp;gt;, add &amp;quot;-o $modemif&amp;quot; after &amp;quot;-A POSTROUTING&amp;quot; on the last line, above. As-is, the rules above will set the TCP flags on all packets flowing out of all interfaces, but the the traffic control rules will only take effect for &amp;lt;tt&amp;gt;modemif&amp;lt;/tt&amp;gt;, because they are only configured for that interface.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;To use this code, place it ''near the top of the file'', just below the &amp;lt;tt&amp;gt;modemif=&amp;quot;eth4&amp;quot;&amp;lt;/tt&amp;gt; line, but ''before'' the main &amp;lt;tt&amp;gt;iptables&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;tc&amp;lt;/tt&amp;gt; rules. These rules will apply to ''all'' packets about to get queued to any interface, but this is not necessarily a bad thing, since the TCP flags being set are not just specific to our traffic control functionality. To make these rules specific to &amp;lt;tt&amp;gt;modemif&amp;lt;/tt&amp;gt;, add &amp;quot;-o $modemif&amp;quot; after &amp;quot;-A POSTROUTING&amp;quot; on the last line, above. As-is, the rules above will set the TCP flags on all packets flowing out of all interfaces, but the the traffic control rules will only take effect for &amp;lt;tt&amp;gt;modemif&amp;lt;/tt&amp;gt;, because they are only configured for that interface.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;SSH is a tricky protocol. By default, all SSH traffic is classified as &amp;quot;minimize-delay&amp;quot; traffic, which will cause it to all flow into our high-priority class, even if it is a bulk &amp;lt;tt&amp;gt;scp&amp;lt;/tt&amp;gt; transfer running in the background. This code will grab all &amp;quot;minimize-delay&amp;quot; traffic such as SSH and telnet and route it through some special rules. Any individual keystrokes (small packets) will be left as &amp;quot;minimize-delay&amp;quot; packets. For anything else, we will run the &amp;lt;tt&amp;gt;hashlimit&amp;lt;/tt&amp;gt; iptables module, which will identify individual flows and allow small bursts of traffic (even big packets) to remain &amp;quot;minimize-delay&amp;quot; packets. These settings have been specifically tuned so that most &amp;lt;tt&amp;gt;GNU screen&amp;lt;/tt&amp;gt; screen changes (^A^N) will be fast. Any traffic over these burst limits will be reclassified as &amp;quot;maximize-throughput&amp;quot; and thus will drop to our lower-priority class 1:12.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;SSH is a tricky protocol. By default, all &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;the outgoing &lt;/ins&gt;SSH traffic is classified as &amp;quot;minimize-delay&amp;quot; traffic, which will cause it to all flow into our high-priority class, even if it is a bulk &amp;lt;tt&amp;gt;scp&amp;lt;/tt&amp;gt; transfer running in the background. This code will grab all &amp;quot;minimize-delay&amp;quot; traffic such as SSH and telnet and route it through some special rules. Any individual keystrokes (small packets) will be left as &amp;quot;minimize-delay&amp;quot; packets. For anything else, we will run the &amp;lt;tt&amp;gt;hashlimit&amp;lt;/tt&amp;gt; iptables module, which will identify individual &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;outbound &lt;/ins&gt;flows and allow small bursts of traffic (even big packets) to remain &amp;quot;minimize-delay&amp;quot; packets. These settings have been specifically tuned so that most &amp;lt;tt&amp;gt;GNU screen&amp;lt;/tt&amp;gt; screen changes (^A^N) &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;when logging into your server(s) remotely &lt;/ins&gt;will be fast. Any traffic over these burst limits will be reclassified as &amp;quot;maximize-throughput&amp;quot; and thus will drop to our lower-priority class 1:12&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;. Combined with the traffic control rules, this will allow you to have very responsive SSH sessions into your servers, even if they are doing some kind of bulk outbound copy, like rsync over SSH&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Code in our main &amp;lt;tt&amp;gt;iptables&amp;lt;/tt&amp;gt; rules will ensure that any &amp;quot;minimize-delay&amp;quot; traffic is tagged to be in the high-priority 1:10 class.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Code in our main &amp;lt;tt&amp;gt;iptables&amp;lt;/tt&amp;gt; rules will ensure that any &amp;quot;minimize-delay&amp;quot; traffic is tagged to be in the high-priority 1:10 class.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Drobbins</name></author>	</entry>

	<entry>
		<id>http://www.funtoo.org/index.php?title=Traffic_Control&amp;diff=3304&amp;oldid=prev</id>
		<title>Drobbins: /* ACKs */</title>
		<link rel="alternate" type="text/html" href="http://www.funtoo.org/index.php?title=Traffic_Control&amp;diff=3304&amp;oldid=prev"/>
				<updated>2011-06-29T04:42:20Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;ACKs&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr style='vertical-align: top;'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 04:42, 29 June 2011&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 137:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 137:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;To use this code, place it ''near the top of the file, just below the &amp;lt;tt&amp;gt;modemif=&amp;quot;eth4&amp;quot;&amp;lt;/tt&amp;gt; line, but ''before'' the main &amp;lt;tt&amp;gt;iptables&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;tc&amp;lt;/tt&amp;gt; rules.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;To use this code, place it ''near the top of the file, just below the &amp;lt;tt&amp;gt;modemif=&amp;quot;eth4&amp;quot;&amp;lt;/tt&amp;gt; line, but ''before'' the main &amp;lt;tt&amp;gt;iptables&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;tc&amp;lt;/tt&amp;gt; rules.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;ACK optimization is another useful thing to do. If we prioritize small ACKs, it will allow TCP traffic to flow more smoothly without unnecessary delay.&amp;#160; The lines above accomplish this.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;ACK optimization is another useful thing to do. If we prioritize small ACKs &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;heading out to the modem&lt;/ins&gt;, it will allow TCP traffic to flow more smoothly without unnecessary delay.&amp;#160; The lines above accomplish this.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;This code basically sets the &amp;quot;minimize-delay&amp;quot; flag on small ACKs. Code in our main &amp;lt;tt&amp;gt;iptables&amp;lt;/tt&amp;gt; rules will then tag these packets so they enter high-priority traffic class 1:10.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;This code basically sets the &amp;quot;minimize-delay&amp;quot; flag on small ACKs. Code in our main &amp;lt;tt&amp;gt;iptables&amp;lt;/tt&amp;gt; rules will then tag these packets so they enter high-priority traffic class 1:10.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Drobbins</name></author>	</entry>

	<entry>
		<id>http://www.funtoo.org/index.php?title=Traffic_Control&amp;diff=3303&amp;oldid=prev</id>
		<title>Drobbins: /* ACKs */</title>
		<link rel="alternate" type="text/html" href="http://www.funtoo.org/index.php?title=Traffic_Control&amp;diff=3303&amp;oldid=prev"/>
				<updated>2011-06-29T04:41:39Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;ACKs&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr style='vertical-align: top;'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 04:41, 29 June 2011&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 137:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 137:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;To use this code, place it ''near the top of the file, just below the &amp;lt;tt&amp;gt;modemif=&amp;quot;eth4&amp;quot;&amp;lt;/tt&amp;gt; line, but ''before'' the main &amp;lt;tt&amp;gt;iptables&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;tc&amp;lt;/tt&amp;gt; rules.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;To use this code, place it ''near the top of the file, just below the &amp;lt;tt&amp;gt;modemif=&amp;quot;eth4&amp;quot;&amp;lt;/tt&amp;gt; line, but ''before'' the main &amp;lt;tt&amp;gt;iptables&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;tc&amp;lt;/tt&amp;gt; rules.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;ACK optimization is another useful thing to do. If we prioritize small ACKs, it will allow TCP traffic to flow more smoothly without unnecessary delay.&amp;#160; The &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;following &lt;/del&gt;lines accomplish this&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;:&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;ACK optimization is another useful thing to do. If we prioritize small ACKs, it will allow TCP traffic to flow more smoothly without unnecessary delay.&amp;#160; The lines &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;above &lt;/ins&gt;accomplish this&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;This code basically sets the &amp;quot;minimize-delay&amp;quot; flag on small ACKs. Code in our main &amp;lt;tt&amp;gt;iptables&amp;lt;/tt&amp;gt; rules will then tag these packets so they enter high-priority traffic class 1:10.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;This code basically sets the &amp;quot;minimize-delay&amp;quot; flag on small ACKs. Code in our main &amp;lt;tt&amp;gt;iptables&amp;lt;/tt&amp;gt; rules will then tag these packets so they enter high-priority traffic class 1:10.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Drobbins</name></author>	</entry>

	<entry>
		<id>http://www.funtoo.org/index.php?title=Traffic_Control&amp;diff=3302&amp;oldid=prev</id>
		<title>Drobbins at 03:37, 2 June 2011</title>
		<link rel="alternate" type="text/html" href="http://www.funtoo.org/index.php?title=Traffic_Control&amp;diff=3302&amp;oldid=prev"/>
				<updated>2011-06-02T03:37:19Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr style='vertical-align: top;'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 03:37, 2 June 2011&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 150:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 150:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Category:Articles]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Category:Articles]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Category:Featured]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Category:Featured]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Networking]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Drobbins</name></author>	</entry>

	<entry>
		<id>http://www.funtoo.org/index.php?title=Traffic_Control&amp;diff=3301&amp;oldid=prev</id>
		<title>Drobbins: /* SSH */</title>
		<link rel="alternate" type="text/html" href="http://www.funtoo.org/index.php?title=Traffic_Control&amp;diff=3301&amp;oldid=prev"/>
				<updated>2011-05-26T04:00:26Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;SSH&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr style='vertical-align: top;'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 04:00, 26 May 2011&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 107:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 107:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;iptables -t mangle -A tosfix -p tcp -m length --length 0:512 -j RETURN&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;iptables -t mangle -A tosfix -p tcp -m length --length 0:512 -j RETURN&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;#allow screen redraws under interactive SSH sessions to be fast:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;#allow screen redraws under interactive SSH sessions to be fast:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;iptables -t mangle -A tosfix -m hashlimit --hashlimit 20/sec --hashlimit-burst 20 --hashlimit-mode srcip,srcport,dstip,dstport --hashlimit-name minlat -j RETURN&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;iptables -t mangle -A tosfix -m hashlimit --hashlimit 20/sec --hashlimit-burst 20 &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;\&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;--hashlimit-mode srcip,srcport,dstip,dstport --hashlimit-name minlat -j RETURN&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;iptables -t mangle -A tosfix -j TOS --set-tos Maximize-Throughput&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;iptables -t mangle -A tosfix -j TOS --set-tos Maximize-Throughput&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;iptables -t mangle -A tosfix -j RETURN&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;iptables -t mangle -A tosfix -j RETURN&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 114:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 115:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;To use this code, place it ''near the top of the file, just below the &amp;lt;tt&amp;gt;modemif=&amp;quot;eth4&amp;quot;&amp;lt;/tt&amp;gt; line, but ''before'' the main &amp;lt;tt&amp;gt;iptables&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;tc&amp;lt;/tt&amp;gt; rules. These rules will apply to ''all'' packets about to get queued to any interface, but this is not necessarily a bad thing, since the TCP flags being set are not just specific to our traffic control functionality. To make these rules specific to &amp;lt;tt&amp;gt;modemif&amp;lt;/tt&amp;gt;, add &amp;quot;-o $modemif&amp;quot; after &amp;quot;-A POSTROUTING&amp;quot; on the last line, above. As-is, the rules above will set the TCP flags on all packets flowing out of all interfaces, but the the traffic control rules will only take effect for &amp;lt;tt&amp;gt;modemif&amp;lt;/tt&amp;gt;, because they are only configured for that interface.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;To use this code, place it ''near the top of the file&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;''&lt;/ins&gt;, just below the &amp;lt;tt&amp;gt;modemif=&amp;quot;eth4&amp;quot;&amp;lt;/tt&amp;gt; line, but ''before'' the main &amp;lt;tt&amp;gt;iptables&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;tc&amp;lt;/tt&amp;gt; rules. These rules will apply to ''all'' packets about to get queued to any interface, but this is not necessarily a bad thing, since the TCP flags being set are not just specific to our traffic control functionality. To make these rules specific to &amp;lt;tt&amp;gt;modemif&amp;lt;/tt&amp;gt;, add &amp;quot;-o $modemif&amp;quot; after &amp;quot;-A POSTROUTING&amp;quot; on the last line, above. As-is, the rules above will set the TCP flags on all packets flowing out of all interfaces, but the the traffic control rules will only take effect for &amp;lt;tt&amp;gt;modemif&amp;lt;/tt&amp;gt;, because they are only configured for that interface.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;SSH is a tricky protocol. By default, all SSH traffic is classified as &amp;quot;minimize-delay&amp;quot; traffic, which will cause it to all flow into our high-priority class, even if it is a bulk &amp;lt;tt&amp;gt;scp&amp;lt;/tt&amp;gt; transfer running in the background. This code will grab all &amp;quot;minimize-delay&amp;quot; traffic such as SSH and telnet and route it through some special rules. Any individual keystrokes (small packets) will be left as &amp;quot;minimize-delay&amp;quot; packets. For anything else, we will run the &amp;lt;tt&amp;gt;hashlimit&amp;lt;/tt&amp;gt; iptables module, which will identify individual flows and allow small bursts of traffic (even big packets) to remain &amp;quot;minimize-delay&amp;quot; packets. These settings have been specifically tuned so that most &amp;lt;tt&amp;gt;GNU screen&amp;lt;/tt&amp;gt; screen changes (^A^N) will be fast. Any traffic over these burst limits will be reclassified as &amp;quot;maximize-throughput&amp;quot; and thus will drop to our lower-priority class 1:12.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;SSH is a tricky protocol. By default, all SSH traffic is classified as &amp;quot;minimize-delay&amp;quot; traffic, which will cause it to all flow into our high-priority class, even if it is a bulk &amp;lt;tt&amp;gt;scp&amp;lt;/tt&amp;gt; transfer running in the background. This code will grab all &amp;quot;minimize-delay&amp;quot; traffic such as SSH and telnet and route it through some special rules. Any individual keystrokes (small packets) will be left as &amp;quot;minimize-delay&amp;quot; packets. For anything else, we will run the &amp;lt;tt&amp;gt;hashlimit&amp;lt;/tt&amp;gt; iptables module, which will identify individual flows and allow small bursts of traffic (even big packets) to remain &amp;quot;minimize-delay&amp;quot; packets. These settings have been specifically tuned so that most &amp;lt;tt&amp;gt;GNU screen&amp;lt;/tt&amp;gt; screen changes (^A^N) will be fast. Any traffic over these burst limits will be reclassified as &amp;quot;maximize-throughput&amp;quot; and thus will drop to our lower-priority class 1:12.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Drobbins</name></author>	</entry>

	<entry>
		<id>http://www.funtoo.org/index.php?title=Traffic_Control&amp;diff=3300&amp;oldid=prev</id>
		<title>Drobbins at 15:44, 24 May 2011</title>
		<link rel="alternate" type="text/html" href="http://www.funtoo.org/index.php?title=Traffic_Control&amp;diff=3300&amp;oldid=prev"/>
				<updated>2011-05-24T15:44:25Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr style='vertical-align: top;'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 15:44, 24 May 2011&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 148:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 148:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Category:Investigations]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Category:Investigations]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Category:Articles]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Category:Articles]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Featured]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Drobbins</name></author>	</entry>

	<entry>
		<id>http://www.funtoo.org/index.php?title=Traffic_Control&amp;diff=3299&amp;oldid=prev</id>
		<title>Drobbins at 08:07, 23 February 2011</title>
		<link rel="alternate" type="text/html" href="http://www.funtoo.org/index.php?title=Traffic_Control&amp;diff=3299&amp;oldid=prev"/>
				<updated>2011-02-23T08:07:08Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr style='vertical-align: top;'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 08:07, 23 February 2011&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 147:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 147:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Category:Investigations]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Category:Investigations]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Articles]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Drobbins</name></author>	</entry>

	<entry>
		<id>http://www.funtoo.org/index.php?title=Traffic_Control&amp;diff=3298&amp;oldid=prev</id>
		<title>Drobbins: /* SSH */</title>
		<link rel="alternate" type="text/html" href="http://www.funtoo.org/index.php?title=Traffic_Control&amp;diff=3298&amp;oldid=prev"/>
				<updated>2011-02-19T05:14:30Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;SSH&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr style='vertical-align: top;'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 05:14, 19 February 2011&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 114:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 114:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;To use this code, place it ''near the top of the file, just below the &amp;lt;tt&amp;gt;modemif=&amp;quot;eth4&amp;quot;&amp;lt;/tt&amp;gt; line, but ''before'' the main &amp;lt;tt&amp;gt;iptables&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;tc&amp;lt;/tt&amp;gt; rules. These rules will apply to ''all'' packets about to get queued to any interface, but this is not necessarily a bad thing, since the TCP flags being set are not just specific to our traffic control functionality. To make these rules specific to &amp;lt;tt&amp;gt;modemif&amp;lt;/tt&amp;gt;, add &amp;quot;-o $modemif&amp;quot; after &amp;quot;-A POSTROUTING&amp;quot; on the last line, above.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;To use this code, place it ''near the top of the file, just below the &amp;lt;tt&amp;gt;modemif=&amp;quot;eth4&amp;quot;&amp;lt;/tt&amp;gt; line, but ''before'' the main &amp;lt;tt&amp;gt;iptables&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;tc&amp;lt;/tt&amp;gt; rules. These rules will apply to ''all'' packets about to get queued to any interface, but this is not necessarily a bad thing, since the TCP flags being set are not just specific to our traffic control functionality. To make these rules specific to &amp;lt;tt&amp;gt;modemif&amp;lt;/tt&amp;gt;, add &amp;quot;-o $modemif&amp;quot; after &amp;quot;-A POSTROUTING&amp;quot; on the last line, above&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;. As-is, the rules above will set the TCP flags on all packets flowing out of all interfaces, but the the traffic control rules will only take effect for &amp;lt;tt&amp;gt;modemif&amp;lt;/tt&amp;gt;, because they are only configured for that interface&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;SSH is a tricky protocol. By default, all SSH traffic is classified as &amp;quot;minimize-delay&amp;quot; traffic, which will cause it to all flow into our high-priority class, even if it is a bulk &amp;lt;tt&amp;gt;scp&amp;lt;/tt&amp;gt; transfer running in the background. This code will grab all &amp;quot;minimize-delay&amp;quot; traffic such as SSH and telnet and route it through some special rules. Any individual keystrokes (small packets) will be left as &amp;quot;minimize-delay&amp;quot; packets. For anything else, we will run the &amp;lt;tt&amp;gt;hashlimit&amp;lt;/tt&amp;gt; iptables module, which will identify individual flows and allow small bursts of traffic (even big packets) to remain &amp;quot;minimize-delay&amp;quot; packets. These settings have been specifically tuned so that most &amp;lt;tt&amp;gt;GNU screen&amp;lt;/tt&amp;gt; screen changes (^A^N) will be fast. Any traffic over these burst limits will be reclassified as &amp;quot;maximize-throughput&amp;quot; and thus will drop to our lower-priority class 1:12.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;SSH is a tricky protocol. By default, all SSH traffic is classified as &amp;quot;minimize-delay&amp;quot; traffic, which will cause it to all flow into our high-priority class, even if it is a bulk &amp;lt;tt&amp;gt;scp&amp;lt;/tt&amp;gt; transfer running in the background. This code will grab all &amp;quot;minimize-delay&amp;quot; traffic such as SSH and telnet and route it through some special rules. Any individual keystrokes (small packets) will be left as &amp;quot;minimize-delay&amp;quot; packets. For anything else, we will run the &amp;lt;tt&amp;gt;hashlimit&amp;lt;/tt&amp;gt; iptables module, which will identify individual flows and allow small bursts of traffic (even big packets) to remain &amp;quot;minimize-delay&amp;quot; packets. These settings have been specifically tuned so that most &amp;lt;tt&amp;gt;GNU screen&amp;lt;/tt&amp;gt; screen changes (^A^N) will be fast. Any traffic over these burst limits will be reclassified as &amp;quot;maximize-throughput&amp;quot; and thus will drop to our lower-priority class 1:12.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Drobbins</name></author>	</entry>

	<entry>
		<id>http://www.funtoo.org/index.php?title=Traffic_Control&amp;diff=3297&amp;oldid=prev</id>
		<title>Drobbins: /* SSH */</title>
		<link rel="alternate" type="text/html" href="http://www.funtoo.org/index.php?title=Traffic_Control&amp;diff=3297&amp;oldid=prev"/>
				<updated>2011-02-19T05:12:36Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;SSH&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr style='vertical-align: top;'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 05:12, 19 February 2011&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 114:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 114:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;To use this code, place it ''near the top of the file, just below the &amp;lt;tt&amp;gt;modemif=&amp;quot;eth4&amp;quot;&amp;lt;/tt&amp;gt; line, but ''before'' the main &amp;lt;tt&amp;gt;iptables&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;tc&amp;lt;/tt&amp;gt; rules. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;It &lt;/del&gt;will apply to ''all'' packets about to get queued to any interface, but this is not necessarily a bad thing, since the TCP flags being set are not just specific to our traffic control functionality. To make these rules specific to &amp;lt;tt&amp;gt;modemif&amp;lt;/tt&amp;gt;, add &amp;quot;-o $modemif&amp;quot; after &amp;quot;-A POSTROUTING&amp;quot; on the last line, above.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;To use this code, place it ''near the top of the file, just below the &amp;lt;tt&amp;gt;modemif=&amp;quot;eth4&amp;quot;&amp;lt;/tt&amp;gt; line, but ''before'' the main &amp;lt;tt&amp;gt;iptables&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;tc&amp;lt;/tt&amp;gt; rules. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;These rules &lt;/ins&gt;will apply to ''all'' packets about to get queued to any interface, but this is not necessarily a bad thing, since the TCP flags being set are not just specific to our traffic control functionality. To make these rules specific to &amp;lt;tt&amp;gt;modemif&amp;lt;/tt&amp;gt;, add &amp;quot;-o $modemif&amp;quot; after &amp;quot;-A POSTROUTING&amp;quot; on the last line, above.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;SSH is a tricky protocol. By default, all SSH traffic is classified as &amp;quot;minimize-delay&amp;quot; traffic, which will cause it to all flow into our high-priority class, even if it is a bulk &amp;lt;tt&amp;gt;scp&amp;lt;/tt&amp;gt; transfer running in the background. This code will grab all &amp;quot;minimize-delay&amp;quot; traffic such as SSH and telnet and route it through some special rules. Any individual keystrokes (small packets) will be left as &amp;quot;minimize-delay&amp;quot; packets. For anything else, we will run the &amp;lt;tt&amp;gt;hashlimit&amp;lt;/tt&amp;gt; iptables module, which will identify individual flows and allow small bursts of traffic (even big packets) to remain &amp;quot;minimize-delay&amp;quot; packets. These settings have been specifically tuned so that most &amp;lt;tt&amp;gt;GNU screen&amp;lt;/tt&amp;gt; screen changes (^A^N) will be fast. Any traffic over these burst limits will be reclassified as &amp;quot;maximize-throughput&amp;quot; and thus will drop to our lower-priority class 1:12.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;SSH is a tricky protocol. By default, all SSH traffic is classified as &amp;quot;minimize-delay&amp;quot; traffic, which will cause it to all flow into our high-priority class, even if it is a bulk &amp;lt;tt&amp;gt;scp&amp;lt;/tt&amp;gt; transfer running in the background. This code will grab all &amp;quot;minimize-delay&amp;quot; traffic such as SSH and telnet and route it through some special rules. Any individual keystrokes (small packets) will be left as &amp;quot;minimize-delay&amp;quot; packets. For anything else, we will run the &amp;lt;tt&amp;gt;hashlimit&amp;lt;/tt&amp;gt; iptables module, which will identify individual flows and allow small bursts of traffic (even big packets) to remain &amp;quot;minimize-delay&amp;quot; packets. These settings have been specifically tuned so that most &amp;lt;tt&amp;gt;GNU screen&amp;lt;/tt&amp;gt; screen changes (^A^N) will be fast. Any traffic over these burst limits will be reclassified as &amp;quot;maximize-throughput&amp;quot; and thus will drop to our lower-priority class 1:12.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Drobbins</name></author>	</entry>

	</feed>