<?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>My Wushu Blog &#187; Owen</title>
	<atom:link href="http://www.mywushublog.com/tag/owen/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mywushublog.com</link>
	<description></description>
	<lastBuildDate>Tue, 31 Jan 2012 18:42:14 +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>Stuff and Things</title>
		<link>http://www.mywushublog.com/2010/06/stuff-and-things/</link>
		<comments>http://www.mywushublog.com/2010/06/stuff-and-things/#comments</comments>
		<pubDate>Mon, 21 Jun 2010 05:20:06 +0000</pubDate>
		<dc:creator>Mike Carlson</dc:creator>
				<category><![CDATA[Family]]></category>
		<category><![CDATA[Geekyness]]></category>
		<category><![CDATA[Coal]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Owen]]></category>
		<category><![CDATA[pf]]></category>

		<guid isPermaLink="false">http://www.mywushublog.com/?p=973</guid>
		<description><![CDATA[I don&#8217;t have a central theme with this post, but I wanted to at least do something (it has been a while). Packet Filter Based on Chris&#8217;s &#8220;Falling in love with pf(4)&#8221; google status, I decided to take the plunge and move off of ipfw(4) to pf(4). I&#8217;m not at ...]]></description>
			<content:encoded><![CDATA[<p>I don&#8217;t have a central theme with this post, but I wanted to at least do something (it has been a while).</p>
<h2>Packet Filter</h2>
<p>Based on Chris&#8217;s &#8220;Falling in love with pf(4)&#8221; google status, I decided to take the plunge and move off of ipfw(4) to pf(4). I&#8217;m not at the point where I could write my one filter, however, I do feel I at least understand what is happening here. I also took the time to update all my ports, so I&#8217;m even running PHP 5.3.2, the latest WP release and about 600 other installed ports (Yikes, I&#8217;ve got a LOT of stuff on this server!). </p>
<p>I&#8217;ve always built my own kernel, at least on my home server, so the first thing to do is sync my /usr/src tree:</p>
<pre>$ sudo su -
root# csup ~/bin/src-supfile
...
root# vim /usr/src/sys/amd64/conf/BLACKHOLE
# pf
device          pf
device          pflog
# pf's QoS - ALTQ
options         ALTQ
options         ALTQ_CBQ        # Class Bases Queuing (CBQ)
options         ALTQ_RED        # Random Early Detection (RED)
options         ALTQ_RIO        # RED In/Out
options         ALTQ_HFSC       # Hierarchical Packet Scheduler (HFSC)
options         ALTQ_PRIQ       # Priority Queuing (PRIQ)
options         ALTQ_NOPCC      # Required for SMP build

root# cd /usr/src ; make -j8 buildkernel &amp;&amp; make installkernel &amp;&amp; reboot</pre>
<p>I use tcsh, a C Shell variant, and I find the AND (&amp;&amp;) operator really useful to chain commands together but I require that they succeed. This way, if my build fails, it will abort and not proceed with the install and reboot.</p>
<p>Now that I have a updated kernel with PF enabled, I had to steal Chris&#8217;s configuration:</p>
<h4>/etc/rc.conf</h4>
<pre>root# vim /etc/rc.conf
#
# Packet Filter
#
pf_enable="YES"
pf_rules="/etc/pf.conf"
pflog_enable="YES"

#
# Unused, pf replaces all of this
#
#natd_program="/sbin/natd"       # path to natd, if you want a different one.
#natd_enable="YES"                # Enable natd (if firewall_enable == YES).
#natd_interface="em0"               # Public interface or IPaddress to use.
#natd_flags="-u -s -m"                   # Additional flags for natd.
#firewall_enable="YES"
#firewall_script="/usr/local/etc/rc.firewall"
#firewall_logging="YES"</pre>
<h4>/etc/pf.conf</h4>
<pre>root# vim /etc/pf.conf
# ----------------------------------------------------------------------------
# "THE BEER-WARE LICENSE" (Revision 42):
# cshumway@titan-project.org wrote this file. As long as you retain this notice you
# can do whatever you want with this stuff. If we meet some day, and you think
# this stuff is worth it, you can buy me a beer in return Christopher Shumway
# ----------------------------------------------------------------------------
#
# pf.conf
ext_if="em0"
int_if="em1"
lan_net="192.168.2.0/24"
open_ports="{ domain, ssh, http, https }"

# options
set skip on lo0
set skip on $int_if
set limit states 25000
set loginterface $ext_if
set state-policy if-bound

# scrub traffic
scrub in all

# NAT
nat on $ext_if from $lan_net to any -&gt; ($ext_if)

# upnp redirection
rdr-anchor "miniupnpd"
anchor "miniupnpd"

# antispoofing
antispoof for $ext_if

# rules start here
block in
pass out on $ext_if keep state
pass in on $ext_if inet proto { tcp, udp } from any to ($ext_if) port $open_ports flags S/SA keep state
pass in on $ext_if inet proto icmp</pre>
<p>Pretty simple, and after a reboot my top process is java, and not natd(8). I can almost feel the internet becoming faster :)</p>
<h2>Rock n Roll Owen</h2>
<div id="attachment_978" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.mywushublog.com/wp-content/uploads/2010/06/family-2010.06.19_08.48.311.jpg"><img class="size-medium wp-image-978" title="family-2010.06.19_08.48.31" src="http://www.mywushublog.com/wp-content/uploads/2010/06/family-2010.06.19_08.48.311-300x200.jpg" alt="" width="300" height="200" /></a><p class="wp-caption-text">Unlike me, Owen still looks like a nice guy with shades on. I look like someone who would drive a black acura and cut you off...</p></div>
<div id="attachment_979" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.mywushublog.com/wp-content/uploads/2010/06/family-2010.06.19_08.48.421.jpg"><img class="size-medium wp-image-979" title="family-2010.06.19_08.48.42" src="http://www.mywushublog.com/wp-content/uploads/2010/06/family-2010.06.19_08.48.421-300x200.jpg" alt="" width="300" height="200" /></a><p class="wp-caption-text">Owen doesn&#39;t like the Paparazzi treatment!</p></div>
<p>We&#8217;ve made up, and did a publicity photo-op together<br />
<a href="http://www.mywushublog.com/wp-content/uploads/2010/06/family-2010.05.12_20.29.03.jpg"><img class="aligncenter size-medium wp-image-977" title="family-2010.05.12_20.29.03" src="http://www.mywushublog.com/wp-content/uploads/2010/06/family-2010.05.12_20.29.03-300x200.jpg" alt="" width="300" height="200" /></a></p>
<h2>Caralyne&#8217;s Garden</h2>
<div id="attachment_982" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.mywushublog.com/wp-content/uploads/2010/06/family-2010.05.12_16.07.54.jpg"><img src="http://www.mywushublog.com/wp-content/uploads/2010/06/family-2010.05.12_16.07.54-300x200.jpg" alt="" title="family-2010.05.12_16.07.54" width="300" height="200" class="size-medium wp-image-982" /></a><p class="wp-caption-text">Caralyne is skillful with both tending plants, and stapling things.</p></div>
<h2>Dogs</h2>
<div id="attachment_980" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.mywushublog.com/wp-content/uploads/2010/06/family-2010.05.11_07.50.18.jpg"><img src="http://www.mywushublog.com/wp-content/uploads/2010/06/family-2010.05.11_07.50.18-300x200.jpg" alt="" title="family-2010.05.11_07.50.18" width="300" height="200" class="size-medium wp-image-980" /></a><p class="wp-caption-text">Zoey and Coal sharing the morning sun</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.mywushublog.com/2010/06/stuff-and-things/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Easter</title>
		<link>http://www.mywushublog.com/2009/04/easter/</link>
		<comments>http://www.mywushublog.com/2009/04/easter/#comments</comments>
		<pubDate>Mon, 13 Apr 2009 23:00:25 +0000</pubDate>
		<dc:creator>Mike Carlson</dc:creator>
				<category><![CDATA[Family]]></category>
		<category><![CDATA[Easter]]></category>
		<category><![CDATA[Owen]]></category>

		<guid isPermaLink="false">http://www.mywushublog.com/?p=310</guid>
		<description><![CDATA[Sunday we celebrated Easter, as well as Owens 1st birthday (its really April 22nd, but we took advantage of having most of the family in one place), at my parents place in Knightsen. Here is a link to the gallery on my other site, m87-blackhole.org: http://www.m87-blackhole.org/photos/2009-04-12-easter/ I also took some ...]]></description>
			<content:encoded><![CDATA[<p>Sunday we celebrated Easter, as well as Owens 1st birthday (its really April 22nd, but we took advantage of having most of the family in one place), at my parents place in Knightsen.</p>
<p>Here is a link to the gallery on my other site, m87-blackhole.org:<br />
<a href="http://www.m87-blackhole.org/photos/2009-04-12-easter/">http://www.m87-blackhole.org/photos/2009-04-12-easter/</a></p>
<p>I also took some pictures of my parents house in the making. It is starting to shape up nicely, my step dad is a pretty talented carpenter.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mywushublog.com/2009/04/easter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- This Quick Cache file was built for (  www.mywushublog.com/tag/owen/feed/ ) in 0.17362 seconds, on Feb 5th, 2012 at 10:49 am UTC. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on Feb 5th, 2012 at 11:49 am UTC -->
