<?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</title>
	<atom:link href="http://www.corypratt.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.corypratt.com</link>
	<description>Work, Projects, and Life</description>
	<lastBuildDate>Thu, 03 Jun 2010 19:45:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>In rememberance of C.D. Pratt Jr</title>
		<link>http://www.corypratt.com/personal/fishing/in-rememberance-of-c-d-pratt-jr/</link>
		<comments>http://www.corypratt.com/personal/fishing/in-rememberance-of-c-d-pratt-jr/#comments</comments>
		<pubDate>Thu, 03 Jun 2010 19:35:43 +0000</pubDate>
		<dc:creator>cpratt</dc:creator>
				<category><![CDATA[Family]]></category>
		<category><![CDATA[Fishing]]></category>
		<category><![CDATA[dudley pratt]]></category>
		<category><![CDATA[molokai]]></category>

		<guid isPermaLink="false">http://www.corypratt.com/personal/fishing/in-rememberance-of-c-d-pratt-jr/</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.corypratt.com%2Fpersonal%2Ffishing%2Fin-rememberance-of-c-d-pratt-jr%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.corypratt.com%2Fpersonal%2Ffishing%2Fin-rememberance-of-c-d-pratt-jr%2F&amp;source=corypratt&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p>This morning we (the crew) pushed off for a trip to scatter some ashes along the north shore of Molokai on the Waipoul. The area was one of grandpa&#8217;s favorite places to go and one that I have had the privilege to share with him.<br />
His boat, a 46 foot sampan he designed and built 30 years ago now carries some of his ashes in the anchor post on the bow, now adorned with a lei for the duration of the trip. Thank you grandpa for the memories and the amazing legacy you built and left for us to enjoy.  </p>
<p><a href="http://www.corypratt.com/wp-content/uploads/2010/06/l_2048_1536_DA21985A-A9B1-4052-B6E0-0EA5B3622AA3.jpeg"><img src="http://www.corypratt.com/wp-content/uploads/2010/06/l_2048_1536_DA21985A-A9B1-4052-B6E0-0EA5B3622AA3.jpeg" alt="" class="alignnone size-full" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.corypratt.com/personal/fishing/in-rememberance-of-c-d-pratt-jr/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>cpratt</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[]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.corypratt.com%2Fprojects%2Fchanging-snort-signatures-with-oinkmaster%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.corypratt.com%2Fprojects%2Fchanging-snort-signatures-with-oinkmaster%2F&amp;source=corypratt&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<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>Removing Windows XP from a Windows 7 dual boot system</title>
		<link>http://www.corypratt.com/technology/windows/removing-windows-xp-from-a-windows-7-dual-boot-system/</link>
		<comments>http://www.corypratt.com/technology/windows/removing-windows-xp-from-a-windows-7-dual-boot-system/#comments</comments>
		<pubDate>Tue, 27 Apr 2010 23:15:50 +0000</pubDate>
		<dc:creator>cpratt</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Windows 7]]></category>

		<guid isPermaLink="false">http://www.corypratt.com/?p=401</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.corypratt.com%2Ftechnology%2Fwindows%2Fremoving-windows-xp-from-a-windows-7-dual-boot-system%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.corypratt.com%2Ftechnology%2Fwindows%2Fremoving-windows-xp-from-a-windows-7-dual-boot-system%2F&amp;source=corypratt&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p>I&#8217;ve made the switch to Windows 7 on one of my machines.  It&#8217;s time to wrap my head around this new beast.  I installed Win7 x64 on a second hard drive and was dual booting the system for some of the tools I needed.</p>
<p>Now that Windows XP mode is up and running and documents were transferred, I decided it was time for XP to go, cutting the cord.  Unfortunately it&#8217;s not as easy as just removing the hard drive and calling it good, though the process isn&#8217;t all that hard. <strong>NOTE:</strong> <strong>Do at your own risk; I&#8217;m not responsible for damage.</strong></p>
<ol>
<li>Start the machine in Windows XP</li>
<li>Show hidden files and folders if they aren&#8217;t already and copy the &#8220;boot&#8221; folder and the bootmgr file to the Win7 drive.</li>
<li>Shut the machine down, remove the XP drive and boot off the Win7 DVD</li>
<li>Enter the System Recovery mode after the machine boots and click &#8220;Next&#8221; to enter the Recovery Toolbox</li>
<li>Click &#8220;Command Prompt&#8221; and type:
<ol>
<pre>"bootrec /fixmbr"</pre>
<pre>"bootrec /fixboot"</pre>
</ol>
</li>
<li>Reboot into Windows 7 and open a command prompt.  Run the following command to remove the other second boot option:
<ol>
<pre><span style="font-size: small;">"BCDEdit /delete {ntldr} /f"</span></pre>
</ol>
</li>
</ol>
<p>More information if you installed on a second partition can be found at: <a href="http://blogs.techrepublic.com.com/window-on-windows/?p=1751&amp;tag=leftCol;post-1306">http://blogs.techrepublic.com.com/window-on-windows/?p=1751&amp;tag=leftCol;post-1306</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.corypratt.com/technology/windows/removing-windows-xp-from-a-windows-7-dual-boot-system/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>cpratt</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[]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.corypratt.com%2Fprojects%2Fsnort-and-enable-reload%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.corypratt.com%2Fprojects%2Fsnort-and-enable-reload%2F&amp;source=corypratt&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<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>Tim Tebow clues 94 million into John 3:16</title>
		<link>http://www.corypratt.com/personal/tim-tebow-clues-94-million-into-john-316/</link>
		<comments>http://www.corypratt.com/personal/tim-tebow-clues-94-million-into-john-316/#comments</comments>
		<pubDate>Mon, 15 Feb 2010 16:00:52 +0000</pubDate>
		<dc:creator>cpratt</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[Bible]]></category>
		<category><![CDATA[Christianity]]></category>
		<category><![CDATA[college football]]></category>
		<category><![CDATA[ESPN]]></category>
		<category><![CDATA[John 3:16]]></category>
		<category><![CDATA[Tim Tebow]]></category>

		<guid isPermaLink="false">http://www.corypratt.com/?p=395</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.corypratt.com%2Fpersonal%2Ftim-tebow-clues-94-million-into-john-316%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.corypratt.com%2Fpersonal%2Ftim-tebow-clues-94-million-into-john-316%2F&amp;source=corypratt&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p>According to an <a href="http://espn.go.com/blog/sportscenter/post/_/id/31088/tim-tebow-rules-according-to-the-ncaa">article</a> on <a href="http://espn.go.com">ESPN.com</a>, the NCAA is looking to propose &#8220;a ban of all words, logos, numbers, or other symbols on players&#8217; eye black beginning next season.&#8221;  You might be thinking, &#8220;big whoop&#8221;, in fact I was thinking the same thing, until I started reading further down the middle of the second paragraph.  The writer states, &#8220;<a name="more"></a>For instance, after Tebow scrawled &#8220;<a href="http://en.wikipedia.org/wiki/John_3:16" target="_blank">John 3:16</a>&#8221; on his eye black for the 2009 BCS Championship Game, <a href="http://blogs.orlandosentinel.com/sports_college_uf/2009/09/tebow-draws-more-attention-for-eyeblack-messages.html" target="_blank">94 million people Googled</a> that exact Bible verse.&#8221;</p>
<p><strong>94 million?</strong> Are you kidding me?  I can&#8217;t believe that there are 94 million people tuning into the BCS Championship Game who needed to search Google for that verse.</p>
<p>Speaks pretty directly to the state of the Church in the US right now.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.corypratt.com/personal/tim-tebow-clues-94-million-into-john-316/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>cpratt</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[]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.corypratt.com%2Fprojects%2Fsnort-2-8-5-2-inline-base-on-ubuntu%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.corypratt.com%2Fprojects%2Fsnort-2-8-5-2-inline-base-on-ubuntu%2F&amp;source=corypratt&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<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>7</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>cpratt</dc:creator>
				<category><![CDATA[Fishing]]></category>
		<category><![CDATA[The Hatch]]></category>
		<category><![CDATA[iPhone]]></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[]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.corypratt.com%2Fprojects%2Fthe-hatch-projects%2Fyou-can-submit-hatch-info%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.corypratt.com%2Fprojects%2Fthe-hatch-projects%2Fyou-can-submit-hatch-info%2F&amp;source=corypratt&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<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>cpratt</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[The Hatch]]></category>
		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://www.corypratt.com/?p=367</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.corypratt.com%2Fpersonal%2Flessons-learned-in-iphone-app-development%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.corypratt.com%2Fpersonal%2Flessons-learned-in-iphone-app-development%2F&amp;source=corypratt&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<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>Skunk is off for the year</title>
		<link>http://www.corypratt.com/personal/fishing/skunk-is-off-for-the-year/</link>
		<comments>http://www.corypratt.com/personal/fishing/skunk-is-off-for-the-year/#comments</comments>
		<pubDate>Sun, 03 Jan 2010 04:43:00 +0000</pubDate>
		<dc:creator>cpratt</dc:creator>
				<category><![CDATA[Fishing]]></category>
		<category><![CDATA[Crooked River]]></category>
		<category><![CDATA[Fly Fishing]]></category>

		<guid isPermaLink="false">http://www.corypratt.com/?p=348</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.corypratt.com%2Fpersonal%2Ffishing%2Fskunk-is-off-for-the-year%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.corypratt.com%2Fpersonal%2Ffishing%2Fskunk-is-off-for-the-year%2F&amp;source=corypratt&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p>PHEW, didn&#8217;t know how long the skunk would go into the new year.  A buddy of mine and I went out for a quick trip to the Crooked today.  I haven&#8217;t been fishing there in over a year but had heard that fishing had picked up in the last few months and the weather was decent, so why not?</p>
<p>We arrived on the river at about 1pm.  The temp rose about 6 degrees on the drive over to a nice and balmy 45.  I&#8217;m not sure what the water temp was, but there was still ice on the surface of some of the slower water.</p>
<p style="text-align: center;"><a href="http://www.corypratt.com/wp-content/uploads/2010/01/P1020035.jpg"><img class="aligncenter size-full wp-image-349" title="P1020035" src="http://www.corypratt.com/wp-content/uploads/2010/01/P1020035.jpg" alt="" width="399" height="299" /></a></p>
<p><span id="more-348"></span></p>
<p>Brett hooked a good sized whitefish right off the bat and we started working our way downstream.  On the way down we noticed a few rises about 100 yards down stream so we promptly switched out the nymph&#8217;s and went for some small BWO&#8217;s.  They ended up being the ticket, we totaled 8-9 trout a piece in one small section of water!</p>
<p style="text-align: center;"><a href="http://www.corypratt.com/wp-content/uploads/2010/01/P1020033.jpg"><img class="aligncenter size-full wp-image-351" title="P1020033" src="http://www.corypratt.com/wp-content/uploads/2010/01/P1020033.jpg" alt="" width="448" height="336" /></a></p>
<p>We were off the water about 3 hours later and had a great time of fellowship and fishing.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.corypratt.com/personal/fishing/skunk-is-off-for-the-year/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Review of YouVersion.com</title>
		<link>http://www.corypratt.com/personal/review-of-youversion-com/</link>
		<comments>http://www.corypratt.com/personal/review-of-youversion-com/#comments</comments>
		<pubDate>Fri, 01 Jan 2010 07:45:20 +0000</pubDate>
		<dc:creator>cpratt</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Bible]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[youversion]]></category>

		<guid isPermaLink="false">http://www.corypratt.com/?p=347</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.corypratt.com%2Fpersonal%2Freview-of-youversion-com%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.corypratt.com%2Fpersonal%2Freview-of-youversion-com%2F&amp;source=corypratt&amp;style=normal&amp;service=bit.ly" height="61" width="50" /><br />
			</a>
		</div>
<p style="text-align: center;"><a href="http://youversion.com/reading-plans/"><img class="aligncenter" src="http://ext.youversion.com/img/badges/200x200.jpg" alt="YouVersion Reading Plans" width="200" height="200" /></a></p>
<p>Following along a previous <a href="http://www.corypratt.com/?p=337" target="_blank">post about reading and goals</a>, especially the Bible, I happened across a website called <a href="http://www.youversion.com" target="_blank">http://www.youversion.com</a>.  It&#8217;s essentially an online bible, journal, reading plans, and community based website, but I&#8217;d say one of the best features is the slew of mobile apps.</p>
<p style="text-align: left;"><span id="more-347"></span></p>
<p style="text-align: left;">Reading the Bible and picking from one of the many translations can be done without creating an account.  To take advantage of the reading plans and many of the other features, you need to walk through the simple process of setting up an account.  With the newly created account, you have access to the included reading plans with the ability to tag, note, journal, and share verses, as well as engage with other users.</p>
<p style="text-align: left;">With the newest version of their mobile apps, you can now even log in and perform many of the same tasks including following the synchronized reading plans so you can keep on top of the daily reading wherever you are.</p>
<p style="text-align: left;">Many of the versions required internet access, most likely due to licensing issues, but there are a few versions that are downloadable so you can read without having internet access.</p>
<p style="text-align: left;">It&#8217;s a pretty good app, great concept and a great addition to any iPhone or mobile device.  In no way should it take the place of a traditional printed Bible, but it is an interesting addition with the benefit of reading plans to help keep you on track!</p>
<p style="text-align: left;"><a href="http://blog.youversion.com/post/488/20-ways-to-read-the-bible-in-2010-pick-your-plan-personalize-it">http://blog.youversion.com/post/488/20-ways-to-read-the-bible-in-2010-pick-your-plan-personalize-it</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.corypratt.com/personal/review-of-youversion-com/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
