Natural reading read me, more tech details

This commit is contained in:
Mengdi Gao 2016-04-05 23:59:51 +08:00
parent 9e8a818ea7
commit 014d1b0e19

View file

@ -2,22 +2,35 @@
Recipe to build [`gaomd/ikev2-vpn-server`](https://registry.hub.docker.com/u/gaomd/ikev2-vpn-server/) Docker image.
## 1. Start the IKEv2 VPN Server
## Usage
### 1. Start the IKEv2 VPN Server
docker run -d --name ikev2-vpn-server --privileged -p 500:500/udp -p 4500:4500/udp gaomd/ikev2-vpn-server:0.2.2
## 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.*
### 2. Generate the .mobileconfig (for iOS / OS X)
docker run -i -t --rm --volumes-from ikev2-vpn-server -e "HOST=vpn1.example.com" gaomd/ikev2-vpn-server:0.2.2 generate-mobileconfig > ikev2-vpn.mobileconfig
This command generates an `ikev2-vpn.mobileconfig` file, transfer it to your local computer via SSH tunnel (`scp`) or any other secure methods.
*Be sure to replace `vpn1.example.com` with your own domain name and resolve it to you server's IP address. Simply put an IP address is supported as well (and enjoy an even faster handshake speed).*
## 3. Install .mobileconfig
Transfer the generated `ikev2-vpn.mobileconfig` file to your local computer via SSH tunnel (`scp`) or any other secure methods.
### 3. Install the .mobileconfig (for iOS / OS X)
- **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 then finish the **Install Profile** screen;
- **OS X 10.11 El Capitan or later**: Double click the `.mobileconfig` file to start the *profile installation* wizard.
*IKEv2 protocol requires iOS 8 or later, Mac OS X 10.11 El Capitan is supported as well.*
## Technical Details
Upon container creation, a single *shared secrets* was generated for authentication purpose, zero *certificate*, zero *username+password combination*, simple life.
## License
Copyright (c) 2016 Mengdi Gao, This software is licensed under the [MIT License](LICENSE).
---
\* *IKEv2 protocol requires iOS 8 or later, Mac OS X 10.11 El Capitan is supported as well.*
\* Install for **iOS 8 or later** or when your AirDrop fails: Send an E-mail to your iOS device with the `.mobileconfig` file as attachment, then tap the attachment to bring up then finish the **Install Profile** screen;