<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Paul Tow &#187; Tomato</title>
	<atom:link href="http://www.paultow.com/tag/tomato/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.paultow.com</link>
	<description>Tech writer for hire</description>
	<lastBuildDate>Thu, 24 Dec 2009 21:32:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>How to: Block ads with a router</title>
		<link>http://www.paultow.com/2009/06/10/how-to-block-ads-with-a-router/</link>
		<comments>http://www.paultow.com/2009/06/10/how-to-block-ads-with-a-router/#comments</comments>
		<pubDate>Wed, 10 Jun 2009 16:56:46 +0000</pubDate>
		<dc:creator>Paul Tow</dc:creator>
				<category><![CDATA[How to]]></category>
		<category><![CDATA[ad]]></category>
		<category><![CDATA[ad-blocking]]></category>
		<category><![CDATA[adblock]]></category>
		<category><![CDATA[annoyances]]></category>
		<category><![CDATA[Linksys]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[router]]></category>
		<category><![CDATA[Tomato]]></category>

		<guid isPermaLink="false">http://www.paultow.com/?p=65</guid>
		<description><![CDATA[Does the idea of blocking online advertisements appeal to you? Many solutions exist, such as the AdBlock Plus extension for Firefox, CSS-based ad-blocking, and Privoxy. What you may not be familiar with, however, is using a router to block ads. Imagine: ad-blocking for an entire network, for all browsers and all operating systems, without any [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright" title="Linksys WRT54G" src="http://www-es.linksys.com/servlet/Satellite?blobcol=urldata&amp;blobheadername1=Content-Type&amp;blobheadername2=Content-Disposition&amp;blobheadervalue1=image%2Fjpeg&amp;blobheadervalue2=inline%3B+filename%3DWRT54GL_med%252C2.jpg&amp;blobkey=id&amp;blobtable=MungoBlobs&amp;blobwhere=1130868514220&amp;ssbinary=true" alt="" width="135" height="114" />Does the idea of blocking online advertisements appeal to you? Many solutions exist, such as the <a href="http://www.adblockplus.org/">AdBlock Plus</a> extension for Firefox, CSS-based ad-blocking, and <a href="http://www.privoxy.org/">Privoxy</a>. What you may not be familiar with, however, is using a router to block ads. Imagine: ad-blocking for an entire network, for all browsers and all operating systems, without any additional configuration on the clients. This includes devices which might not otherwise have a way to block ads, and it can be made even nicer by having the router automatically update its ad-blocking rules. All you need is the <a href="http://www.polarcloud.com/tomato">Tomato firmware</a> on a compatible router and this guide.<span id="more-65"></span></p>
<ol>
<li>Check if you have a <a href="http://www.polarcloud.com/tomatofaq#what_will_this_run_on">compatible router</a>. If you do, follow the installation instructions carefully, realizing that you are modifying firmware at your own risk. Set your router as you like and then continue to step 2.</li>
<li>
<div id="attachment_48" class="wp-caption alignleft" style="width: 160px"><a href="http://www.paultow.com/wp-content/uploads/2007/07/tomato-init.jpg"><img class="size-thumbnail wp-image-48" title="Init script" src="http://www.paultow.com/wp-content/uploads/2007/07/tomato-init-150x150.jpg" alt="Administration -&gt; Scripts -&gt; Init" width="150" height="150" /></a><p class="wp-caption-text">Administration -&gt; Scripts -&gt; Init</p></div>
<p><br class="spacer_" /></p>
<p>In your router&#8217;s config panel, go to Administration -&gt; Scripts. Paste the following in the &#8220;Init&#8221; script, which will run when the router is booted. This will create an empty text file called adblock.conf</p>
<pre>sleep 3
touch /etc/adblock.conf
sleep 2
logger adblock.conf created</pre>
</li>
<p><br class="spacer_" /></p>
<li>
<p><div id="attachment_49" class="wp-caption alignleft" style="width: 160px"><a href="http://www.paultow.com/wp-content/uploads/2007/07/tomato-wan_up.jpg"><img class="size-thumbnail wp-image-49" title="WAN Up script" src="http://www.paultow.com/wp-content/uploads/2007/07/tomato-wan_up-150x150.jpg" alt="Administration -&gt; Scripts -&gt; WAN Up" width="150" height="150" /></a><p class="wp-caption-text">Administration -&gt; Scripts -&gt; WAN Up</p></div> <br class="spacer_" /></p>
<p>Once the router obtains an Internet/WAN connection, we want it to download the latest ad server list. Still under Administration -&gt; Scripts, choose WAN Up and paste the following:</p>
<pre>logger WAN UP Script will execute after 30sec please wait.....
sleep 30
wget -O /etc/adblock.conf "http://pgl.yoyo.org/adservers/serverlist.php?hostformat=dnsmasq&amp;showintro=0&amp;mimetype=plaintext"
service dnsmasq restart</pre>
</li>
<p> <br class="spacer_" /></p>
<li>
<p><div id="attachment_50" class="wp-caption alignleft" style="width: 160px"><a href="http://www.paultow.com/wp-content/uploads/2007/07/tomato-custom_1.jpg"><img class="size-thumbnail wp-image-50" title="Custom scheduler" src="http://www.paultow.com/wp-content/uploads/2007/07/tomato-custom_1-150x150.jpg" alt="Advanced -&gt; Scheduler" width="150" height="150" /></a><p class="wp-caption-text">Advanced -&gt; Scheduler</p></div> <br class="spacer_" /></p>
<p>Now we want to set the router to update its ad blocking rules on a regular basis. Go to Administration -&gt; Scheduler.</p>
</li>
<p><br class="spacer_" /><br class="spacer_" /><br class="spacer_" /><br class="spacer_" /></p>
<li>
<p>Check the box labeled &#8220;Enabled&#8221; under Custom 1, 2, or 3.</p>
</li>
<li>For the time, choose a reasonable update interval that isn&#8217;t overly aggressive. I chose to update once a week (every 10080 minutes, Everyday).</li>
<li>Paste the following into the box labeled &#8220;Command.&#8221;
<pre>wget -O /etc/adblock.conf "http://pgl.yoyo.org/adservers/serverlist.php?hostformat=dnsmasq&amp;showintro=0&amp;mimetype=plaintext" &amp;&amp; service dnsmasq restart;</pre>
</li>
<li>
<p><div id="attachment_51" class="wp-caption alignleft" style="width: 160px"><a href="http://www.paultow.com/wp-content/uploads/2007/07/tomato-dnsmasq.jpg"><img class="size-thumbnail wp-image-51" title="DNSmasq" src="http://www.paultow.com/wp-content/uploads/2007/07/tomato-dnsmasq-150x150.jpg" alt="Advanced -&gt; DHCP / DNS" width="150" height="150" /></a><p class="wp-caption-text">Advanced -&gt; DHCP / DNS</p></div> <br class="spacer_" /></p>
<p>Almost done! Go to Advanced -&gt; DHCP / DNS, and make sure that &#8220;Use Internal Caching DNS Forwarder&#8221; is checked.</p>
</li>
<p> <br class="spacer_" /><br class="spacer_" /><br class="spacer_" /><br class="spacer_" /></p>
<li>
<p>Paste the following into the box labeled &#8220;Dnsmasq custom configuration.&#8221;</p>
<pre>conf-file=/etc/adblock.conf</pre>
</li>
<li>If you ever suspect that the adblocking is breaking a particular website (such as streaming video), you can temporarily disable it just by removing the text in step 9.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.paultow.com/2009/06/10/how-to-block-ads-with-a-router/feed/</wfw:commentRss>
		<slash:comments>22</slash:comments>
		</item>
	</channel>
</rss>

