<?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>Maeyanie.com &#187; Mae&#8217;s Days</title>
	<atom:link href="http://www.maeyanie.com/category/maes-days/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.maeyanie.com</link>
	<description>Home of the world&#039;s first modder to tick off the ESRB.</description>
	<lastBuildDate>Tue, 27 Dec 2011 20:19:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Efficient IPTables PeerGuardian Blocklist</title>
		<link>http://www.maeyanie.com/2008/12/efficient-iptables-peerguardian-blocklist/</link>
		<comments>http://www.maeyanie.com/2008/12/efficient-iptables-peerguardian-blocklist/#comments</comments>
		<pubDate>Thu, 18 Dec 2008 09:08:43 +0000</pubDate>
		<dc:creator>Maeyanie</dc:creator>
				<category><![CDATA[Mae's Days]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://www.maeyanie.com/?p=55</guid>
		<description><![CDATA[I like being watched as little as the next girl. But so far, the only Linux-based automatic PeerGuardian blocklist updater I&#8217;ve seen has been horribly inefficient, using over 200,000 individual iptables rules. It takes forever to parse, and can seriously slow down a low-end system. I thought to myself, &#8220;here has to be a better [...]]]></description>
			<content:encoded><![CDATA[<p>I like being watched as little as the next girl. But so far, the only Linux-based automatic PeerGuardian blocklist updater I&#8217;ve seen has been horribly inefficient, using over 200,000 individual iptables rules. It takes forever to parse, and can seriously slow down a low-end system.</p>
<p>I thought to myself, &#8220;here has to be a better way.&#8221; And, of course&#8230; there is. Here&#8217;s how.<br />
<span id="more-55"></span><br />
The trick to speeding up lookups in a huge list is to not just search the whole list. Hashes and trees are commonly used, but iptables doesn&#8217;t really have either by default. It has a few small hashes, but they can only store single IPs. The collected Bluetack blocklist is some 2.2 billion IPs; if they&#8217;re entered individually this might cause some memory issues.</p>
<p>But there is a handy extension which works very nicely for this, IPSet. You can download it from <a href="http://ipset.netfilter.org/install.html">http://ipset.netfilter.org/install.html</a>. It installed and loaded with no problems or kernel recompiles or anything ugly like that on my system.</p>
<p>It has a handy save/restore feature, similar to iptables. So all we need to do is convert a PG list into one of its files.<br />
I wrote a quick program to do just this, dubbed <a href="http://www.maeyanie.com/pg2ipset.c">pg2ipset</a> <strong>(link fixed now, oops!)</strong><br />
It&#8217;s very simple, uses no libraries, so you can compile it with something like <code>gcc -O3 -o pg2ipset pg2ipset.c</code></p>
<p>One of the things I love about Linux (or UNIX in general) is pipes. So you can do something like this:<br />
<code>curl -L http://www.bluetack.co.uk/config/level1.gz | gunzip -c | pg2ipset - - LEVEL1 | ipset -R</code><br />
That line will load the level 1 PG blocklist into an IPSet called &#8220;LEVEL1&#8243;. You can then add iptables rules like this:<br />
<code>iptables -A INPUT -m set --set LEVEL1 src -j DROP<br />
iptables -A FORWARD -m set --set LEVEL1 src -j DROP<br />
iptables -A FORWARD -m set --set LEVEL1 dst -j REJECT<br />
iptables -A OUTPUT -m set --set LEVEL1 dst -j REJECT</code><br />
This will cause anything a blocked IP sends you to mysteriously vanish as if you weren&#8217;t even there, while any of your programs which try to connect to a blocked IP are informed it won&#8217;t work. Adjust to your liking, as always; if you have ipt_TARPIT, this would be a great place.</p>
<p>To update the list, you can have a cron job do something like this every day or so:<br />
<code>curl -L http://www.bluetack.co.uk/config/level1.gz | gunzip -c | pg2ipset - - LEVEL1-NEW | ipset -R<br />
ipset -W LEVEL1 LEVEL1-NEW<br />
ipset -X LEVEL1-NEW</code><br />
This loads the blocklist to &#8220;LEVEL1-NEW&#8221;, swaps it with &#8220;LEVEL1&#8243; once it&#8217;s done loading, then deletes the old list, leaving no unprotected gap in the middle.</p>
<p>It&#8217;s fairly quick, even on the ancient 800 MHz Pentium III which I use for a router. I haven&#8217;t tested it extensively, so if anyone has trouble, please leave a comment and I&#8217;ll try to help.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.maeyanie.com/2008/12/efficient-iptables-peerguardian-blocklist/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>VMware 6.5 Beta</title>
		<link>http://www.maeyanie.com/2008/06/vmware-65-beta/</link>
		<comments>http://www.maeyanie.com/2008/06/vmware-65-beta/#comments</comments>
		<pubDate>Mon, 30 Jun 2008 14:51:08 +0000</pubDate>
		<dc:creator>Maeyanie</dc:creator>
				<category><![CDATA[Mae's Days]]></category>

		<guid isPermaLink="false">http://www.maeyanie.com/?p=43</guid>
		<description><![CDATA[I got my hands on VMware Workstation 6.5 Beta 2 today. I&#8217;ve been using VMware for a while, mostly for running Windows programs on Linux. This new one, all I can say, &#8220;neat!&#8221; Right from the start, the new installer was nice. Not a command-line thing needing enter hit a dozen times anymore. Once inside, [...]]]></description>
			<content:encoded><![CDATA[<p>I got my hands on VMware Workstation 6.5 Beta 2 today. I&#8217;ve been using VMware for a while, mostly for running Windows programs on Linux. This new one, all I can say, &#8220;neat!&#8221;</p>
<p>Right from the start, the new installer was nice. Not a command-line thing needing enter hit a dozen times anymore. Once inside, I found it supports hardware 3D acceleration right in the settings now, something only very experimental in previous versions.</p>
<p>But my favourite feature is something they call &#8220;Unity&#8221;<br />
<a href="/pics/VMwareUnity.png"><img src="/pics/VMwareUnityThumb.jpg" alt="VMware Unity" /><br />
Full Screen Image</a></p>
<p>Yep, that&#8217;s right. Internet Exploder running in Linux, looking just like it belongs there. No virtualizer window. Not that Internet Exploder is an app I&#8217;d actually WANT to run in Linux, but it shows you what it can do. And you aren&#8217;t limited to just one virtual machine either, you can have several unified at once, each identified with its own colour.</p>
<p>Unfortunately being a beta it&#8217;s forced to run in debug mode, which means it&#8217;s HORRIBLY slow. But that&#8217;ll be all better once it&#8217;s released. Looking forward to it, VMware guys!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.maeyanie.com/2008/06/vmware-65-beta/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SLI Requires No Special Code</title>
		<link>http://www.maeyanie.com/2008/05/sli-requires-no-special-code/</link>
		<comments>http://www.maeyanie.com/2008/05/sli-requires-no-special-code/#comments</comments>
		<pubDate>Wed, 28 May 2008 05:52:18 +0000</pubDate>
		<dc:creator>Maeyanie</dc:creator>
				<category><![CDATA[Mae's Days]]></category>

		<guid isPermaLink="false">http://www.maeyanie.com/uncategorized/sli-requires-no-special-code/</guid>
		<description><![CDATA[Being a MMO player, I run into a lot of people who honestly think they know what they&#8217;re talking about but really don&#8217;t. Today one such person claimed to have tested and proven SLI requires games to be specially written to use it, and most games get no benefit, just like multi-core CPUs. Well, he&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>Being a MMO player, I run into a lot of people who honestly think they know what they&#8217;re talking about but really don&#8217;t. Today one such person claimed to have tested and proven SLI requires games to be specially written to use it, and most games get no benefit, just like multi-core CPUs.<br />
Well, he&#8217;s right about multi-core CPUs. But completely wrong about SLI. To prove it, I grabbed a benchmark from before NVIDIA SLI was introduced (which was in 2004), 3DMark03.</p>
<p>These are my results with SLI disabled in the drivers (both cards still in the system):</p>
<p><img src="http://www.maeyanie.com/pics/3DMark03_NoSLI.png" alt="No SLI" /></p>
<p>And these are my results with SLI enabled, no other changes:</p>
<p><img src="http://www.maeyanie.com/pics/3DMark03_SLI.png" alt="SLI" /></p>
<p>As you can see, there&#8217;s a HUGE benefit in every area where the 3D card applies, even something as simple as the fill rate tests. I strongly suspect the same applies to ATI&#8217;s Crossfire, but I can&#8217;t prove it, as I don&#8217;t have any of the hardware required.</p>
<p>However, this is the last time I spend over an hour jumping through hoops just to educate someone.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.maeyanie.com/2008/05/sli-requires-no-special-code/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>No More than 5 Years &#8212; Guaranteed!</title>
		<link>http://www.maeyanie.com/2008/03/no-more-than-5-years-guaranteed/</link>
		<comments>http://www.maeyanie.com/2008/03/no-more-than-5-years-guaranteed/#comments</comments>
		<pubDate>Sun, 30 Mar 2008 23:43:40 +0000</pubDate>
		<dc:creator>Maeyanie</dc:creator>
				<category><![CDATA[Mae's Days]]></category>

		<guid isPermaLink="false">http://www.maeyanie.com/maes-days/no-more-than-5-years-guaranteed/</guid>
		<description><![CDATA[How many Maes does it take to change a lightbulb? Just one, and not only does the bulb get changed, a blog post comes out of it. When changing a lightbulb today, I noticed the following written on the package: Guaranteed to last up to 5 years. But not more than that! In fact, if [...]]]></description>
			<content:encoded><![CDATA[<p>How many Maes does it take to change a lightbulb? Just one, and not only does the bulb get changed, a blog post comes out of it.</p>
<p>When changing a lightbulb today, I noticed the following written on the package:<br />
<img src="http://www.maeyanie.com/LastsUpTo5Years.jpg" width="366" height="265" alt="Lasts up to 5 Years" /></p>
<p>Guaranteed to last up to 5 years. But not more than that! In fact, if it doesn&#8217;t blow within 5 years, they&#8217;ll replace it with one that did, no charge!</p>
<p>For the curious, the bulb in question is a Philips Marathon fluorescent bulb for standard light sockets. The light it makes is fairly good, especially considering it&#8217;s only 15W. But we&#8217;ll see how long it lasts&#8230; <img src='http://www.maeyanie.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.maeyanie.com/2008/03/no-more-than-5-years-guaranteed/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Christmas Carols for the Mentally Disturbed</title>
		<link>http://www.maeyanie.com/2007/12/christmas-carols-for-the-mentally-disturbed/</link>
		<comments>http://www.maeyanie.com/2007/12/christmas-carols-for-the-mentally-disturbed/#comments</comments>
		<pubDate>Thu, 27 Dec 2007 06:11:23 +0000</pubDate>
		<dc:creator>Maeyanie</dc:creator>
				<category><![CDATA[Mae's Days]]></category>

		<guid isPermaLink="false">http://www.maeyanie.com/maes-days/christmas-carols-for-the-mentally-disturbed/</guid>
		<description><![CDATA[This one&#8217;s been on the news around here lately. Some of you out there have probably heard about it too. Apparently some magazine or another has been publishing a list of Christmas Carols for the Mentally Disturbed. Naturally, someone got all whiny about it &#8212; not an actual patient, but the daughter of one &#8212; [...]]]></description>
			<content:encoded><![CDATA[<p>This one&#8217;s been on the news around here lately. Some of you out there have probably heard about it too. Apparently some magazine or another has been publishing a list of Christmas Carols for the Mentally Disturbed.</p>
<p>Naturally, someone got all whiny about it &#8212; not an actual patient, but the daughter of one &#8212; and now everyone&#8217;s talking about it. A lot of people are split over this. Relatives and caregivers of people with mental illnesses are upset. Other people think they&#8217;re funny.</p>
<p>Those who know me already know this, but I myself have two of the listed illnesses, plus several unlisted ones.</p>
<p>I think they&#8217;re great. <img src='http://www.maeyanie.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p><img src="http://www.maeyanie.com/carolsDM2012_380x350.jpg" width="380" height="350" alt="Christmas Carols for the Mentally Disturbed" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.maeyanie.com/2007/12/christmas-carols-for-the-mentally-disturbed/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

