<?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>packetjunkie.net</title>
	<atom:link href="http://packetjunkie.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://packetjunkie.net</link>
	<description></description>
	<lastBuildDate>Tue, 20 Dec 2011 18:14:32 +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>pfsense on a WatchGuard Firebox X550e (on a Mac)</title>
		<link>http://packetjunkie.net/2011/12/pfsense-on-a-watchguard-firebox-x550e-on-a-mac/</link>
		<comments>http://packetjunkie.net/2011/12/pfsense-on-a-watchguard-firebox-x550e-on-a-mac/#comments</comments>
		<pubDate>Tue, 20 Dec 2011 02:26:31 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Network]]></category>

		<guid isPermaLink="false">http://packetjunkie.net/?p=22</guid>
		<description><![CDATA[Since there was broadband internet (here in Germany most-likely ADSL) I used some kind of router to connect all my devices in my home network with the internet. But after a short period of time using the so called router from &#8230; <a href="http://packetjunkie.net/2011/12/pfsense-on-a-watchguard-firebox-x550e-on-a-mac/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Since there was broadband internet (here in Germany most-likely ADSL) I used some kind of router to connect all my devices in my home network with the internet.<br />
But after a short period of time using the so called router from my ISP I decided to run a server as a router. The main reason was, that I became interested  in the whole networking thing.<br />
But since I always use the server also as storage I always wanted to have this box not directly connected to the internet. And as a lucky guy as I am I got the chance to get my hands on a used WatchGuard Firebox X550e.<span id="more-22"></span>Since this box is already EOL I decided not to go with the WachGuard OS &#8211; which is not that bad at all &#8211; but install pfsense (<a title="pfsense homepage" href="http://pfsense.org" target="_blank">http://pfsense.org</a>) on it. And here is the way I did it.</p>
<p>To follow my steps you will need the following</p>
<ul>
<li>WatchGuard Core x550e incl. CF-Card (min 512mb)</li>
<li>USB to serial adapter</li>
<li>USB-card-reader for writing onto the compact-flash-card</li>
<li>a pfsense image on your MacBook &#8211; see mirrors on pfsense.org</li>
</ul>
<p>First you will download the pfsense image which is fitting best on your hardware. Since I am describing  this for a WatchGuard I would recommend</p>
<pre>pfSense-2.0-RELEASE-512mb-i386-nanobsd</pre>
<p>image. Just choose a mirror which is near your current location and download the file.</p>
<p>As the title of the post says &#8211; I will do all the next steps on a Mac OS X operating-system. In case you are using Microsoft Windows or Linux I would recommend that you search for detailed instructions in $SEARCHENGINE.</p>
<p>Now you will need to open your WatchGuard to get access to the compact-flash-card. In total you will need to remove 14 screws.<br />
After removing the enclosure you will easily locate the CF-card on the right site of the box.<br />
To remove the card you will need to void the warranty &#8211; yes this is ok because you will not have any warranty due the fact that the box is already EOL (speek end of life).</p>
<p>Connect the cf-card to your Mac with the help of a CF-card-reader and fire up a terminal. Get root access either by using</p>
<pre>sudo su -</pre>
<p>or perform all the next steps with the sudo &#8220;prefix&#8221;.</p>
<p>First we want to see which device is our CF-card. So we &#8220;ask&#8221; the diskutility.</p>
<pre>diskutil list</pre>
<p>And you should get an output similar to the following one.</p>
<pre>root# diskutil list
/dev/disk0
 #: TYPE NAME SIZE IDENTIFIER
 0: GUID_partition_scheme *320.1 GB disk0
 1: EFI 209.7 MB disk0s1
 2: Apple_HFS Mac OS X 319.7 GB disk0s2
/dev/disk1
 #: TYPE NAME SIZE IDENTIFIER
 0: GUID_partition_scheme *512.5 MB disk1
 1: Apple_HFS Untitled 1 512.4 MB disk1s1
/dev/disk2
 #: TYPE NAME SIZE IDENTIFIER
 0: NO NAME *786.4 KB disk2</pre>
<p>You should be able to identify your CF-card by checking the disk-size. Here it is /dev/disk1.<br />
Next step is to make sure that the disk is not mounted.</p>
<pre>diskutil umountdisk disk1</pre>
<p>Now that we have unmounted the disk we can copy the pfsense image to the CF-card.</p>
<pre>gzcat pfSense-2.0-RELEASE-512mb-i386-nanobsd.img.gz | dd of=/dev/disk1 bs=16</pre>
<p>This command will decompress the pfsense image and copy it to the CF-card. Please be aware that this can take a long time. So please make sure that you have something to do while the card will be filled up with all the nice software. Expect up to two hours &#8211; yes this is a long time but I forgot to mesure the time needed.<br />
After a while you should see some output like this:</p>
<pre>332030208+0 records in
32030208+0 records out
512483328 bytes transferred in 2473.893463 secs (207157 bytes/sec</pre>
<p>Oh wait &#8211; you have an idea how long it toke to copy all the stuff on this card? Great;)</p>
<p>Now just put the CF-card to the place it belongs &#8211; the Firebox (well it is not longer a Firebox but hey lets name it so) &#8211; connect the box via a serial connection to your Mac and open a serial terminal (in my last post I described how to manage this).<br />
After firing up the box wait up to 90 secs and the check the nice output on the serial connection &#8211; does this feel great, looks cool hum? To be honest I like this moment &#8211; when a piece of metal comes &#8220;alive&#8221;.<br />
Here is a snipped of the output you should see without doing anything besides looking at the terminal.</p>
<pre>Root mount waiting for: usbus4 usbus3 usbus2
uhub2: 2 ports with 2 removable, self powered
uhub3: 2 ports with 2 removable, self powered
Root mount waiting for: usbus4
Root mount waiting for: usbus4
Root mount waiting for: usbus4
uhub4: 8 ports with 8 removable, self powered
Trying to mount root from ufs:/dev/ufs/pfsense0
Configuring crash dumps...
Mounting filesystems...
Setting up embedded specific environment... done.</pre>
<p>When the box asks you if you want to configure vlans I recommend to skip this for this moment since it ist must easier to do this on the web-interface later when the box is running and reachable via network.<br />
Now connect your internet-cable to the port labeled with &#8220;0&#8243; and your LAN-cable to &#8220;1&#8243;. Within the terminal enter sk0 for WAN and sk1 as the LAN interface.<br />
After this steps you should be able to connect to the box via 192.168.1.1 in a web-browser.</p>
<p>The default user/password is admin/pfsense &#8211; after logging in the first time pfsense will present you a quick setup wizard which is ok so use it for the very first setup.</p>
<p>If everything went right you should now be online with your very one full featured router/firewall combo.</p>
<p>Hopefully this quick and dirty &#8220;how to&#8221; could help you a little bit. Maybe I will write something more about special things I do with my WatchGuard pfsense box.</p>
]]></content:encoded>
			<wfw:commentRss>http://packetjunkie.net/2011/12/pfsense-on-a-watchguard-firebox-x550e-on-a-mac/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>USB to serial on a MacBook</title>
		<link>http://packetjunkie.net/2011/12/usb-to-serial-on-a-macbook/</link>
		<comments>http://packetjunkie.net/2011/12/usb-to-serial-on-a-macbook/#comments</comments>
		<pubDate>Mon, 19 Dec 2011 19:37:22 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://packetjunkie.net/?p=6</guid>
		<description><![CDATA[Everyone who is dealing with network-equipment knows about the pain, that almost every notebook / laptop is missing a serial-port today. My laptop at work and my private MacBook Pro suffers the same problem. So I am using a USB &#8230; <a href="http://packetjunkie.net/2011/12/usb-to-serial-on-a-macbook/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Everyone who is dealing with network-equipment knows about the pain, that almost every notebook / laptop is missing a serial-port today.<br />
My laptop at work and my private MacBook Pro suffers the same problem. So I am using a USB to serial adapter. The one I got (<a title="Aten UC-232a" href="http://www.aten.com/products/productItem.php?model_no=UC232A" target="_blank">Aten UC-232A</a>) is a plug and play under Windows. But unfortunately it is not that simple (it&#8217;s easy at all) on a Mac. But at the end I figured it out I would like to start this blog with a short &#8220;how-to&#8221;.<span id="more-6"></span>In short all which has do be done are the following three steps</p>
<ul>
<li>Install driver (<a title="Mac OS X PL2303 driver" href="http://osx-pl2303.sourceforge.net/" target="_blank">Mac OS X PL2303 Driver</a>)</li>
<li>Connect USB to serial adapter to you MacBook</li>
<li>Starting a screen session</li>
</ul>
<h2>Install driver</h2>
<p>You will need a driver for your USB to serial adapter. The one I got is based on the PL2303 chip.<br />
Some vendors provide a Mac driver but even then I found out that the one from the Mac OS X PL2303 driver project works best for me. Why? Well I am on Mac OS X Lion and after testing the driver from Aten I can say that I did not figure out how this should work. So I decided to go with the one I linked in the list above.<br />
Please be aware that after you installed the driver your Mac will ask for a reboot &#8211; so it may be a good idea to save all the work before you start installing the driver.<br />
Also please do not plug in you USB to serial adapter before you installed the driver. Yes I know nothing bad will happen so it didn&#8217;t to me at all, but you know Mr. Murphy and his law?</p>
<p>So just download the driver from the project website and install it. After the installation process has finished just reboot your Mac and &#8230;</p>
<h2>Connect your USB to serial adaptor to your MAC</h2>
<p>Yes that&#8217;s all for this step. No fancy stuff but I saw a lot of strange problems you would never think about.</p>
<h2>Starting a screen session</h2>
<p>You can of course use a special terminal software like zterm to connect to your serial device. But in this short &#8220;how-to&#8221; I would like to use the &#8220;Terminal&#8221;-App and the small but great program called &#8220;screen&#8221;.<br />
So just fire up the &#8220;Terminal&#8221;-App &#8211; Applications &#8211;&gt; Utilities &#8211;&gt; Terminal. In this window just type</p>
<pre>screen /dev/tty.usbserial 9600</pre>
<p>and hit ENTER. You should now be connected to your (network-)device via a serial connection.</p>
]]></content:encoded>
			<wfw:commentRss>http://packetjunkie.net/2011/12/usb-to-serial-on-a-macbook/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

