diff --git a/README.md b/README.md index 8f269c6..91e3b0e 100644 --- a/README.md +++ b/README.md @@ -6,12 +6,18 @@ Recipe to build [`gaomd/ikev2-vpn-server`](https://registry.hub.docker.com/u/gao docker run -d --name ikev2-vpn-server --privileged -p 500:500/udp -p 4500:4500/udp gaomd/ikev2-vpn-server -## 2. Generate a .mobileconfig file for iOS 8 +## 2. Generate a .mobileconfig file for iOS / OS X *Replace `vpn1.example.com` with your own domain name and make sure it resolves to you server's IP address.* docker run -i -t --rm --volumes-from ikev2-vpn-server -e "HOST=vpn1.example.com" gaomd/ikev2-vpn-server generate-mobileconfig > ikev2-vpn.mobileconfig -This will generate an `ikev2-vpn.mobileconfig` file, transfer it to your local computer via SSH tunnel (`scp`) or any other secure methods, then E-mail it to your iOS 8 devices via E-mail attachment. +This command generates an `ikev2-vpn.mobileconfig` file, transfer it to your local computer via SSH tunnel (`scp`) or any other secure methods. -*IKEv2 protocol requires iOS 8 or later, Mac OS X 10.10 (Yosemite) is not supported yet.* +### 3. Install .mobileconfig + +- **iOS 9 or later**: AirDrop the `.mobileconfig` file to your iOS 9 device, finish the **Install Profile** screen; +- **iOS 8 or later**: Send an E-mail to your iOS device with the `.mobileconfig` file as attachment, then tap the attachment to bring up the **Install Profile** screen; +- **OS X 10.11 El Capitan or later**: Double click the `.mobileconfig` file to start the profile installation. + +*IKEv2 protocol requires iOS 8 or later, Mac OS X 10.11 El Capitan is supported as well.*