Setting up VPN on server for use with iPhone. How to

opensusevpn

I have an Opensuse 11.1 virtual server with plesk configuration software. I want to set up vpn on the server, so that i can connect to it from my iPhone (running iOS 4, no jailbreak). I want to secure both WLAN hotspot, and Edge/3G provider traffic.

Plesk offers a VPN module, but it seems to be openvpn (thus openssl with tun/tap) that does not seem to be supported by iphone os.

The iPhone offers three vpn configurations: L2TP, PPTP, IPSec. So, setting-up any of those on the server would be ok.

How to set-up my server for this?

Many thanks for your suggestions and comments.

Best Answer

I'm using PPTP with my iPhone with a pretty simple configuration, very close to the basic. Below you can find a sample of my configs (i'm running debian so paths can be different on opensuse):

/etc/pptpd.conf

ppp /usr/sbin/pppd
option  /etc/ppp/pptpd-options
localip 192.168.1.1
remoteip    192.168.1.201-254
listen  xxx.xxx.xxx.xxx

/etc/ppp/pptpd-options

name MyVPN
domain MyDomain
refuse-pap
refuse-chap
refuse-mschap
require-mschap-v2
require-mppe-128
nodefaultroute
lock
nobsdcomp 

/etc/ppp/chap-secrets

"username"      MyVPN   password    "192.168.1.201"
Related Topic