<?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>Cory Pratt&#039;s Blog &#187; Projects</title>
	<atom:link href="http://www.corypratt.com/category/projects/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.corypratt.com</link>
	<description>Work, Projects, and Life</description>
	<lastBuildDate>Wed, 01 Feb 2012 16:49:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>National Licorice Day design</title>
		<link>http://www.corypratt.com/projects/national-licorice-day-design/</link>
		<comments>http://www.corypratt.com/projects/national-licorice-day-design/#comments</comments>
		<pubDate>Tue, 31 Jan 2012 15:41:06 +0000</pubDate>
		<dc:creator>Cory</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[national licorice day]]></category>
		<category><![CDATA[photoshop]]></category>

		<guid isPermaLink="false">http://www.corypratt.com/?p=637</guid>
		<description><![CDATA[Just a little thing I came up with to announce National Licorice Day on our new site.  Still trying to get my feet wet with this whole design thing.]]></description>
			<content:encoded><![CDATA[<p>Just a little thing I came up with to announce National Licorice Day on our new site.  Still trying to get my feet wet with this whole design thing.</p>
<p><span id="more-637"></span></p>
<p style="text-align: center;"><a href="http://www.corypratt.com/wp-content/uploads/2012/01/nld_slide.jpg" rel="lightbox[637]" title="nld_slide"><img class="wp-image-638 aligncenter" title="nld_slide" src="http://www.corypratt.com/wp-content/uploads/2012/01/nld_slide.jpg" alt="" width="540" height="270" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.corypratt.com/projects/national-licorice-day-design/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Another iPhone wallpaper</title>
		<link>http://www.corypratt.com/personal/another-iphone-wallpaper/</link>
		<comments>http://www.corypratt.com/personal/another-iphone-wallpaper/#comments</comments>
		<pubDate>Tue, 17 Jan 2012 01:29:11 +0000</pubDate>
		<dc:creator>Cory</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[wallpaper]]></category>

		<guid isPermaLink="false">http://www.corypratt.com/?p=628</guid>
		<description><![CDATA[I was playing with a logo for a business idea I&#8217;m throwing around and thought it would look good as a wallpaper:]]></description>
			<content:encoded><![CDATA[<p>I was playing with a logo for a business idea I&#8217;m throwing around and thought it would look good as a wallpaper:</p>
<p><span id="more-628"></span></p>
<p style="text-align: center;"><a href="http://www.corypratt.com/wp-content/uploads/2012/01/debarbed_retina.png" rel="lightbox[628]" title="iphone wallpaper"><img class="size-medium wp-image-629 aligncenter" title="iphone wallpaper" src="http://www.corypratt.com/wp-content/uploads/2012/01/debarbed_retina-200x300.png" alt="" width="200" height="300" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.corypratt.com/personal/another-iphone-wallpaper/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>$1200 dollars for a crib?</title>
		<link>http://www.corypratt.com/personal/1200-dollars-for-a-crib/</link>
		<comments>http://www.corypratt.com/personal/1200-dollars-for-a-crib/#comments</comments>
		<pubDate>Fri, 12 Nov 2010 19:59:12 +0000</pubDate>
		<dc:creator>Cory</dc:creator>
				<category><![CDATA[Family]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[crib]]></category>
		<category><![CDATA[frugal]]></category>
		<category><![CDATA[home made]]></category>
		<category><![CDATA[project]]></category>

		<guid isPermaLink="false">http://www.corypratt.com/?p=550</guid>
		<description><![CDATA[When you wait 5 years between kids, it&#8217;s inevitable that you will get rid of most, if not all your baby stuff.  Thus was the case with Danielle and I.  We had no crib, no clothes, no dressers, toys, swings, etc.  We were essentially starting ALL OVER AGAIN, which in this day and age is expensive.  During [...]]]></description>
			<content:encoded><![CDATA[<p>When you wait 5 years between kids, it&#8217;s inevitable that you will get rid of most, if not all your baby stuff.  Thus was the case with Danielle and I.  We had no crib, no clothes, no dressers, toys, swings, etc.  We were essentially starting ALL OVER AGAIN, which in this day and age is expensive.  During one of the baby shopping trips to one my my wife&#8217;s favorite stores in the Pearl District, we both found a crib we loved, but it was $1200.00.  Me (being a guy and looking for excuses to build something) looked at this crib, its four sides, simple legs, and some slats, and thought to myself &#8220;this probably won&#8217;t cost me more than $200 dollars to build&#8221;.  Luck for me, Danielle was all about the idea and gave the go-ahead to see what I could come up with.</p>
<p><span id="more-550"></span></p>
<p>I busted out the handy dandy Mole Skin and threw out a sketch of the design, got some measurements and researched safe wood to use.  I say safe because we didn&#8217;t want any of that nasty MDF wood which puts off some chemicals.</p>
<p style="text-align: center;"><a href="http://www.corypratt.com/wp-content/uploads/2010/11/photo.jpg" rel="lightbox[550]" title="photo"><img class="size-medium wp-image-567     aligncenter" title="photo" src="http://www.corypratt.com/wp-content/uploads/2010/11/photo-300x225.jpg" alt="" width="300" height="225" /></a></p>
<p><a href="http://www.corypratt.com/wp-content/uploads/2010/11/photo.jpg"></a>(I originally thought our new daughter would appreciate a cool painting of an FJ40 climbing a hill, but that didn&#8217;t make it off the paper)</p>
<p>We found a reseller in town which would sell formaldehyde free MDF in 3/4 inch sheets, which was great as they only cost $4.00 more per 4&#215;8 sheet.  The legs were simple white pine from the hardware store, and I used various furniture hardware to attach the sides together.</p>
<p>The first step was cutting and assembling the legs and bottom.  The process started with a rough cut thanks to a jig saw and table to be cleaned up later.</p>
<p style="text-align: center;"><a href="http://www.corypratt.com/wp-content/uploads/2010/11/IMG_0102.jpg" rel="lightbox[550]" title="IMG_0102"><img class="size-medium wp-image-552  aligncenter" title="IMG_0102" src="http://www.corypratt.com/wp-content/uploads/2010/11/IMG_0102-300x225.jpg" alt="" width="300" height="225" /></a></p>
<p>Used some clamps to make sure everything lined up well.</p>
<p style="text-align: center;"><a href="http://www.corypratt.com/wp-content/uploads/2010/11/IMG_0104.jpg" rel="lightbox[550]" title="IMG_0104"><img class="size-medium wp-image-553  aligncenter" title="IMG_0104" src="http://www.corypratt.com/wp-content/uploads/2010/11/IMG_0104-225x300.jpg" alt="" width="225" height="300" /></a></p>
<p>Glue and hidden screws held the legs together so the base could be attached:</p>
<p style="text-align: center;"><a href="http://www.corypratt.com/wp-content/uploads/2010/11/IMG_0123.jpg" rel="lightbox[550]" title="IMG_0123"><img class="size-medium wp-image-555  aligncenter" title="IMG_0123" src="http://www.corypratt.com/wp-content/uploads/2010/11/IMG_0123-225x300.jpg" alt="" width="225" height="300" /></a></p>
<p>And the base is attached!</p>
<p style="text-align: center;"><a href="http://www.corypratt.com/wp-content/uploads/2010/11/IMG_0125.jpg" rel="lightbox[550]" title="IMG_0125"><img class="size-medium wp-image-556  aligncenter" title="IMG_0125" src="http://www.corypratt.com/wp-content/uploads/2010/11/IMG_0125-300x225.jpg" alt="" width="300" height="225" /></a></p>
<p>I then cut out the four sides and did a test fit just to make sure things looked and fit ok.</p>
<p style="text-align: center;"><a href="http://www.corypratt.com/wp-content/uploads/2010/11/IMG_0134.jpg" rel="lightbox[550]" title="IMG_0134"><img class="size-medium wp-image-558  aligncenter" title="IMG_0134" src="http://www.corypratt.com/wp-content/uploads/2010/11/IMG_0134-300x225.jpg" alt="" width="300" height="225" /></a></p>
<p>The process of cutting the slats out ended up being much more of a job than I had originally though.  I chewed through a couple forstner bits to create the rounded tops and bottoms of the slats, and use a jig saw to finish them off.  If I was to do it again, I think a better process could have been used.</p>
<p style="text-align: center;"><a href="http://www.corypratt.com/wp-content/uploads/2010/11/IMG_0137.jpg" rel="lightbox[550]" title="IMG_0137"><img class="size-medium wp-image-559  aligncenter" title="IMG_0137" src="http://www.corypratt.com/wp-content/uploads/2010/11/IMG_0137-225x300.jpg" alt="" width="225" height="300" /></a></p>
<p style="text-align: center;"><a href="http://www.corypratt.com/wp-content/uploads/2010/11/IMG_0138.jpg" rel="lightbox[550]" title="IMG_0138"><img class="size-medium wp-image-560    aligncenter" title="IMG_0138" src="http://www.corypratt.com/wp-content/uploads/2010/11/IMG_0138-225x300.jpg" alt="" width="225" height="300" /></a></p>
<p style="text-align: center;">
<p style="text-align: left;">When all was said and done, another test fit being held together with the furniture hardware resulted in the following:</p>
<p style="text-align: center;"><a href="http://www.corypratt.com/wp-content/uploads/2010/11/IMG_0146.jpg" rel="lightbox[550]" title="IMG_0146"><img class="size-medium wp-image-561  aligncenter" title="IMG_0146" src="http://www.corypratt.com/wp-content/uploads/2010/11/IMG_0146-300x225.jpg" alt="" width="300" height="225" /></a></p>
<p style="text-align: center;"><a href="http://www.corypratt.com/wp-content/uploads/2010/11/IMG_0146.jpg"></a><a href="http://www.corypratt.com/wp-content/uploads/2010/11/IMG_0147.jpg" rel="lightbox[550]" title="IMG_0147"><img class="size-medium wp-image-562  aligncenter" title="IMG_0147" src="http://www.corypratt.com/wp-content/uploads/2010/11/IMG_0147-300x225.jpg" alt="" width="300" height="225" /></a></p>
<p>And just when I thought the hard part was over, prep and painting took me by surprise.  MDF is not a fun product to sand as it&#8217;s extremely hard and MESSY.  Many thanks go to my parents to worked tirelessly one day to help prep and primer.  We chose to try a high gloss finish which was somewhat frustrating to work with, I wanted an amazingly smooth and shiny finish, which I got close, but it would have been nice to have it sprayed.  We stained the legs with a black stain.</p>
<p style="text-align: center;"><a href="http://www.corypratt.com/wp-content/uploads/2010/11/IMG_0172.jpg" rel="lightbox[550]" title="IMG_0172"><img class="size-medium wp-image-564  aligncenter" title="IMG_0172" src="http://www.corypratt.com/wp-content/uploads/2010/11/IMG_0172-300x225.jpg" alt="" width="300" height="225" /></a></p>
<p>The last step was to figure out what to put for the panel on the front.  My wife used her artistic skills to create an awesomely modern and great looking artwork for the front.  We had originally thought about creating a stencil to be used to paint the design, but after putting the stencil on, needless to say it stayed.  We lucked out when it came on a dark grey material and fell in love with it.</p>
<p style="text-align: center;"><a href="http://www.corypratt.com/wp-content/uploads/2010/11/IMG_0173.jpg" rel="lightbox[550]" title="IMG_0173"><img class="size-medium wp-image-565  aligncenter" title="IMG_0173" src="http://www.corypratt.com/wp-content/uploads/2010/11/IMG_0173-300x225.jpg" alt="" width="300" height="225" /></a></p>
<p>The crib turned out great and I think we were into it for under $300 dollars in materials.  I still need to create a piece for the front which will turn the crib into a day bed.  My mom made some awesome looking bedding and bumper that completes it.  Thanks everyone who contributed time to this project!</p>
<p style="text-align: center;"><a href="http://www.corypratt.com/wp-content/uploads/2010/11/done.jpg" rel="lightbox[550]" title="done"><img class="size-full wp-image-572  aligncenter" title="done" src="http://www.corypratt.com/wp-content/uploads/2010/11/done.jpg" alt="" width="540" height="720" /></a></p>
<p style="text-align: center;"><a href="http://www.corypratt.com/wp-content/uploads/2010/11/lovesit.jpg" rel="lightbox[550]" title="lovesit"><img class="size-full wp-image-573  aligncenter" title="lovesit" src="http://www.corypratt.com/wp-content/uploads/2010/11/lovesit.jpg" alt="" width="540" height="720" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.corypratt.com/personal/1200-dollars-for-a-crib/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Changing snort signatures with Oinkmaster</title>
		<link>http://www.corypratt.com/projects/changing-snort-signatures-with-oinkmaster/</link>
		<comments>http://www.corypratt.com/projects/changing-snort-signatures-with-oinkmaster/#comments</comments>
		<pubDate>Mon, 10 May 2010 23:30:08 +0000</pubDate>
		<dc:creator>Cory</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[Snort]]></category>
		<category><![CDATA[network monitoring]]></category>
		<category><![CDATA[oinkmaster]]></category>
		<category><![CDATA[snort]]></category>

		<guid isPermaLink="false">http://www.corypratt.com/?p=415</guid>
		<description><![CDATA[Unless I&#8217;m just not seeing it, there isn&#8217;t a way to differentiate alerts from drops with BASE for snort.  They all appear the same, and unless you know the the sid or the .rules file, all the information looks the same.  To help alleviate this, and give users the abillity to see rules that are [...]]]></description>
			<content:encoded><![CDATA[<p>Unless I&#8217;m just not seeing it, there isn&#8217;t a way to differentiate alerts from drops with BASE for snort.  They all appear the same, and unless you know the the sid or the .rules file, all the information looks the same.  To help alleviate this, and give users the abillity to see rules that are dropping packets at a glance, I decided to task Oinkmaster.pl with this job.  Adding the phrase &#8220;DROPPED&#8221; to the end of the &#8220;msg:&#8221; section of the signature will make it appear that way in BASE and Aanval can now send an email whenever one of these rules are kicked off.<br />
To do so simply add the following to your <em>oinkmaster.conf</em> file:</p>
<blockquote><p>modifysid <em>sid or rule</em> &#8220;(.*msg:\s*&#8221;.+?)&#8221;(\s*;.+;)&#8221; | &#8220;${1}, DROPPED&#8221;${2}&#8221;</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.corypratt.com/projects/changing-snort-signatures-with-oinkmaster/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Snort and &#8220;&#8211;enable-reload&#8221;</title>
		<link>http://www.corypratt.com/projects/snort-and-enable-reload/</link>
		<comments>http://www.corypratt.com/projects/snort-and-enable-reload/#comments</comments>
		<pubDate>Tue, 23 Feb 2010 02:37:48 +0000</pubDate>
		<dc:creator>Cory</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[Snort]]></category>
		<category><![CDATA[network monitoring]]></category>
		<category><![CDATA[snort]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.corypratt.com/?p=397</guid>
		<description><![CDATA[One of my biggest peeves about Snort and running it inline is having to restart the Snort process to load new rules.  This had me worried with putting snort into production as it would make it awfully hard to tweak it while live. Today I was browsing the Snort manual and found two short paragraph&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>One of my biggest peeves about Snort and running it inline is having to restart the Snort process to load new rules.  This had me worried with putting snort into production as it would make it awfully hard to tweak it while live.</p>
<p>Today I was browsing the <a href="http://www.snort.org/assets/125/snort_manual-2_8_5_1.pdf">Snort manual</a> and found two short paragraph&#8217;s relating to the &#8220;&#8211;enable-reload&#8221; option.  Wha?  Why didn&#8217;t I find this earlier?  After a quick recompile with the &#8220;&#8211;enable-reload&#8221; command.  What a life saver this will be when we go live!</p>
<p>After using that option, you can simply issue a &#8220;kill -SIGHUP <em>pid</em>&#8221; to have it reload without restarting!</p>
<p>Check out the pg 107 of the <a href="http://www.snort.org/assets/125/snort_manual-2_8_5_1.pdf">Snort manual</a> though, as some changes require a restart, so your not going to get off completely scott free.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.corypratt.com/projects/snort-and-enable-reload/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Snort 2.8.5.2 Inline + BASE on Ubuntu</title>
		<link>http://www.corypratt.com/projects/snort-2-8-5-2-inline-base-on-ubuntu/</link>
		<comments>http://www.corypratt.com/projects/snort-2-8-5-2-inline-base-on-ubuntu/#comments</comments>
		<pubDate>Fri, 12 Feb 2010 21:48:16 +0000</pubDate>
		<dc:creator>Cory</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[Snort]]></category>
		<category><![CDATA[ids]]></category>
		<category><![CDATA[ips]]></category>
		<category><![CDATA[network monitoring]]></category>
		<category><![CDATA[snort]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.corypratt.com/?p=379</guid>
		<description><![CDATA[Boy, when I started down the process of trying to get an IPS system setup, I had no idea what I was getting myself into.  I&#8217;m not much of a security guy or a linux guy, but I thought I&#8217;d give it a go.  I followed many different guides that all worked great for me, [...]]]></description>
			<content:encoded><![CDATA[<p>Boy, when I started down the process of trying to get an IPS system setup, I had no idea what I was getting myself into.  I&#8217;m not much of a security guy or a linux guy, but I thought I&#8217;d give it a go.  I followed many different guides that all worked great for me, and thank you to those who put the following guides together: <a href="http://ubuntuforums.org/showthread.php?t=919472">http://ubuntuforums.org/showthread.php?t=919472</a>,  <a href="http://www.openmaniak.com/inline.php">http://www.openmaniak.com/inline.php</a>,  <a href="http://forum.learnit.vn/showthread.php?p=7007">http://forum.learnit.vn/showthread.php?p=7007</a></p>
<p><span id="more-379"></span></p>
<p>Since I had an Ubuntu server disc, an Acer desktop with a Pentium D, 1GB of RAM an 3 nics (1 onboard and 2 100mb 3com&#8217;s) I thought I&#8217;d give it a go.  After a clean basic install of ubuntu 9.04 server, I ran the following to get it up to 9.10:</p>
<blockquote>
<pre>
<div id="_mcePaste">sudo apt-get install update-manager-core</div>
<div id="_mcePaste">sudo do-release-upgrade</div>
</pre>
</blockquote>
<p><strong>The next step was installing all the dependencies:</strong></p>
<blockquote>
<pre>
<div id="_mcePaste">sudo -i</div>
<div id="_mcePaste">apt-get -y install build-essential libpcap0.8-dev libmysqlclient15-dev /</div>
<div id="_mcePaste">mysql-client-5.0 mysql-server-5.0 bison flex apache2 libapache2-mod-php5 /</div>
<div id="_mcePaste">php5-gd php5-mysql libphp-adodb php-pear libc6-dev g++ gcc pcregrep /</div>
<div id="_mcePaste">libpcre3-dev iptables-dev bridge-utils</div>
</pre>
</blockquote>
<div id="_mcePaste">One requirement for Snort to be compiled with <strong>&#8211;enable-inline </strong>libnet0-dev.  libnet0 is no longer available via apt and libnet1 doesn&#8217;t work with Snort yet, so you need to <a href="http://www.filewatcher.com/m/libnet-1.0.2a.tar.gz.140191.0.0.html">download</a> and compile it!</div>
<p><strong>Next it was time to download and compile Snort and the rules:</strong></p>
<blockquote>
<pre>cd /usr/src
wget http://dl.snort.org/snort-current/snort-2.8.5.2.tar.gz
tar zxvf snort-2.8.5.2.tar.gz
wget http://dl.snort.org/reg-rules/snortrules-snapshot-CURRENT.tar.gz
wget http://www.emergingthreats.net/rules/emerging.rules.tar.gz
cd snort-2.8.5.2
tar zxvf ../snortrules*
tar zxvf ../emerging*</pre>
<pre>./configure -enable-dynamicplugin --with-mysql --enabled-inline</pre>
<pre>make</pre>
<pre>make install</pre>
</blockquote>
<p>It should compile and make without any problems, if it does check out <a href="http://openmaniak.com/inline_pre.php">http://openmaniak.com/inline_pre.php</a> for a good list of requirements.</p>
<p>It&#8217;s now time to get mysql ready:</p>
<blockquote>
<pre>mysql -u root -p</pre>
<pre>mysql&gt; create database <em>databasename</em>;</pre>
<pre>mysql&gt; grant all privileges on <em>databasename</em>.* to '<em>username</em>'@'localhost' identified by '<em>password'</em>;</pre>
<pre>mysql&gt; exit</pre>
</blockquote>
<p>Import the schema:</p>
<blockquote>
<pre>mysql -D <em>databasename</em> -u <em>username</em> -p &lt; /usr/src/snort-2.8.5.2/schemas/create_mysql</pre>
</blockquote>
<p><strong>Setup Snort:</strong></p>
<blockquote>
<pre><strong>cd /usr/src/snort-2.8.5.2</strong></pre>
<pre><strong>mkdir -p /etc/snort/rules /var/log/snort</strong></pre>
<pre><strong>cp etc/* /etc/snort/</strong></pre>
<pre><strong>cp rules/* /etc/snort/rules</strong></pre>
</blockquote>
<p>Next up, editing the /etc/snort/snort.conf file:</p>
<ol>
<li>Find <strong>var HOME_NET any</strong> and edit it to match your network(s) (<strong>var HOME_NET 192.168.0.0/16</strong>)</li>
<li>Find <strong>var EXTERNAL_NET any</strong> and change it to <strong>var EXTERNAL_NET !$HOME_NET</strong></li>
<li>Find <strong>var RULE_PATH ../rules</strong> to <strong>var RULE_PATH /etc/snort/rules</strong></li>
<li>I also added <strong>include $RULE_PATH/emerging.conf</strong> to read the emerging.conf rules file</li>
<li>Last, find the <strong># output database: log, mysql, &#8230; </strong>and uncomment the line and change it to match your setup</li>
</ol>
<p><strong>Installing BASE:</strong></p>
<p>First I upgraded and installed the required Pear modules:</p>
<blockquote>
<pre>pear upgrade-all</pre>
<pre>pear install Image_Color Image_Canvas-alpha Image_Graph-alpha</pre>
<pre>pear install Mail Mail_mime</pre>
</blockquote>
<p>Edit your <strong>/etc/php5/apache2/php.ini</strong> file and add under Dynamic Extensions:</p>
<blockquote>
<pre>extension=mysql.so</pre>
</blockquote>
<blockquote>
<pre>extension=gd.so</pre>
</blockquote>
<p>Restart Apache2:</p>
<blockquote>
<pre>/etc/init.d/apache2 restart</pre>
</blockquote>
<p>Download and setup BASE:</p>
<blockquote>
<pre>cd</pre>
<pre>wget http://sourceforge.net/projects/secureideas/files/BASE/base-1.4.4/base-1.4.4.tar.gz/download</pre>
<pre>cd /var/www</pre>
<pre>tar zxvf ~/base-1.4.4.tar.gz</pre>
<pre>mv base-1.4.4 base</pre>
<pre>cd base</pre>
<pre>cp -R /usr/src/snort-2.8.5.2/doc/signatures .</pre>
<pre>cd ..</pre>
<pre>chown -R www-data.www-data base</pre>
</blockquote>
<p>Go ahead and visit your site at http://<em>yoursite</em>/base and click continue:</p>
<ul>
<li>Step 1: enter <strong>/usr/share/php/adodb</strong></li>
<li><strong><span style="font-weight: normal;">Step 2:  Database type = mysql; Database name = <em>database name</em>; Database host = localhost; Database username = <em>username; </em>Database Password = <em>password</em></span></strong></li>
<li><strong><span style="font-weight: normal;">Step 3: enter the name and password you&#8217;d like to use</span></strong></li>
<li>Step 4: click the Create BASE AG button</li>
<li>Step 5: click Continue to go to the login screen</li>
</ul>
<p><strong>Bridging the Interfaces:</strong></p>
<p>Load the bridge module:</p>
<blockquote>
<pre>modprobe bridge</pre>
</blockquote>
<p>Edit <strong>/etc/network/interfaces</strong></p>
<blockquote>
<pre><strong>
<span style="font-weight: normal;"># The loopback network interface</span>

<span style="font-weight: normal;">auto lo</span>

<span style="font-weight: normal;">iface lo inet loopback</span>

<span style="font-weight: normal;"><strong>
<span style="font-weight: normal;"># The primary network interface</span>
</strong></span>

<span style="font-weight: normal;">auto eth2</span>

<span style="font-weight: normal;">iface eth2 inet static</span>

<span style="font-weight: normal;">        address 10.x.x.x</span>

<span style="font-weight: normal;">        netmask 255.x.x.x</span>

<span style="font-weight: normal;">        network 10.x.x.x</span>

<span style="font-weight: normal;">        broadcast 10.x.x.x</span>

<span style="font-weight: normal;">        gateway 10.x.x.x</span>

<span style="font-weight: normal;">        # dns-* options are implemented by the resolvconf package, if installed</span>

<span style="font-weight: normal;">        dns-nameservers 10.x.x.x</span>

<span style="font-weight: normal;">        dns-search <em>searchbase</em></span>

<span style="font-weight: normal;"><strong>
<span style="font-weight: normal;"># The Bridge</span>
</strong></span>

<span style="font-weight: normal;">auto br0</span>

<span style="font-weight: normal;">iface br0 inet manual</span>

<span style="font-weight: normal;">bridge_ports eth0 eth1</span>

<span style="font-weight: normal;"># Time to wait before loading bridge</span>

<span style="font-weight: normal;">bridge_maxwait 0</span>
</strong></pre>
</blockquote>
<div>And&#8230;.restart networking:</div>
<blockquote>
<pre>/etc/init.d/networking restart</pre>
</blockquote>
<p>Then setup the box to load the bridge kernel at startup:</p>
<blockquote>
<pre>crontab -e</pre>
<pre>@reboot root lsmod | grep bridge &gt; /dev/null || /sbin/modprobe bridge;</pre>
</blockquote>
<p>The following is a startup script from <a href="http://openmaniak.com/inline_final.php">http://openmaniak.com/inline_final.php</a> that I used and modified for my setup.  I saved it in <strong>/etc/init.d/snortd</strong>:</p>
<pre>
<blockquote>

#!/bin/bash

#

# snort_inline

start(){

# Start daemons.

echo "Starting ip_queue module:"

lsmod | grep ip_queue &gt;/dev/null || /sbin/modprobe ip_queue;

#

echo "Starting iptables rules:"

# iptables traffic sent to the QUEUE:

# accept internal localhost connections

iptables -A INPUT -i lo -s 127.0.0.1 -d 127.0.0.1 -j ACCEPT

iptables -A OUTPUT -o lo -s 127.0.0.1 -d 127.0.0.1 -j ACCEPT

# send all the incoming, outgoing and forwarding traffic to the QUEUE

iptables -A INPUT -j QUEUE

iptables -A FORWARD -j QUEUE

iptables -A OUTPUT -j QUEUE

# Start Snort_inline

echo "Starting snort_inline: "

/usr/local/bin/snort_inline -c /etc/snort_inline/snort_inline.conf -Q -D -v \

-l /var/log/snort_inline

# -Q -&gt; process the queued traffic

# -D -&gt; run as a daemon

# -v -&gt; verbose

# -l -&gt; log path

# -c -&gt; config path

}

stop() {

# Stop daemons.

# Stop Snort_Inline

# echo "Shutting down snort_inline: "

killall snort_inline

# Remove all the iptables rules and

# set the default Netfilter policies to accept

echo "Removing iptables rules:"

iptables -F

# -F -&gt; flush iptables

iptables -P INPUT ACCEPT

iptables -P OUTPUT ACCEPT

iptables -P FORWARD ACCEPT

# -P -&gt; default policy

}

restart(){

stop

start

}

case "$1" in

start)

start

;;

stop)

stop

;;

restart)

restart

;;

*)

echo $"Usage: $0 {start|stop|restart|}"

exit 1

esac</blockquote>
</pre>
<p>You can start snort with :</p>
<blockquote>
<pre>/etc/init.d/snortd start</pre>
</blockquote>
<p>And configure the server to run the snortd script at boot:</p>
<blockquote>
<pre>update-rc.d snortd defaults 95</pre>
</blockquote>
<p>And there we have it, what should be a functional Snort box compiled with inline support!  Wrapping my head around this has been a chore, I&#8217;m pleased that it&#8217;s at least running!  I haven&#8217;t put it in the middle of everything yet, so far I&#8217;ve just put it between my system and the network to play with rules.  One downside I found deals with restarting the snort process to load new rules; doing so will interrupt traffic until snort starts up again which can be around a minute or so.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.corypratt.com/projects/snort-2-8-5-2-inline-base-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>You can submit hatch info..</title>
		<link>http://www.corypratt.com/projects/the-hatch-projects/you-can-submit-hatch-info/</link>
		<comments>http://www.corypratt.com/projects/the-hatch-projects/you-can-submit-hatch-info/#comments</comments>
		<pubDate>Mon, 18 Jan 2010 23:38:19 +0000</pubDate>
		<dc:creator>Cory</dc:creator>
				<category><![CDATA[Fishing]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[The Hatch]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[iphone app]]></category>
		<category><![CDATA[The Hatch Lite]]></category>
		<category><![CDATA[thehatchapp.com]]></category>

		<guid isPermaLink="false">http://www.corypratt.com/?p=376</guid>
		<description><![CDATA[If you have information you&#8217;d like to share and include in The Hatch, please feel free to use the link at the top of the page titled &#8220;Submit Hatch Information&#8221;.  You will be presented with a form asking for the state, river name, bug, and month&#8217;s you&#8217;ll find the bug hatching. These updates will be [...]]]></description>
			<content:encoded><![CDATA[<p>If you have information you&#8217;d like to share and include in The Hatch, please feel free to use the <a href="http://www.corypratt.com/?page_id=372" target="_blank">link</a> at the top of the page titled &#8220;Submit Hatch Information&#8221;.  You will be presented with a form asking for the state, river name, bug, and month&#8217;s you&#8217;ll find the bug hatching.  These updates will be included in periodic updates to the app.</p>
<p>Thanks everyone.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.corypratt.com/projects/the-hatch-projects/you-can-submit-hatch-info/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Lesson&#8217;s Learned In iPhone App Development</title>
		<link>http://www.corypratt.com/personal/lessons-learned-in-iphone-app-development/</link>
		<comments>http://www.corypratt.com/personal/lessons-learned-in-iphone-app-development/#comments</comments>
		<pubDate>Wed, 06 Jan 2010 04:24:00 +0000</pubDate>
		<dc:creator>Cory</dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[The Hatch]]></category>

		<guid isPermaLink="false">http://www.corypratt.com/?p=367</guid>
		<description><![CDATA[After the purchase of a new MacBook Pro about a year ago, I thought you know what?  I&#8217;m going to try and develop an app.  I hadn&#8217;t seen anything related to fly fishing and thought maybe I could create an app that provides a hatch chart for rivers across the US! Going into this, I [...]]]></description>
			<content:encoded><![CDATA[<p>After the purchase of a new MacBook Pro about a year ago, I thought you know what?  I&#8217;m going to try and develop an app.  I hadn&#8217;t seen anything related to fly fishing and thought maybe I could create an app that provides a hatch chart for rivers across the US!</p>
<p><span id="more-367"></span></p>
<p>Going into this, I had NO experience with developing anything for the iPhone or Mac OS for that matter.  Sure I&#8217;d written some scripts, and about 7 years ago I wrote an app to import users into Active Directory, but I was a clean slate and ready to learn.  Initially, and some may remember, the app started out working like the Weather app, super simple, but it got the job done.  I gleaned a lot off forums, friends, and screw-ups to get it working and it did!  Apple even published the darn thing for me.  After some requests and a complete redesign by <a href="http://www.briskstudios.com" target="_blank">Brisk Studios</a>, a much improved version 2 was out with almost 30 states and 300+ rivers, entomology photos and a great new interface.  Entomology photo&#8217;s were slow coming, but Lucas Carroll (<a href="http://www.flickr.com/photos/luke_c_photography/">http://www.flickr.com/photos/luke_c_photography/</a>) was kind to provide some of his amazing photography and with the help of Jason Neuswanger (<a href="http://www.troutnut.com" target="_blank">http://www.troutnut.com</a>) a huge portion of the photography was hammered out.</p>
<p>With the new version I also tried to push the app to a lot of blogs and a few magazines looking for reviews and was very pleased with what came out (I have a pretty good list <a href="http://www.corypratt.com/?p=248" target="_blank">here</a>).  Most recently <a href="http://www.americanangler.com" target="_blank">American Angler</a> even wrote a quick blurb about it in their Jan/Feb 2010 issue!</p>
<p>In all, it&#8217;s been a fun and extremely time consuming process.  There are currently over 46k rows of data in one of the SQLite tables that were hand entered.  The process has been rewarding in the fact that it&#8217;s something that I&#8217;ve created, but equally as frustrating.  One of the downsides to the app store is the commenting/review system, though it&#8217;s inherit in any retail scenario.  Anyone who&#8217;s going to take the time to comment, will most likely be a complainer.</p>
<p>Most recently, &#8220;Andyfisher&#8221; left a comment stating:</p>
<blockquote><p>The data on my favorite river is plainly incorrect and the number of rivers it covers is too limited!  This app still needs a lot of work because it&#8217;s substandard.  Don&#8217;t buy it before it&#8217;s radically updated!</p></blockquote>
<p>Wow, Andyfisher, please let me know which river(s) needs more work and I&#8217;ll see what else I can find.</p>
<p>A man named Robert emailed me:</p>
<blockquote><p>Your site is a joke, at least this time of year.  The same 4 flies<br />
cannot be appropriate for every river in the US</p></blockquote>
<p>One of the hard things about creating an app like this is you have to generalize some information.  I fully understand that a stonefly pattern that kills in Montana may not work as well on the Deschutes; but in no way is this app meant to replace a good old local fly shop.  In fact, I would encourage users to visit fly shops for indepth knowledge of the local regions!</p>
<p>On that note, the latest version that I&#8217;ve submitted for approval is coming with photo&#8217;s of patterns by <a href="http://montanafly.com/" target="_blank">Montana Fly Company</a>.  They have a great list of <a href="http://www.montanafly.com/retailer_locations/map.html" target="_blank">fly shops</a> that sell their product and maybe in a future version I&#8217;ll figure out a way to provide a list of shop for states.</p>
<p>This whole process has really made me sit back and take criticism lightly and understand that I can&#8217;t please everyone.  Sure I&#8217;d love to have exact information for every river, stream, lake, and body of water in the US, but then I know I&#8217;d get bashed for giving away &#8216;secrets&#8217;.</p>
<p>I&#8217;ve got in touch with some great folks like Lucas Carroll as mentioned above, Cameron Mortenson and the folks behind <a href="http://www.fishykid.org/">http://www.fishykid.org/</a>, David Gross at <a href="http://www.flyfishingsherpa.com" target="_blank">http://www.flyfishingsherpa.com</a>, the great guys at <a href="http://www.korkers.com/" target="_blank">Korkers</a>, <a href="http://paflyfish.com/" target="_blank">http://paflyfish.com/</a>, <a href="http://eastcoastangler.blogspot.com/" target="_blank">http://eastcoastangler.blogspot.com/</a>, and <a href="http://www.midcurrent.com" target="_blank">http://www.midcurrent.com</a>.  I&#8217;m sure I&#8217;ve missed someone, but thanks everyone for the support and helping spread the word.</p>
<p>Should I have the chance to do it over or anyone thinking of creating an app I&#8217;d do the following:</p>
<ul>
<li> Wait to release a more complete app rather than slowly adding rivers as time permits</li>
<li>Realize that it can&#8217;t be created for free</li>
<li>Realize it is rewarding, but don&#8217;t count on it to be a gold mine</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.corypratt.com/personal/lessons-learned-in-iphone-app-development/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>New The Hatch 2 feature&#8230;.Sneak Peak</title>
		<link>http://www.corypratt.com/projects/the-hatch-projects/new-the-hatch-2-feature-sneak-peak/</link>
		<comments>http://www.corypratt.com/projects/the-hatch-projects/new-the-hatch-2-feature-sneak-peak/#comments</comments>
		<pubDate>Tue, 24 Nov 2009 23:13:15 +0000</pubDate>
		<dc:creator>Cory</dc:creator>
				<category><![CDATA[Fishing]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[The Hatch]]></category>
		<category><![CDATA[Fly Fishing]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[iphone app]]></category>
		<category><![CDATA[The Hatch Lite]]></category>
		<category><![CDATA[thehatchapp.com]]></category>

		<guid isPermaLink="false">http://www.corypratt.com/?p=333</guid>
		<description><![CDATA[Working on a new feature as I can find the time.  I think you&#8217;ll all enjoy it.]]></description>
			<content:encoded><![CDATA[<p>Working on a new feature as I can find the time.  I think you&#8217;ll all enjoy it.</p>
<p><img class="aligncenter size-full wp-image-332" title="Screenshot 2009.11.24 15.08.07" src="http://www.corypratt.com/wp-content/uploads/2009/11/Screenshot-2009.11.24-15.08.07.png" alt="Screenshot 2009.11.24 15.08.07" width="320" height="460" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.corypratt.com/projects/the-hatch-projects/new-the-hatch-2-feature-sneak-peak/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>The Hatch is available again!</title>
		<link>http://www.corypratt.com/projects/the-hatch-projects/the-hatch-is-available-again/</link>
		<comments>http://www.corypratt.com/projects/the-hatch-projects/the-hatch-is-available-again/#comments</comments>
		<pubDate>Fri, 06 Nov 2009 22:53:10 +0000</pubDate>
		<dc:creator>Cory</dc:creator>
				<category><![CDATA[Fishing]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[The Hatch]]></category>
		<category><![CDATA[Fly Fishing]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[iphone app]]></category>
		<category><![CDATA[The Hatch Lite]]></category>
		<category><![CDATA[thehatchapp.com]]></category>

		<guid isPermaLink="false">http://www.corypratt.com/?p=310</guid>
		<description><![CDATA[Waiting for the new version has been like having to wait for the salmonflys on the Deschutes!  It&#8217;s finally here again and I&#8217;m really excited about the new release!  Make sure to check out the updated version of The Hatch 2 for your iPhone or iPod Touch!  Version 2.0.4 boasts a new logo and PICTURES, [...]]]></description>
			<content:encoded><![CDATA[<p>Waiting for the new version has been like having to wait for the salmonflys on the Deschutes!  It&#8217;s finally here again and I&#8217;m really excited about the new release!  Make sure to check out the updated version of The Hatch 2 for your iPhone or iPod Touch!  Version 2.0.4 boasts a new logo and PICTURES, and lots of them!</p>
<p>You can find it over on iTunes: <a title="Download The Hatch" href="http://www.itunes.com/apps/thehatch">http://www.itunes.com/apps/thehatch</a></p>
<p>Make sure you check out the new website for the app over at <a title="The Hatch 2" href="http://www.thehatchapp.com">http://www.thehatchapp.com</a></p>
<p>An update to the lite version will be coming shortly, so hang in there.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.corypratt.com/projects/the-hatch-projects/the-hatch-is-available-again/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

