<?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>Shared Know How &#187; iphone</title>
	<atom:link href="http://www.sharedknowhow.com/category/iphone/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sharedknowhow.com</link>
	<description>Howto: fix, find, use, make &#38; do it guide</description>
	<lastBuildDate>Fri, 16 Apr 2010 09:41:46 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Linux PPTP VPN server install for use with Iphone</title>
		<link>http://www.sharedknowhow.com/2008/09/linux-vpn-server-installation-for-use-with-iphone/</link>
		<comments>http://www.sharedknowhow.com/2008/09/linux-vpn-server-installation-for-use-with-iphone/#comments</comments>
		<pubDate>Sun, 28 Sep 2008 15:19:00 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[iphone]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[nat]]></category>
		<category><![CDATA[poptop]]></category>
		<category><![CDATA[pptpd]]></category>
		<category><![CDATA[vpn]]></category>

		<guid isPermaLink="false">http://www.sharedknowhow.com/?p=30</guid>
		<description><![CDATA[I was looking into getting an vpn connection from my iphone to my server because I wouldn't want to send my email passwords and webpasswords clear over any public WIFI. Setting up an open source vpn connection from the Iphone is fairly simple but there is not much choiche of software. To my knowledge OpenVPN [...]]]></description>
			<content:encoded><![CDATA[<p>I was looking into getting an vpn connection from my iphone to my server because I wouldn't want to send my email passwords and webpasswords clear over any public WIFI. Setting up an open source vpn connection from the Iphone is fairly simple but there is not much choiche of software. To my knowledge OpenVPN and Openswan are not supported so my choiche came down to:  <a href="http://www.poptop.org/" target="_blank">Poptop</a> which is probably not the most secure solution because it's uses the Microsoft protocol which has a few <a href="http://poptop.sourceforge.net/dox/protocol-security.phtml" target="_blank">flaws</a> but I figured it would be much safer then nothing and if there is an evil WIFI I would guess they will just go for the easy targets.</p>
<p>My install is a CentOS 5.2 installation but it should work under any fairly recent Linux distribution</p>
<p>Setting Poptop VPN for Iphone is done in just four steps:</p>
<p><span id="more-30"></span></p>
<p><strong>1 Installing Poptop on your linux server</strong></p>
<p>Some distributions already have pptpd, if not you can install it from source with the following steps.</p>
<p>Download the latest pptpd from <a href="http://sourceforge.net/project/showfiles.php?group_id=44827" target="_blank">Sourceforge</a>.</p>
<p>Unpack pptpd, configure and run make install:</p>
<pre class="text">tar -zxvf pptpd-1.3.4.tar.gz
cd pptpd-1.3.4
./configure
make
make install</pre>
<p><strong>2 Configuring pptpd (poptop)</strong></p>
<p>Now we need to configure the different files used by pptpd to setup up for the vpn:</p>
<p>/etc/pptpd.conf</p>
<pre class="text">option /etc/ppp/options.pptpd
localip 192.168.8.1
remoteip 192.168.8.234-238</pre>
<p>/etc/ppp/options.pptpd</p>
<pre class="text"> name pptpd
refuse-pap
refuse-chap
refuse-mschap
require-mschap-v2
require-mppe-128
&nbsp;
#opendns dns services, you can replace this by your dns provider
ms-dns 208.67.222.222
ms-dns 208.67.220.220
lock
nobsdcomp
nologfd</pre>
<p>/etc/ppp/chap-secrets</p>
<pre class="text"># Secrets for authentication using CHAP
#set one or more username and passwords to use with the pptp VPN
# username    pptpd   password         IP addresses
username       pptpd   password        *</pre>
<p><strong>3 Setup the server for Masquerading/NAT</strong></p>
<p>Because we want to share the internet connection of the server with the Iphone we need to do NAT. The following couple of lines enable this. I am assuming eth0 is the network interface conneted to the internet. Just first try this out by copy and pasting this into bash but to keep it working even after a reboot you can copy the following lines into /etc/rc.local</p>
<pre class="text">echo 1 &amp;gt; /proc/sys/net/ipv4/ip_forward
/sbin/iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
/sbin/iptables -A FORWARD -i eth0 -o ppp0 -m state --state RELATED,ESTABLISHED -j ACCEPT
/sbin/iptables -A FORWARD -i ppp0 -o eth0 -j ACCEPT
&nbsp;
#and start pptpd
/usr/local/sbin/pptpd</pre>
<p><strong>4 Configuring the Iphone</strong></p>
<p>On your iphone click settings &gt; network &gt;VPN &gt; Add VPN Configuration</p>
<p>Click PPTP and fill in a description<br />
the hostname of the server<br />
account = the username filled in in /etc/ppp/chap-secrets<br />
RSA SecurID: OFF<br />
password, as filled in in /etc/ppp/chap-secrets<br />
Encryption Level = Auto<br />
Send All Trafic: ON</p>
<p>Now press save and when Turning VPN to ON it should connect to the server.</p>
<p>If you have any problems don't hesistate to ask in the comments.</p>
<p>searching for <a href="http://www.netfirms.ca" target="_blank">web site hosting</a>?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sharedknowhow.com/2008/09/linux-vpn-server-installation-for-use-with-iphone/feed/</wfw:commentRss>
		<slash:comments>29</slash:comments>
		</item>
	</channel>
</rss>
