I'm having trouble finding concrete, up-to-date information for how to set up strongswan or openswan to be used by the iphone's VPN client. My server is behind a budget linksys NAT router.
I found this, but it mentions a whole bunch of .pem files with no reference for how to create them. Unfortunately, the "fine" manuals for both packages were quite inscrutable and unfriendly to a novice. I've set up OpenVPN before and managed to get serviceable results very quickly, but after a day and a half of reading out of date docs, I barely even know where to start.
Any help would be greatly appreciated!
Does this help?
Regards, Willem M. Poort
StrongSwan mini Howto Debian 5
Create your CA file:
If you prefer the CA certificates to be in binary DER format then the following command achieves this transformation:
Edit
/etc/ssl/openssl.conf
(/usr/lib/ssl/openssl.cnf
is a symlink):Change the parameters to fit your strongswan environment.
Create missing DIR and files:
Generate an user certificate:
Sign it for two years:
Usually a Windows-based VPN client needs its private key, its host or user certificate and the CA certificate. The most convenient way to load this information is to put everything into a PKCS#12 file:
Edit
/etc/ipsec.secrets
:Edit
/etc/ipsec.conf
:On the iPhone
To import the certificates on your iphone just email them to your self! When creating the ipsec vpn on you iphone you can select the certificate.
Mind you that you need to setup iptables if you want to NAT. (Look in to fwbuilder)