<?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>AndyB &#187; openvpn</title>
	<atom:link href="http://andrewbevitt.com/tag/openvpn/feed/" rel="self" type="application/rss+xml" />
	<link>http://andrewbevitt.com</link>
	<description>shakin' up noth-ink</description>
	<lastBuildDate>Tue, 20 Jul 2010 03:28:21 +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>pfsense 1.2 openvpn w/ tls-auth</title>
		<link>http://andrewbevitt.com/2009/06/18/pfsense-1-2-openvpn-w-tls-auth/</link>
		<comments>http://andrewbevitt.com/2009/06/18/pfsense-1-2-openvpn-w-tls-auth/#comments</comments>
		<pubDate>Wed, 17 Jun 2009 23:42:12 +0000</pubDate>
		<dc:creator>AndyB</dc:creator>
				<category><![CDATA[Work]]></category>
		<category><![CDATA[openvpn]]></category>
		<category><![CDATA[pfsense]]></category>

	<!-- AutoMeta Start -->
	<!-- AutoMeta End -->
	
		<guid isPermaLink="false">http://andrewbevitt.com/?p=284</guid>
		<description><![CDATA[<br/>I really like pfsense it makes a really good firewall, router, vpn connector &#8211; alone or together. The web interface is intuitive and the first-run wizard &#8220;just works&#8221;. I am using it to run an OpenVPN VPN. OpenVPN comes with a feature called &#8220;TLS Auth&#8221;: which basically uses TLS to encrypt the SSL handshake between]]></description>
			<content:encoded><![CDATA[<br/><p>I really like <a href="http://pfsense.org/">pfsense</a> it makes a really good firewall, router, vpn connector &#8211; alone or together. The web interface is intuitive and the first-run wizard &#8220;just works&#8221;. I am using it to run an <a href="http://openvpn.net/">OpenVPN</a> VPN.</p>
<p>OpenVPN comes with a feature called &#8220;TLS Auth&#8221;: which basically uses TLS to encrypt the SSL handshake between client and server. Ok that wasn&#8217;t basic: makes saying hello safe. However the pfsense GUI for configuring an OpenVPN server does not, <a href="http://forum.pfsense.org/index.php/topic,2747.msg16214.html">yet</a>, support tls-auth. As documented in the previous link you can add custom configuration options and manually create the file until v1.3 is released.</p>
<p>Here&#8217;s the point: The pfsense + openvpn boot scripts will write the OpenVPN configuration files and security certificates to: /var/etc/openvpn_serverX.* (X being the instance number). So for consistency you might be inclined to create your tls-auth file as /var/etc/openvpn_serverX.tls.</p>
<p><strong>DON&#8217;T!</strong></p>
<p>The /var/etc folder gets cleared on reboot. Which is a feature of pfsense&#8217;s PHP init scripts + in hind sight sensible.</p>
<p>So today&#8217;s lesson is: When manually specifying tls-auth support for OpenVPN on pfsense-1.2.X put the tls-auth file in /etc/openvpn_serverX.tls so that it is persistent.</p>
]]></content:encoded>
			<wfw:commentRss>http://andrewbevitt.com/2009/06/18/pfsense-1-2-openvpn-w-tls-auth/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Upgrade pfSense 1.2 -&gt; 1.2.1 Notes</title>
		<link>http://andrewbevitt.com/2008/12/30/upgrade-pfsense-12-121-notes/</link>
		<comments>http://andrewbevitt.com/2008/12/30/upgrade-pfsense-12-121-notes/#comments</comments>
		<pubDate>Tue, 30 Dec 2008 11:30:35 +0000</pubDate>
		<dc:creator>AndyB</dc:creator>
				<category><![CDATA[Work]]></category>
		<category><![CDATA[bogon]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[openvpn]]></category>
		<category><![CDATA[pfsense]]></category>

	<!-- AutoMeta Start -->
	<!-- AutoMeta End -->
	
		<guid isPermaLink="false">http://andrewbevitt.com/?p=135</guid>
		<description><![CDATA[<br/>I spent a few hours this afternoon upgrading some of the work firewalls, which run pfSesne, from v1.2 to v1.2.1. Which was released a few days ago. Here are my notes and warnings after following the Install and Upgrade documentation. In theory, the upgrade is meant to be fairly straight forward. You can try to]]></description>
			<content:encoded><![CDATA[<br/><p>I spent a few hours this afternoon upgrading some of the work firewalls, which run <a href="http://pfsense.org/">pfSesne</a>, from v1.2 to v1.2.1. Which was released a few days ago. Here are my notes and warnings after following the <a href="http://doc.pfsense.org/index.php/HOWTO_Install_pfSense">Install</a> and <a href="http://doc.pfsense.org/index.php/UpgradeGuide">Upgrade</a> documentation.<span id="more-135"></span></p>
<p>In theory, the upgrade is meant to be fairly straight forward. You can try to do an online upgrade. However there are documented issues with that. The other option is to reinstall, which in this case means: reflash the CF cards. So long as you have a config backup then you can simply restore your settings and off you go. All in all:</p>
<ol>
<li>Download the new image file</li>
<li>Stick the CF card in your CF card adapter</li>
<li>zcat pfsense.img.gz | dd of=/dev/XYZ bs=16k</li>
<li>Stick the CF card back in the firewall</li>
<li>Boot and restore the config</li>
</ol>
<p><strong>Gotcha #1:</strong> The new image does not have any network setup by default. In theory, once again, you should have a serial cable (DSUB 9) that you use to access the serial console of your firewall. Configure a LAN interface address, then use the web interface to restore the config file. <em>Unfortunately I did not have a serial cable; we&#8217;ll leave why out of it.</em> I dealt with this by building a config file within the embedded image before writing to the CF card. You&#8217;ll need <a href="http://bellard.org/qemu/">QEMU</a> to do this. <em>Note these steps derived from the <a href="http://doc.pfsense.org/index.php/HOWTO_Install_pfSense#Mac_OS_X_together_with_qemu">Mac_OS_X_together_with_qemu</a> section of the Install documentation.</em></p>
<p><code># Unzip the embedded image and start it with QEMU;<br />
# - Two NICs LAN / WAN<br />
# - The qemu command is all one line<br />
gunzip pfsense.img.gz<br />
qemu -hda pfsense.img -net nic,vlan=0 -net nic,vlan=1 -serial telnet::7890,server,nowait<br />
# Now open a terminal and fake a serial console with telnet<br />
telnet localhost 7890<br />
# You'll need to configure your network devices during boot.<br />
# I used generic settings so I could flash the image to multiple cards<br />
# When you reach the main menu push 8 for a shell<br />
mount -u /cf<br />
cd /conf<br />
vi config.xml<br />
# Check the interfaces are configured properly then<br />
exit<br />
# Choose option 6 to halt the emulated machine.<br />
# Write the updated image to your CF card<br />
dd if=pfsense.img of=/dev/XYZ bs=16k</code></p>
<p>QEMU is available for most major incarnations of most operating systems. The above are fairly Linux specific but should be easy enough to translate; <code>dd</code> is a physical disk dump program.</p>
<p><strong>Gotcha #2:</strong> <a href="http://en.wikipedia.org/wiki/Bogon_filtering">Bogon Networks</a>! Are updated by a cron script on the 1st of each month at 3:01AM. Unfortunately the default list includes IP&#8217;s assigned by Optus Wireless Broadband &#8211; which means if I&#8217;m using one of Works USB modems I can&#8217;t access the servers. That&#8217;s bad!. <em>Really the bogon list should be updated during the setup wizard if you turn bogon filtering on.</em> See this <a href="http://forum.pfsense.org/index.php?topic=13278.msg71468">pfSense forum topic</a> for how to manually update your bogon filter.</p>
<p><strong>Gotcha #3:</strong> Your backup config file DOES NOT contain certain settings. OpenVPN configurations for example. Make sure you have a copy of any custom settings not contained in the backup config file; otherwise be prepared to reconfigure.</p>
<p>And that&#8217;s all.</p>
]]></content:encoded>
			<wfw:commentRss>http://andrewbevitt.com/2008/12/30/upgrade-pfsense-12-121-notes/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
