<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel> 

	<title>Comments on: Debian VPN server for iPhone to connect to?</title>
	<link>http://ask.metafilter.com/69636/Debian-VPN-server-for-iPhone-to-connect-to/</link>
	<description>Comments on Ask MetaFilter post Debian VPN server for iPhone to connect to?</description>
	<pubDate>Sun, 19 Aug 2007 00:48:57 -0800</pubDate>
	<lastBuildDate>Sun, 19 Aug 2007 00:48:57 -0800</lastBuildDate>
	<language>en-us</language>
	<docs>http://blogs.law.harvard.edu/tech/rss</docs>
	<ttl>60</ttl>

	<item>
		<title>Question: Debian VPN server for iPhone to connect to?</title>
		<link>http://ask.metafilter.com/69636/Debian-VPN-server-for-iPhone-to-connect-to</link>	
		<description>Best open source VPN (server-side) software for an iPhone user? &lt;br /&gt;&lt;br /&gt; What&apos;s the best way to set up VPN on my Debian server so I can use it from my iPhone? Total VPN newbie here, although I&apos;m experienced with using ssh tunnels. Since iPhone lacks ssh, I guess VPN is my only option for security, right?</description>
		<guid isPermaLink="false">post:ask.metafilter.com,2007:site.69636</guid>
		<pubDate>Sun, 19 Aug 2007 00:42:00 -0800</pubDate>
		<dc:creator>evariste</dc:creator>
		
			<category>vpn</category>
		
			<category>iphone</category>
		
			<category>debian</category>
		
	</item> <item>
		<title>By: Blazecock Pileon</title>
		<link>http://ask.metafilter.com/69636/Debian-VPN-server-for-iPhone-to-connect-to#1040113</link>	
		<description>There are several Google results for &quot;&lt;a href=&quot;http://www.google.com/search?hl=en&amp;q=iphone+ssh&amp;btnG=Google+Search&quot;&gt;iphone ssh&lt;/a&gt;&quot; &#8212; look for &quot;dropbear&quot; instructions.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.69636-1040113</guid>
		<pubDate>Sun, 19 Aug 2007 00:48:57 -0800</pubDate>
		<dc:creator>Blazecock Pileon</dc:creator>
	</item><item>
		<title>By: Malor</title>
		<link>http://ask.metafilter.com/69636/Debian-VPN-server-for-iPhone-to-connect-to#1040173</link>	
		<description>Do you really need a VPN, or just remote mail access?</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.69636-1040173</guid>
		<pubDate>Sun, 19 Aug 2007 05:31:42 -0800</pubDate>
		<dc:creator>Malor</dc:creator>
	</item><item>
		<title>By: schwa</title>
		<link>http://ask.metafilter.com/69636/Debian-VPN-server-for-iPhone-to-connect-to#1040226</link>	
		<description>The iPhone has built-in VPN support (see Settings/General/Network/VPN). It seems to support L2TP and PPTP.&lt;br&gt;
&lt;br&gt;
Googling for Debian &amp;amp; PPTP produces a bunch of hits, including hits for PPTP server howtos.&lt;br&gt;
&lt;br&gt;
Installing Dropbear on your iPhone is quite involved, and may not help you very much once you do. I&apos;d definitely try getting the built-in VPN working first.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.69636-1040226</guid>
		<pubDate>Sun, 19 Aug 2007 07:49:20 -0800</pubDate>
		<dc:creator>schwa</dc:creator>
	</item><item>
		<title>By: toxic</title>
		<link>http://ask.metafilter.com/69636/Debian-VPN-server-for-iPhone-to-connect-to#1040360</link>	
		<description>I&apos;ve used the &lt;a href=&quot;http://poptop.sourceforge.net/&quot;&gt;PoPToP&lt;/a&gt; daemon on various linux distributions for years to provide the server end of various PPTP connections.  It works fairly well, is stable, and most people consider it to be sufficiently secure (128bit MPPE).&lt;br&gt;
&lt;br&gt;
&apos;apt-get install pptpd&apos;  will install it for you on Sarge and Etch, then just follow &lt;a href=&quot;http://poptop.sourceforge.net/dox/debian-howto.phtml&quot;&gt;the directions&lt;/a&gt;.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.69636-1040360</guid>
		<pubDate>Sun, 19 Aug 2007 11:34:31 -0800</pubDate>
		<dc:creator>toxic</dc:creator>
	</item><item>
		<title>By: evariste</title>
		<link>http://ask.metafilter.com/69636/Debian-VPN-server-for-iPhone-to-connect-to#1040387</link>	
		<description>toxic: I&apos;m trying to follow that, but I don&apos;t know what to put in localip and remoteip in the pptpd.conf file. Can I just make something up, or do these have to be real internal network IPs that aren&apos;t being used for anything? Because I can&apos;t even tell what my internal network IP is. ifconfig only tells me my external IP address.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.69636-1040387</guid>
		<pubDate>Sun, 19 Aug 2007 12:53:41 -0800</pubDate>
		<dc:creator>evariste</dc:creator>
	</item><item>
		<title>By: evariste</title>
		<link>http://ask.metafilter.com/69636/Debian-VPN-server-for-iPhone-to-connect-to#1040402</link>	
		<description>Malor: I want to encrypt all my traffic, same thing I do with SSH tunnels. So, web browsing and email.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.69636-1040402</guid>
		<pubDate>Sun, 19 Aug 2007 13:22:29 -0800</pubDate>
		<dc:creator>evariste</dc:creator>
	</item><item>
		<title>By: toxic</title>
		<link>http://ask.metafilter.com/69636/Debian-VPN-server-for-iPhone-to-connect-to#1040428</link>	
		<description>localip and remoteip are the IP addresses used on each end of the encapsulated PPP connection, so you should use otherwise empty IP addresses from one of the reserved non-routable network blocks.  When the PPTP tunnel is up, your server will have a network interface called ppp0, that will have the IP address specified in localip, and your iPhone will be assigned one of the ones in remoteip.&lt;br&gt;
&lt;br&gt;
something like:&lt;br&gt;
localip 192.168.8.1&lt;br&gt;
remoteip 192.168.8.2-254&lt;br&gt;
&lt;br&gt;
should work for your scenario as described (assuming you&apos;re not using 192.168.8.* anywhere else).  &lt;br&gt;
&lt;br&gt;
At the most basic level, you could bring up such a tunnel, and then connect to your Debian boxes daemons using the 192.168.8.1 address (just set your iPhone&apos;s mail server to that address, for instance).  But, you&apos;re going to need to set up IP masquerading and forwarding on your server if you want the phone to be able to browse the internet (or reach any hosts other than your server) through the PPTP tunnel.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.69636-1040428</guid>
		<pubDate>Sun, 19 Aug 2007 13:57:18 -0800</pubDate>
		<dc:creator>toxic</dc:creator>
	</item><item>
		<title>By: evariste</title>
		<link>http://ask.metafilter.com/69636/Debian-VPN-server-for-iPhone-to-connect-to#1040443</link>	
		<description>Yay! I got a VPN connection up. I can&apos;t visit any websites or check email or accomplish anything else useful yet, but the iPhone claims it connected, and the server side shows it working as well.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.69636-1040443</guid>
		<pubDate>Sun, 19 Aug 2007 14:12:33 -0800</pubDate>
		<dc:creator>evariste</dc:creator>
	</item><item>
		<title>By: toxic</title>
		<link>http://ask.metafilter.com/69636/Debian-VPN-server-for-iPhone-to-connect-to#1040451</link>	
		<description>&lt;em&gt;I can&apos;t visit any websites or check email or accomplish anything else useful yet&lt;/em&gt;&lt;br&gt;
&lt;br&gt;
/sbin/iptables -A POSTROUTING -s 192.168.8.0/255.255.255.0 -o eth0 -j MASQUERADE&lt;br&gt;
echo 1 &amp;gt; /proc/sys/net/ipv4/ip_forward&lt;br&gt;
&lt;br&gt;
(replace eth0 with whatever the name of your internet-connected network interface is)</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.69636-1040451</guid>
		<pubDate>Sun, 19 Aug 2007 14:26:05 -0800</pubDate>
		<dc:creator>toxic</dc:creator>
	</item><item>
		<title>By: evariste</title>
		<link>http://ask.metafilter.com/69636/Debian-VPN-server-for-iPhone-to-connect-to#1040453</link>	
		<description>Output from the iptables command:&lt;br&gt;
iptables: No chain/target/match by that name&lt;br&gt;
&lt;br&gt;
The other thing did work:&lt;br&gt;
cat /proc/sys/net/ipv4/ip_forward&lt;br&gt;
1</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.69636-1040453</guid>
		<pubDate>Sun, 19 Aug 2007 14:28:32 -0800</pubDate>
		<dc:creator>evariste</dc:creator>
	</item><item>
		<title>By: evariste</title>
		<link>http://ask.metafilter.com/69636/Debian-VPN-server-for-iPhone-to-connect-to#1040454</link>	
		<description>My iptables is empty, by the way:&lt;br&gt;
&lt;br&gt;
iptables -L&lt;br&gt;
Chain INPUT (policy ACCEPT)&lt;br&gt;
target     prot opt source               destination         &lt;br&gt;
&lt;br&gt;
Chain FORWARD (policy ACCEPT)&lt;br&gt;
target     prot opt source               destination         &lt;br&gt;
&lt;br&gt;
Chain OUTPUT (policy ACCEPT)&lt;br&gt;
target     prot opt source               destination</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.69636-1040454</guid>
		<pubDate>Sun, 19 Aug 2007 14:30:10 -0800</pubDate>
		<dc:creator>evariste</dc:creator>
	</item><item>
		<title>By: toxic</title>
		<link>http://ask.metafilter.com/69636/Debian-VPN-server-for-iPhone-to-connect-to#1040457</link>	
		<description>Whoops.&lt;br&gt;
&lt;br&gt;
add &apos;-t nat&apos; before the -A in the iptables command.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.69636-1040457</guid>
		<pubDate>Sun, 19 Aug 2007 14:30:51 -0800</pubDate>
		<dc:creator>toxic</dc:creator>
	</item><item>
		<title>By: evariste</title>
		<link>http://ask.metafilter.com/69636/Debian-VPN-server-for-iPhone-to-connect-to#1040462</link>	
		<description>Incredible! It works! I can see any website I care to try. So my traffic is encrypted &apos;twixt iPhone and server now?&lt;br&gt;
&lt;br&gt;
Here&apos;s my customary ssh tunnel setup:&lt;br&gt;
&lt;br&gt;
ssh -N -p 22 -c 3des user@host -L 8000/localhost/3128 -L 8001/pop.mailhost.com/110 -L 8002/smtp.mailhost.com/25&lt;br&gt;
&lt;br&gt;
And then Mail is configured to connect to POP at localhost:8001 and SMTP at localhost:25. How can I achieve something similar with the iPhone? It picked up Mail&apos;s setting, which of course doesn&apos;t work since no ssh tunnel is running on the phone. Should I just switch to using VPN on my Macbook, too, and quit it with the tunnels?</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.69636-1040462</guid>
		<pubDate>Sun, 19 Aug 2007 14:40:07 -0800</pubDate>
		<dc:creator>evariste</dc:creator>
	</item><item>
		<title>By: evariste</title>
		<link>http://ask.metafilter.com/69636/Debian-VPN-server-for-iPhone-to-connect-to#1040483</link>	
		<description>Mail works fine.&lt;br&gt;
&lt;br&gt;
Thanks so much, toxic!</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.69636-1040483</guid>
		<pubDate>Sun, 19 Aug 2007 15:18:50 -0800</pubDate>
		<dc:creator>evariste</dc:creator>
	</item><item>
		<title>By: evariste</title>
		<link>http://ask.metafilter.com/69636/Debian-VPN-server-for-iPhone-to-connect-to#1264780</link>	
		<description>One reboot later, all the settings toxic gave me vanished, of course. To make them stick, I put them in /etc/rc.local. I&apos;m not sure if there&apos;s a better way to do that, but this works so I&apos;m happy.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.69636-1264780</guid>
		<pubDate>Fri, 07 Mar 2008 14:07:37 -0800</pubDate>
		<dc:creator>evariste</dc:creator>
	</item>
	</channel>
</rss>
