<?xml version="1.0" encoding="utf-8" ?>
<rss version="2.0"
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    <title>Odynia.org Blog - Unix / BSD</title>
    <link>http://blog.odynia.org/</link>
    <description>..</description>
    <dc:language>en</dc:language>
    
    <generator>Serendipity 0.9.1 - http://www.s9y.org/</generator>
    <pubDate>Tue, 30 May 2006 07:52:39 GMT</pubDate>

    <image>
        <url>http://blog.odynia.org/templates/wow/img/s9y_banner_small.png</url>
        <title>RSS: Odynia.org Blog - Unix / BSD - ..</title>
        <link>http://blog.odynia.org/</link>
        <width>100</width>
        <height>21</height>
    </image>
<item>
    <title>OpenBSD's pf and Queueing</title>
    <link>http://blog.odynia.org/archives/5-OpenBSDs-pf-and-Queueing.html</link>
<category>Unix / BSD</category>    <comments>http://blog.odynia.org/archives/5-OpenBSDs-pf-and-Queueing.html#comments</comments>
    <wfw:comment>http://blog.odynia.org/wfwcomment.php?cid=5</wfw:comment>
    <slash:comments>1</slash:comments>
    <wfw:commentRss>http://blog.odynia.org/rss.php?version=2.0&amp;type=comments&amp;cid=5</wfw:commentRss>
    <author>nospam@example.com (Robert Amos)</author>
    <content:encoded>
&lt;div&gt;Hi all,&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;Back before I moved in with my Fiancé I lived with a bunch of my mates in a house. I figured bandwidth prioritisation would be vital, as we were all heavy leachers. Two of us happened to have contracts with ADSL companies and there was a second phone line into the house so I built an OpenBSD box and used pf to load balance over the two, and provide some basic prioritisation of traffic to avoid having the links flattened &lt;img src=&quot;http://blog.odynia.org/templates/wow/img/emoticons/smile.png&quot; alt=&quot;:-)&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;My approach to solving the torrent problem was to tag torrent traffic on the way into the LAN side of the gateway box, and queue it using that tag on its way out the WAN side. This worked great, and allowed me to assign it the lowest priority, beneath the &quot;default&quot; queue and the rest of the traffic...&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;However, when moving I went to reconfigure it for a single link, and now it suddenly didn't work. I gave up on it for a while, until tonight. The problem is that while it correctly tags the torrents and assigns them to the right queue, about 90% of the torrent traffic still goes through the default queue, screwing up web browsing. So I ended up making the torrents the default lowest priority, and selectively increased the priority of everything else.&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;This seems to be working a treat, with the occasional bug (why are my ssh sessions still laggy? &lt;img src=&quot;http://blog.odynia.org/templates/wow/img/emoticons/sad.png&quot; alt=&quot;:-(&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt;) but I'll post what I have so far for any interested readers. Non queueing bits won't be posted for security reasons, they're not relevant to the queueing anyway.&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;color: #bbb; font-size: 10px;&quot;&gt;Click on a comment to hide it. Click &lt;a href=&quot;javascript:;&quot; onClick=&quot;show_comments_queueing()&quot;&gt;here&lt;/a&gt; to show all comments.&lt;/div&gt;
&lt;div style=&quot;padding: 5px; border: 1px solid #aaaaaa; background: #bbbbbb;&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;
&lt;span name=&quot;queueing&quot; id=&quot;queueing&quot; style=&quot;color: #FF8000&quot; onClick=&quot;this.style.visibility = 'hidden'; this.style.display = 'none';&quot;&gt;#&amp;#160;Make&amp;#160;pretty&amp;#160;port&amp;#160;macros&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;torrents&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;6881&amp;#160;37001&amp;#160;37002&amp;#160;37003&amp;#160;37000&quot;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;p2p&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;1214&amp;#160;5000&amp;#160;5555&amp;#160;6346&amp;#160;777&amp;#160;8331&amp;#160;8875&amp;#160;8888&amp;#160;6257&amp;#160;6699&quot;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;cvsup&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;5999&quot;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span name=&quot;queueing&quot; id=&quot;queueing&quot; style=&quot;color: #FF8000&quot; onClick=&quot;this.style.visibility = 'hidden'; this.style.display = 'none';&quot;&gt;#&amp;#160;Instant&amp;#160;Messaging&amp;#160;Clients&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;msn&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;1863&quot;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;jabber&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;5222&quot;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;icqaim&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;5190&quot;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;irc&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;6667&quot;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span name=&quot;queueing&quot; id=&quot;queueing&quot; style=&quot;color: #FF8000&quot; onClick=&quot;this.style.visibility = 'hidden'; this.style.display = 'none';&quot;&gt;#&amp;#160;VPN&amp;#160;/&amp;#160;Terminal&amp;#160;Stuff&amp;#160;/&amp;#160;Remote&amp;#160;Desktop&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;rdp&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;3389&quot;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;pptp&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;1723&quot;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;l2tp&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;1701&quot;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;vnc&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;5900&quot;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span name=&quot;queueing&quot; id=&quot;queueing&quot; style=&quot;color: #FF8000&quot; onClick=&quot;this.style.visibility = 'hidden'; this.style.display = 'none';&quot;&gt;#&amp;#160;Web&amp;#160;Traffic&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;web&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;80&amp;#160;443&quot;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;mail&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;110&amp;#160;25&quot;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span name=&quot;queueing&quot; id=&quot;queueing&quot; style=&quot;color: #FF8000&quot; onClick=&quot;this.style.visibility = 'hidden'; this.style.display = 'none';&quot;&gt;#&amp;#160;Groups&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;ssh_im_ports&amp;#160;&amp;#160;&amp;#160;&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;{&amp;#160;ssh&amp;#160;&quot;&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$msn&amp;#160;$jabber&amp;#160;$icqaim&amp;#160;$irc&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;}&quot;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;tunnel_ports&amp;#160;&amp;#160;&amp;#160;&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;{&quot;&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$rdp&amp;#160;$pptp&amp;#160;$l2tp&amp;#160;$vnc&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;}&quot;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;download_ports&amp;#160;&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;{&quot;&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$torrents&amp;#160;$p2p&amp;#160;$cvsup&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;}&quot;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;web_ports&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;=&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;{&quot;&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$web&amp;#160;$mail&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;}&quot;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span name=&quot;queueing&quot; id=&quot;queueing&quot; style=&quot;color: #FF8000&quot; onClick=&quot;this.style.visibility = 'hidden'; this.style.display = 'none';&quot;&gt;#&amp;#160;Control&amp;#160;for&amp;#160;outgoing&amp;#160;connections&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;altq&amp;#160;on&amp;#160;$ext_if&amp;#160;priq&amp;#160;bandwidth&amp;#160;256Kb&amp;#160;queue&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;{&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;downloads&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;web&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;tunnels&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;interactive&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;voip&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;control&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;}&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;queue&amp;#160;downloads&amp;#160;priority&amp;#160;3&amp;#160;priq&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(default)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;queue&amp;#160;web&amp;#160;priority&amp;#160;6&amp;#160;priq&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;red&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;queue&amp;#160;tunnels&amp;#160;priority&amp;#160;9&amp;#160;priq&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;red&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;queue&amp;#160;interactive&amp;#160;priority&amp;#160;12&amp;#160;priq&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;red&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;queue&amp;#160;voip&amp;#160;priority&amp;#160;14&amp;#160;priq&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;red&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;queue&amp;#160;control&amp;#160;priority&amp;#160;15&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span name=&quot;queueing&quot; id=&quot;queueing&quot; style=&quot;color: #FF8000&quot; onClick=&quot;this.style.visibility = 'hidden'; this.style.display = 'none';&quot;&gt;#&amp;#160;NAT&amp;#160;all&amp;#160;traffic&amp;#160;on&amp;#160;the&amp;#160;internal&amp;#160;network&amp;#160;back&amp;#160;out&amp;#160;to&amp;#160;the&amp;#160;big&amp;#160;bad&amp;#160;interweb&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;nat&amp;#160;on&amp;#160;$ext_if&amp;#160;from&amp;#160;$int_subnet&amp;#160;to&amp;#160;any&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;-&amp;gt;&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$ext_addr&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span name=&quot;queueing&quot; id=&quot;queueing&quot; style=&quot;color: #FF8000&quot; onClick=&quot;this.style.visibility = 'hidden'; this.style.display = 'none';&quot;&gt;#&amp;#160;Default&amp;#160;deny&amp;#160;everything&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;block&amp;#160;in&amp;#160;log&amp;#160;all&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span name=&quot;queueing&quot; id=&quot;queueing&quot; style=&quot;color: #FF8000&quot; onClick=&quot;this.style.visibility = 'hidden'; this.style.display = 'none';&quot;&gt;#&amp;#160;Tag&amp;#160;torrents&amp;#160;on&amp;#160;the&amp;#160;way&amp;#160;in&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;pass&amp;#160;in&amp;#160;on&amp;#160;$int_if&amp;#160;proto&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;tcp&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;udp&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;}&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;from&amp;#160;any&amp;#160;port&amp;#160;$download_ports&amp;#160;to&amp;#160;any&amp;#160;tag&amp;#160;torrents&amp;#160;keep&amp;#160;state&lt;br /&gt;pass&amp;#160;in&amp;#160;on&amp;#160;$int_if&amp;#160;proto&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;tcp&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;udp&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;}&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;from&amp;#160;any&amp;#160;to&amp;#160;any&amp;#160;port&amp;#160;$download_ports&amp;#160;tag&amp;#160;torrents&amp;#160;keep&amp;#160;state&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span name=&quot;queueing&quot; id=&quot;queueing&quot; style=&quot;color: #FF8000&quot; onClick=&quot;this.style.visibility = 'hidden'; this.style.display = 'none';&quot;&gt;#&amp;#160;Pass&amp;#160;out&amp;#160;queue&amp;#160;stuff&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;block&amp;#160;out&amp;#160;on&amp;#160;$ext_if&amp;#160;all&lt;br /&gt;pass&amp;#160;out&amp;#160;on&amp;#160;$ext_if&amp;#160;proto&amp;#160;tcp&amp;#160;from&amp;#160;any&amp;#160;to&amp;#160;any&amp;#160;flags&amp;#160;S&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;SA&amp;#160;modulate&amp;#160;state&amp;#160;queue&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;downloads&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;control&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;)&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;pass&amp;#160;out&amp;#160;on&amp;#160;$ext_if&amp;#160;proto&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;{&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;udp&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;icmp&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;}&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;from&amp;#160;any&amp;#160;to&amp;#160;any&amp;#160;keep&amp;#160;state&amp;#160;queue&amp;#160;downloads&lt;br /&gt;pass&amp;#160;out&amp;#160;on&amp;#160;$ext_if&amp;#160;proto&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;{&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;tcp&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;udp&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;}&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;from&amp;#160;any&amp;#160;to&amp;#160;any&amp;#160;port&amp;#160;$web_ports&amp;#160;keep&amp;#160;state&amp;#160;queue&amp;#160;web&lt;br /&gt;pass&amp;#160;out&amp;#160;on&amp;#160;$ext_if&amp;#160;proto&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;{&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;tcp&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;udp&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;}&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;from&amp;#160;any&amp;#160;to&amp;#160;any&amp;#160;port&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;{&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;domain&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;ntp&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;}&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;keep&amp;#160;state&amp;#160;queue&lt;br /&gt;control&lt;br /&gt;pass&amp;#160;out&amp;#160;on&amp;#160;$ext_if&amp;#160;proto&amp;#160;tcp&amp;#160;from&amp;#160;any&amp;#160;to&amp;#160;any&amp;#160;port&amp;#160;$ssh_im_ports&amp;#160;keep&amp;#160;state&amp;#160;queue&amp;#160;interactive&lt;br /&gt;pass&amp;#160;out&amp;#160;on&amp;#160;$ext_if&amp;#160;proto&amp;#160;tcp&amp;#160;from&amp;#160;any&amp;#160;to&amp;#160;any&amp;#160;port&amp;#160;$ssh_im_ports&amp;#160;flags&amp;#160;S&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;SA&amp;#160;keep&amp;#160;state&amp;#160;queue&lt;br /&gt;interactive&lt;br /&gt;pass&amp;#160;out&amp;#160;on&amp;#160;$ext_if&amp;#160;proto&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;{&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;tcp&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;udp&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;}&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;from&amp;#160;any&amp;#160;port&amp;#160;$download_ports&amp;#160;to&amp;#160;any&amp;#160;keep&amp;#160;state&amp;#160;queue&lt;br /&gt;downloads&lt;br /&gt;pass&amp;#160;out&amp;#160;on&amp;#160;$ext_if&amp;#160;tagged&amp;#160;torrents&amp;#160;keep&amp;#160;state&amp;#160;queue&amp;#160;downloads&lt;br /&gt;pass&amp;#160;out&amp;#160;on&amp;#160;$ext_if&amp;#160;proto&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;{&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;tcp&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;udp&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;}&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;from&amp;#160;any&amp;#160;to&amp;#160;any&amp;#160;port&amp;#160;$tunnel_ports&amp;#160;keep&amp;#160;state&amp;#160;queue&amp;#160;tunnels&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span name=&quot;queueing&quot; id=&quot;queueing&quot; style=&quot;color: #FF8000&quot; onClick=&quot;this.style.visibility = 'hidden'; this.style.display = 'none';&quot;&gt;#&amp;#160;Services&amp;#160;we&amp;#160;host&amp;#160;here&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;pass&amp;#160;in&amp;#160;on&amp;#160;$ext_if&amp;#160;proto&amp;#160;tcp&amp;#160;from&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;australia&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&amp;gt;&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;to&amp;#160;any&amp;#160;port&amp;#160;ssh&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span name=&quot;queueing&quot; id=&quot;queueing&quot; style=&quot;color: #FF8000&quot; onClick=&quot;this.style.visibility = 'hidden'; this.style.display = 'none';&quot;&gt;#&amp;#160;Banned&amp;#160;Hosts!&amp;#160;&amp;#160;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;block&amp;#160;in&amp;#160;on&amp;#160;$ext_if&amp;#160;from&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;china&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&amp;gt;&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;to&amp;#160;any&lt;br /&gt;block&amp;#160;in&amp;#160;on&amp;#160;$ext_if&amp;#160;from&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;korea&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&amp;gt;&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;to&amp;#160;any&lt;br /&gt;block&amp;#160;in&amp;#160;on&amp;#160;$ext_if&amp;#160;from&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;blacklist&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&amp;gt;&amp;#160;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;to&amp;#160;any&lt;br /&gt;&lt;/span&gt;
&lt;/span&gt;
&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;
&lt;script language=&quot;Javascript&quot;&gt; function show_comments_queueing () { var el = document.getElementsByName('queueing'); for (var i=0; i &lt; el.length; i++) { el[i].style.display = 'inline'; el[i].style.visibility = 'visible'; } }&lt;/script&gt;&lt;br /&gt;
&lt;div&gt;If anyone has any ideas as to why the torrent traffic would still be going out (the original rules were basically the same except for the default queue) please drop me a line. Any other comments or questions are welcome also.&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;Note the last 4 rules too, pf's tables are extremely handy at times &lt;img src=&quot;http://blog.odynia.org/templates/wow/img/emoticons/smile.png&quot; alt=&quot;:-)&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;-bok&lt;/div&gt;    </content:encoded>
                
    <pubDate>Tue, 30 May 2006 17:32:11 +1000</pubDate>
    <guid isPermaLink="false">http://blog.odynia.org/archives/5-guid.html</guid>
    </item>
</channel>
</rss>
