<?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>ClearChain &#187; pptp</title>
	<atom:link href="http://www.clearchain.com/blog/tags/pptp/feed" rel="self" type="application/rss+xml" />
	<link>http://www.clearchain.com/blog</link>
	<description>-= Daily Happenings =-</description>
	<lastBuildDate>Wed, 05 Oct 2011 23:02:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>FreeBSD VPN</title>
		<link>http://www.clearchain.com/blog/posts/freebsd-vpn-2</link>
		<comments>http://www.clearchain.com/blog/posts/freebsd-vpn-2#comments</comments>
		<pubDate>Thu, 13 Nov 2008 14:24:20 +0000</pubDate>
		<dc:creator>Benjamin Close</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[encryption]]></category>
		<category><![CDATA[pptp]]></category>
		<category><![CDATA[vpn]]></category>

		<guid isPermaLink="false">http://www.clearchain.com/blog/?p=123</guid>
		<description><![CDATA[<a href="http://www.clearchain.com/blog/posts/freebsd-vpn-2"><img align="left" hspace="5" width="150" height="150" src="http://www.clearchain.com/blog/wp-content/plugins/thumbnail-for-excerpts/tfe_no_thumb.png" class="alignleft wp-post-image tfe" alt="" title="" /></a>FreeBSD VPN This document describes how to setup both the server side and client side for a PPTP connection with MPPE encryption that works for windows, MacOsX and other freebsd boxes. The basic process: - Install &#38; configure pptpserver on the freebsd server - Configure ppp on the freebsd server - Setup the clients 1.<a href="http://www.clearchain.com/blog/posts/freebsd-vpn-2"> <font size=-2>[..more..]</font></a>]]></description>
			<content:encoded><![CDATA[<h6><span class="mw-headline">FreeBSD VPN </span></h6>
<p>This document describes how to setup both the server side and client side for a PPTP connection with MPPE encryption that works for windows, MacOsX and other freebsd boxes.</p>
<p>The basic process:</p>
<pre> - Install &amp; configure pptpserver on the freebsd server
 - Configure ppp on the freebsd server
 - Setup the clients</pre>
<h5><span class="editsection"> </span><span class="mw-headline">1. Installing pptpserver </span></h5>
<p>This part is handled really easily as it pptp server exists in the ports collections. Hence all you need to do  is:</p>
<pre> cd /usr/port/net/poptop
 make install</pre>
<p>To configure pptp modify /usr/local/etc/pptp.conf\\ Put the following lines in the file:</p>
<pre> localip 192.168.2.1
 remoteip 192.168.2.56-75

 # Listen on the outside interface only
 listen 130.220.37.202</pre>
<h5><span class="mw-headline">Configure  ppp on the freebsd server </span></h5>
<p>Edit /etc/ppp/ppp.conf and set the  following  target only:</p>
<pre>  pptp:
    set ifaddr 192.168.1.1 192.168.1.56-192.168.1.74 255.255.255.255
   set dns 192.168.0.1
    set nbns 192.168.0.1
   disable pap
   disable utmp
   disable passwdauth
   #enable chap     # MPPE Requirest chap81/MSChapV2
   enable MSChapV2
   enable mppe      # Enable Encrptions
   set log Phase Chat LCP IPCP CCP tun command  # Debugging
   set timeout 0   # Don't drop the connection</pre>
<pre>   #
   # Force 128 bit encryption with a key change every packet
   # MacOSX only works with stateless connections and the are more
   # secure anyway - just less efficient.
   set mppe 128 stateless</pre>
<pre>   # Disable compression - freebsd clients try to use it but it breaks mppe
   disable deflate pred1
   deny deflate pred1
   set server /var/run/pptp_ppp_%d "" 0700
   accept dns              # Enable clients to request dns details
   disable ipv6cp          # Disable ipv6
   enable proxy            # Enable proxying addresses on the local net for clients</pre>
<p>Now modify/create /etc/ppp/ppp.secret and put in it:</p>
<pre> someuser  userpassword  192.168.1.75</pre>
<p>Now &#8216;someuser&#8217; can log in with the password  &#8216;userpassword&#8217; and will get an IP address of 192.168.1.75. If you don&#8217;t  want to specify the ip, just leave the 3rd parameter off that line  of the file.</p>
<h5><span class="mw-headline">Setup Clients </span></h5>
<p>This section details how to setup various clients</p>
<h4><span class="mw-headline"> Windows XP </span></h4>
<pre> - Create a new VPN connection
 - Specify host
 - Specify Usename  / password
 - Hit connect</pre>
<h4><span class="mw-headline">FreeBSD </span></h4>
<p>Freebsd works  with MPPE out the box. Simply setup the following in  /etc/ppp.conf</p>
<pre> MYVPN:
   set authname someuser
   set authkey  userpassword
   disable pred1
   enable proxy
   disable ipv6cp
   set timeout 0
   add default HISADDR</pre>
<p>Install pptpclient</p>
<pre>   cd /usr/ports/net/pptpclient
   make install</pre>
<p>Now run it with:  pptp serverip MYVPN\\ ie:</p>
<pre>  pptp  130.220.37.2 MYVPN</pre>
<h4><span class="mw-headline">Mac OsX </span></h4>
<p>Simply configure the GUI tool.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.clearchain.com/blog/posts/freebsd-vpn-2/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FreeBSD VPN</title>
		<link>http://www.clearchain.com/blog/posts/freebsd-vpn</link>
		<comments>http://www.clearchain.com/blog/posts/freebsd-vpn#comments</comments>
		<pubDate>Fri, 07 Nov 2008 04:16:30 +0000</pubDate>
		<dc:creator>Benjamin Close</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[encryption]]></category>
		<category><![CDATA[mppe]]></category>
		<category><![CDATA[pptp]]></category>
		<category><![CDATA[tunnel]]></category>
		<category><![CDATA[vpn]]></category>

		<guid isPermaLink="false">http://www.clearchain.com/blog/?p=60</guid>
		<description><![CDATA[<a href="http://www.clearchain.com/blog/posts/freebsd-vpn"><img align="left" hspace="5" width="150" height="150" src="http://www.clearchain.com/blog/wp-content/plugins/thumbnail-for-excerpts/tfe_no_thumb.png" class="alignleft wp-post-image tfe" alt="" title="" /></a>This document describes how to setup both the server side and client side for a PPTP connection with MPPE encryption that works for windows, MacOsX and other freebsd boxes. Note, it was based on FreeBSD 6 series, whether it works with later versions of FreeBSD is unknown. The basic process: - Install &#38; configure pptpserver<a href="http://www.clearchain.com/blog/posts/freebsd-vpn"> <font size=-2>[..more..]</font></a>]]></description>
			<content:encoded><![CDATA[<p>This document describes how to setup both the server side and client side for a PPTP connection with MPPE encryption that works for windows, MacOsX and other freebsd boxes.</p>
<p><span style="color: #ff0000;"><em><strong>Note, it was based on FreeBSD 6 series, whether it works with later versions of FreeBSD is unknown.</strong></em></span></p>
<p>The basic process:</p>
<pre> - Install &amp; configure pptpserver on the freebsd server
 - Configure ppp on the freebsd server
 - Setup the clients</pre>
<p><span id="more-60"></span></p>
<h5><span class="mw-headline">1. Installing pptpserver</span></h5>
<p>This part is handled really easily as it pptp server exists in the ports collections. Hence all you need to do is:</p>
<pre> cd /usr/port/net/poptop
 make install</pre>
<p>To configure pptp modify /usr/local/etc/pptp.conf\\ Put the following lines in the file:</p>
<pre> localip 192.168.2.1
 remoteip 192.168.2.56-75

 # Listen on the outside interface only
 listen 130.220.37.202</pre>
<p><a name="Configure__ppp_on_the_freebsd_server"></a></p>
<h5><span class="mw-headline">Configure ppp on the freebsd server</span></h5>
<p>Edit /etc/ppp/ppp.conf and set the following target only:</p>
<pre>  pptp:
    set ifaddr 192.168.1.1 192.168.1.56-192.168.1.74 255.255.255.255
   set dns 192.168.0.1
    set nbns 192.168.0.1
   disable pap
   disable utmp
   disable passwdauth
   #enable chap     # MPPE Requirest chap81/MSChapV2
   enable MSChapV2
   enable mppe      # Enable Encrptions
   set log Phase Chat LCP IPCP CCP tun command  # Debugging
   set timeout 0   # Don't drop the connection</pre>
<pre>   #
   # Force 128 bit encryption with a key change every packet
   # MacOSX only works with stateless connections and the are more
   # secure anyway - just less efficient.
   set mppe 128 stateless</pre>
<pre>   # Disable compression - freebsd clients try to use it but it breaks mppe
   disable deflate pred1
   deny deflate pred1
   set server /var/run/pptp_ppp_%d "" 0700
   accept dns              # Enable clients to request dns details
   disable ipv6cp          # Disable ipv6
   enable proxy            # Enable proxying addresses on the local net for clients</pre>
<p>Now modify/create /etc/ppp/ppp.secret and put in it:</p>
<pre> someuser  userpassword  192.168.1.75</pre>
<p>Now &#8216;someuser&#8217; can log in with the password &#8216;userpassword&#8217; and will get an IP address of 192.168.1.75. If you don&#8217;t want to specify the ip, just leave the 3rd parameter off that line of the file.</p>
<p><a name="Setup_Clients"></a></p>
<h5><span class="mw-headline">Setup Clients</span></h5>
<p>This section details how to setup various clients</p>
<p><a name="Windows_XP"></a></p>
<h4><span class="mw-headline">Windows XP</span></h4>
<pre> - Create a new VPN connection
 - Specify host
 - Specify Usename  / password
 - Hit connect</pre>
<p><a name="FreeBSD"></a></p>
<h4><span class="mw-headline">FreeBSD</span></h4>
<p>Freebsd works with MPPE out the box. Simply setup the following in /etc/ppp.conf</p>
<pre> MYVPN:
   set authname someuser
   set authkey  userpassword
   disable pred1
   enable proxy
   disable ipv6cp
   set timeout 0
   add default HISADDR</pre>
<p>Install pptpclient</p>
<pre>   cd /usr/ports/net/pptpclient
   make install</pre>
<p>Now run it with: pptp serverip MYVPN\\ ie:</p>
<pre>  pptp  130.220.37.2 MYVPN</pre>
<p><a name="Mac_OsX"></a></p>
<h4><span class="mw-headline">Mac OsX</span></h4>
<p>Simply configure the GUI tool.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.clearchain.com/blog/posts/freebsd-vpn/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>

