<?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; Coal</title>
	<atom:link href="http://www.mywushublog.com/tag/coal/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mywushublog.com</link>
	<description></description>
	<lastBuildDate>Wed, 28 Jul 2010 05:05:19 +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>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</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 the point where I could [...]]]></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 <img src='http://www.mywushublog.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </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>Misadventures of Cole &#8211; Chapter 1</title>
		<link>http://www.mywushublog.com/2010/02/misadventures-of-cole-chapter-1/</link>
		<comments>http://www.mywushublog.com/2010/02/misadventures-of-cole-chapter-1/#comments</comments>
		<pubDate>Mon, 15 Feb 2010 07:07:14 +0000</pubDate>
		<dc:creator>mike</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Coal]]></category>

		<guid isPermaLink="false">http://www.mywushublog.com/?p=776</guid>
		<description><![CDATA[Pretend you are a dog, specifically my dog (oh if only you could be so lucky!) Coal. You&#8217;ve got that cute little muzzle with a cute button nose; but since you are such a smart little aussie, your brain-pan is bigger than your mouth. This gives your head a particular triangular shape, the kind of [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.mywushublog.com/wp-content/uploads/2010/02/cole.jpg"><img class="aligncenter size-full wp-image-777" title="cole" src="http://www.mywushublog.com/wp-content/uploads/2010/02/cole.jpg" alt="" width="600" height="235" /></a></p>
<div></div>
<p>Pretend you are a dog, specifically my dog (oh if only you could be so lucky!) Coal. You&#8217;ve got that cute little muzzle with a cute button nose; but since you are such a smart little aussie, your brain-pan is bigger than your mouth. This gives your head a particular triangular shape, the kind of shape that will let you easily shove you head into a tight spot. Well, you better hope you can squeeze your whole body through, because if not, there is no way your head is backing out at this point.</p>
<p>Oh, you can&#8217;t? Well, better call the fire department&#8230;<br />
<div id="attachment_778" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.mywushublog.com/wp-content/uploads/2010/02/cole-stuck.jpg"><img src="http://www.mywushublog.com/wp-content/uploads/2010/02/cole-stuck-300x188.jpg" alt="" title="coal-stuck" width="300" height="188" class="size-medium wp-image-778" /></a><p class="wp-caption-text">He can almost taste the freedom!</p></div></p>
<div id="attachment_779" class="wp-caption aligncenter" style="width: 210px"><a href="http://www.mywushublog.com/wp-content/uploads/2010/02/fixed.jpg"><img src="http://www.mywushublog.com/wp-content/uploads/2010/02/fixed-200x300.jpg" alt="" title="fixed" width="200" height="300" class="size-medium wp-image-779" /></a><p class="wp-caption-text">Fixed, but now our cat cannot slip through</p></div>
<p>This is unrelated, I just wanted to post how funny he looks when that hair is flattened<br />
<div id="attachment_780" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.mywushublog.com/wp-content/uploads/2010/02/coal-wet.jpg"><img src="http://www.mywushublog.com/wp-content/uploads/2010/02/coal-wet-300x200.jpg" alt="" title="coal-wet" width="300" height="200" class="size-medium wp-image-780" /></a><p class="wp-caption-text">We used warm water, he's not really cold.</p></div></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mywushublog.com/2010/02/misadventures-of-cole-chapter-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Coal and Zoey Playing</title>
		<link>http://www.mywushublog.com/2010/01/coal-and-zoey-playing/</link>
		<comments>http://www.mywushublog.com/2010/01/coal-and-zoey-playing/#comments</comments>
		<pubDate>Sun, 17 Jan 2010 21:39:04 +0000</pubDate>
		<dc:creator>mike</dc:creator>
				<category><![CDATA[Family]]></category>
		<category><![CDATA[Coal]]></category>
		<category><![CDATA[Zoey]]></category>

		<guid isPermaLink="false">http://www.mywushublog.com/?p=711</guid>
		<description><![CDATA[Michele recorded these two playing, and then the aftermath of it all.]]></description>
			<content:encoded><![CDATA[<p>Michele recorded these two playing, and then the aftermath of it all.</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="600" height="338" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/K9ytM3jJ0Cs&amp;hl=en_US&amp;fs=1&amp;" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="600" height="338" src="http://www.youtube.com/v/K9ytM3jJ0Cs&amp;hl=en_US&amp;fs=1&amp;" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mywushublog.com/2010/01/coal-and-zoey-playing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
