IKEv2 VPN server Docker image targeting ARMv6 for compatibility with early Raspberry Pi (1, Zero), with .mobileconfig generation for easy use with iOS & macOS.
Later Raspberry Pis with later (ARMv7+) instruction sets can probably use the standard image.
Forked from https://github.com/iceton/docker-ikev2-vpn-server
docker run --privileged -d --name ikev2-vpn-server --restart=always -p 500:500/udp -p 4500:4500/udp icet/ikev2-vpn-server-rpi
docker run --privileged -i -t --rm --volumes-from ikev2-vpn-server -e "HOST=vpn1.example.com" icet/ikev2-vpn-server-rpi generate-mobileconfig > ikev2-vpn.mobileconfig
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).
Transfer the generated ikev2-vpn.mobileconfig
file to your local computer via SSH tunnel (scp
) or any other secure methods.
-
iOS 9 or later: AirDrop the
.mobileconfig
file to your iOS 9 device, finish the Install Profile screen; -
macOS 10.11 El Capitan or later: Double click the
.mobileconfig
file to start the profile installation wizard.
Upon container creation, a shared secret was generated for authentication purpose, no certificate, username, or password was ever used, simple life!
Based on https://github.com/gaomd/docker-ikev2-vpn-server, which is copyright (c) 2016 Mengdi Gao and licensed under the MIT License.
* IKEv2 protocol requires iOS 8 or later, macOS 10.11 El Capitan or later.
* 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 and finish the Install Profile screen.