<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: OpenVPN with FreeBSD, PF and Windows XP</title>
	<atom:link href="http://www.ubergeek.co.uk/blog/2008/05/openvpn-freebsd-pf-windows-howto/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ubergeek.co.uk/blog/2008/05/openvpn-freebsd-pf-windows-howto/</link>
	<description>A few thoughts and hopefully helpful howtos for the Open Source community!</description>
	<pubDate>Tue, 06 Jan 2009 14:33:43 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: Troels Just</title>
		<link>http://www.ubergeek.co.uk/blog/2008/05/openvpn-freebsd-pf-windows-howto/#comment-2038</link>
		<dc:creator>Troels Just</dc:creator>
		<pubDate>Mon, 15 Dec 2008 11:53:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubergeek.co.uk/blog/?p=6#comment-2038</guid>
		<description>I'm doing basically just a stand-alone VPN server doing ethernet bridging, on an existing network (It's not an Internet gateway doing NAT or anything), I have OpenVPN set up so that clients use the Soekris router as their default gateway. I have my network set up like this:

Internet --&#62; WRT54GL --&#62; Soekris net5501 with pfSense --&#62; 
&#124;-- 24-port switch --&#62; VPN server
&#124;--  WRT54GL

There's two wireless routers on this network, the second one acts just like a regular access point, doesn't do NAT or anything on it's own, the Soekris machine allows clients to log on the wireless network and get an IP via DHCP (Different range from the internal network), and nothing else, except connecting to 10.0.1.7 on port 1194, which is the VPN on the internal network. Once users log onto that, they are part of the internal network, and can get on the Internet and the like. The VPN server also allows for people on the Internet to connect to it. So that I could go to China, and keep my liberty in cyberspace. ;)
The only thing it does is VPN, so I would like to limit traffic to only VPN, SSH and pings. So far this is what I've got:


## Macros
eth_if="gem0"
vpn_if="tun0"

## Options
set block-policy return
set skip on lo0
scrub in all
antispoof quick for { $eth_if, $vpn_if }

## Filtering rules
block in all
pass out log all

pass inet proto icmp all icmp-type { echoreq, unreach }

pass in log on $eth_if proto tcp to ($eth_if) port 22
pass in log on $eth_if proto udp to ($eth_if) port 1194
pass in log on $vpn_if


But the VPN doesn't work with that enabled.</description>
		<content:encoded><![CDATA[<p>I&#8217;m doing basically just a stand-alone VPN server doing ethernet bridging, on an existing network (It&#8217;s not an Internet gateway doing NAT or anything), I have OpenVPN set up so that clients use the Soekris router as their default gateway. I have my network set up like this:</p>
<p>Internet &#8211;&gt; WRT54GL &#8211;&gt; Soekris net5501 with pfSense &#8211;&gt;<br />
|&#8211; 24-port switch &#8211;&gt; VPN server<br />
|&#8211;  WRT54GL</p>
<p>There&#8217;s two wireless routers on this network, the second one acts just like a regular access point, doesn&#8217;t do NAT or anything on it&#8217;s own, the Soekris machine allows clients to log on the wireless network and get an IP via DHCP (Different range from the internal network), and nothing else, except connecting to 10.0.1.7 on port 1194, which is the VPN on the internal network. Once users log onto that, they are part of the internal network, and can get on the Internet and the like. The VPN server also allows for people on the Internet to connect to it. So that I could go to China, and keep my liberty in cyberspace. <img src='http://www.ubergeek.co.uk/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /><br />
The only thing it does is VPN, so I would like to limit traffic to only VPN, SSH and pings. So far this is what I&#8217;ve got:</p>
<p>## Macros<br />
eth_if=&#8221;gem0&#8243;<br />
vpn_if=&#8221;tun0&#8243;</p>
<p>## Options<br />
set block-policy return<br />
set skip on lo0<br />
scrub in all<br />
antispoof quick for { $eth_if, $vpn_if }</p>
<p>## Filtering rules<br />
block in all<br />
pass out log all</p>
<p>pass inet proto icmp all icmp-type { echoreq, unreach }</p>
<p>pass in log on $eth_if proto tcp to ($eth_if) port 22<br />
pass in log on $eth_if proto udp to ($eth_if) port 1194<br />
pass in log on $vpn_if</p>
<p>But the VPN doesn&#8217;t work with that enabled.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.ubergeek.co.uk/blog/2008/05/openvpn-freebsd-pf-windows-howto/#comment-2016</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Sat, 13 Dec 2008 12:11:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubergeek.co.uk/blog/?p=6#comment-2016</guid>
		<description>Hi Troels

Its a long time since i wrote this howto and i have lots of machines with different pf.conf setups.  What sort of setup are you trying to achieve?</description>
		<content:encoded><![CDATA[<p>Hi Troels</p>
<p>Its a long time since i wrote this howto and i have lots of machines with different pf.conf setups.  What sort of setup are you trying to achieve?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Troels Just</title>
		<link>http://www.ubergeek.co.uk/blog/2008/05/openvpn-freebsd-pf-windows-howto/#comment-1988</link>
		<dc:creator>Troels Just</dc:creator>
		<pubDate>Thu, 11 Dec 2008 15:56:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubergeek.co.uk/blog/?p=6#comment-1988</guid>
		<description>Very cool HOWTO, however I'm a total goof when it comes to pf, would it be possible for you to post the entire pf.conf file you use? Because I don't quite know what other than the bit you mention that I ought to put in there.</description>
		<content:encoded><![CDATA[<p>Very cool HOWTO, however I&#8217;m a total goof when it comes to pf, would it be possible for you to post the entire pf.conf file you use? Because I don&#8217;t quite know what other than the bit you mention that I ought to put in there.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: andri</title>
		<link>http://www.ubergeek.co.uk/blog/2008/05/openvpn-freebsd-pf-windows-howto/#comment-1363</link>
		<dc:creator>andri</dc:creator>
		<pubDate>Tue, 28 Oct 2008 02:03:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubergeek.co.uk/blog/?p=6#comment-1363</guid>
		<description>thanks,it's work hehehe</description>
		<content:encoded><![CDATA[<p>thanks,it&#8217;s work hehehe</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ludwig</title>
		<link>http://www.ubergeek.co.uk/blog/2008/05/openvpn-freebsd-pf-windows-howto/#comment-1335</link>
		<dc:creator>Ludwig</dc:creator>
		<pubDate>Sun, 26 Oct 2008 10:29:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubergeek.co.uk/blog/?p=6#comment-1335</guid>
		<description>Thank you! Translated it today.</description>
		<content:encoded><![CDATA[<p>Thank you! Translated it today.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lweb.se » OpenVPN den enkla vägen</title>
		<link>http://www.ubergeek.co.uk/blog/2008/05/openvpn-freebsd-pf-windows-howto/#comment-1334</link>
		<dc:creator>lweb.se » OpenVPN den enkla vägen</dc:creator>
		<pubDate>Sun, 26 Oct 2008 10:28:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubergeek.co.uk/blog/?p=6#comment-1334</guid>
		<description>[...] Från: http://www.ubergeek.co.uk/blog/2008/05/openvpn-freebsd-pf-windows-howto/ [...]</description>
		<content:encoded><![CDATA[<p>[...] Från: <a href="http://www.ubergeek.co.uk/blog/2008/05/openvpn-freebsd-pf-windows-howto/" rel="nofollow">http://www.ubergeek.co.uk/blog/2008/05/openvpn-freebsd-pf-windows-howto/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.ubergeek.co.uk/blog/2008/05/openvpn-freebsd-pf-windows-howto/#comment-1175</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Sat, 18 Oct 2008 10:55:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubergeek.co.uk/blog/?p=6#comment-1175</guid>
		<description>Hi Ludwig,  please be my guest!

Glad it was helpful.</description>
		<content:encoded><![CDATA[<p>Hi Ludwig,  please be my guest!</p>
<p>Glad it was helpful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ludwig Loh</title>
		<link>http://www.ubergeek.co.uk/blog/2008/05/openvpn-freebsd-pf-windows-howto/#comment-1151</link>
		<dc:creator>Ludwig Loh</dc:creator>
		<pubDate>Fri, 17 Oct 2008 16:13:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubergeek.co.uk/blog/?p=6#comment-1151</guid>
		<description>Hi, thank you very much for this detailed howto. I hope its OK that I translate it into swedish and post to my blog www.lweb.se</description>
		<content:encoded><![CDATA[<p>Hi, thank you very much for this detailed howto. I hope its OK that I translate it into swedish and post to my blog <a href="http://www.lweb.se" rel="nofollow">http://www.lweb.se</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JohnnyCashout</title>
		<link>http://www.ubergeek.co.uk/blog/2008/05/openvpn-freebsd-pf-windows-howto/#comment-682</link>
		<dc:creator>JohnnyCashout</dc:creator>
		<pubDate>Mon, 15 Sep 2008 03:04:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubergeek.co.uk/blog/?p=6#comment-682</guid>
		<description>thanks, this guide  proved very helpful to me</description>
		<content:encoded><![CDATA[<p>thanks, this guide  proved very helpful to me</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tyndall.id.au &#187; Blog Archive &#187; FreeBSD VPN Server</title>
		<link>http://www.ubergeek.co.uk/blog/2008/05/openvpn-freebsd-pf-windows-howto/#comment-168</link>
		<dc:creator>tyndall.id.au &#187; Blog Archive &#187; FreeBSD VPN Server</dc:creator>
		<pubDate>Fri, 25 Jul 2008 10:42:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubergeek.co.uk/blog/?p=6#comment-168</guid>
		<description>[...] http://www.ubergeek.co.uk/blog/2008/05/openvpn-freebsd-pf-windows-howto/ [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://www.ubergeek.co.uk/blog/2008/05/openvpn-freebsd-pf-windows-howto/" rel="nofollow">http://www.ubergeek.co.uk/blog/2008/05/openvpn-freebsd-pf-windows-howto/</a> [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
