
Tunnels
79
11.1.8.3. Setting up a Road Warrior VPN on an iOS (iPhone/iPad)
client
Apple have only recently introduced support for IKEv2 on iOS (since iOS version 8.1) and it is currently
somewhat incomplete with rough edges. There is not yet a way to configure an IKEv2 VPN using the device
UI. A profile containing all the connection details must be prepared elsewhere and downloaded/installed on
the client.
To set up a client VPN connection on an iOS device, perform the following steps
• The FireBrick connection should be configured as a Road Warrior connection, and client usernames and
passwords should be configured, as described earlier, using certificate authentication for the FireBrick and
EAP for the peers.
• A connection profile should be generated. A script is available to do this as http://www.firebrick.co.uk/tools/
make-profile which should be downloaded and run locally on a Unix or Linux system or on Windows with
Cygwin. There are several parameters, many of which can be left as default values. Mandatory arguments
are the PEM file for the CA trust certificate used by the server, the server IP address and the server and
client IKE identities. The client EAP identity (username) can also be specified - it defaults to the client
IKE identity. Names used to identify the VPN on the client settings pages can also be supplied. The client
IKE identity may be freely chosen - the Firebrick RoadWarrior server will accept any client ID, and it will
be displayed in the FireBrick IPsec status information and logging. Note that the server address should be
entered as an IP address rather than a domain name for reliable operation; iOS appears to get confused when
looking up a domain if it receives multiple IP addresses or IPv6 addresses. [Symptoms of this include being
unable to connect at all for varying periods of time, and connections dropping shortly after establishing,
while appearing to still be connected on the device.] An example of a make-profile command (where we
assume the FireBrick address is 192.168.42.42):
# Note that trailing backslash characters have been used below
# to split commands over multiple lines for readability.
./make-profile SERVER=192.168.42.42 \
LOCALID=MyiPhone CA=paradigm-ca.pem SERVERID=vpn.server42.paradigm.co.uk \
USERNAME=arthur PROFNAME="Server42 VPN Profile" VPNNAME=Paradigm iphone
Note that the SERVERID must be the same as used when making the server certificate, and the paradigm-
ca.pem file must be the CA certificate used to sign the server end-entity certificate.
• Once prepared the profile (iphone.mobileconfig) should be installed on the client. It can be sent as an email
attachment or downloaded from a webserver using safari. The client iOS should recognize the profile and
should prompt to confirm installation. At this point the user password is required; note that there is currently
no way to change it once the profile is installed - it is not prompted for when the connection is opened.
• The VPN should now be available for connection.
Unfortunately there is no logging or diagnostics available on the iOS device. If the connection fails to establish,
the FireBrick IPsec debug logging may be helpful.
11.1.8.4. Manual keying using Linux ipsec-tools
Setting up manual keying under Linux is possible using the ipsec-tools utility. Care should be taken if the Linux
system is running an IKE or IKEv2 daemon, as this may interfere with the manual kernel IPsec configuration
using ipsec-tools.
Consider a tunnel between a FireBrick and a Linux system with the following setup:
• FireBrick has IP address 192.168.1.1, Linux system has IP address 192.168.2.2
Содержание FB6402
Страница 1: ...FireBrick FB6402 User Manual FB6000 Versatile Network Appliance...
Страница 2: ......