An IKEv2 VPN for Apple devices in a Docker container
1.4K
https://github.com/notthebee/ikev2
A Docker-ized version of jawj/IKEV2-setup, based on cschlosser/ikev2-docker
This container will set up an IKEv2 VPN server using StrongSwan with a Let's Encrypt certificate and the CNSA/RFC 6379 Suite B cipher.
It will also generate a macOS/iOS .mobileconfig file with on-demand connection enabled by default.
If you're behind a NAT (e.g. a home router), you will need to forward ports 80/tcp, 4500/udp and 500/udp
version: '3'
services:
ikev2-vpn:
build: .
container_name: ikev2
image: notthebee/ikev2
ports:
- 4500:4500/udp
- 500:500/udp
- 80:80/tcp
# Port 80 is only needed during the first run for
# Let's Encrypt certs, feel free to remove it afterwards
privileged: yes
volumes:
- /docker-persistent-data/ikev2/config:/config
- /docker-persistent-data/ikev2/letsencrypt:/etc/letsencrypt
environment:
- DNS_SERVERS="1.1.1.1, 1.0.0.1" # optional
- VPNHOST=vpn.example.com
- [email protected]
- VPNUSERNAME=example
- VPNPASSWORD=example
# Pick one of the following if you want the VPN
# to connect automatically on certain WiFi networks
- INCLUDE_SSIDS="SSID1, SSID2"
# or to connect on all WiFi networks except for these
- EXCLUDE_SSIDS="SSID1, SSID2"
# ...or nothing at all
All credits go to jawj and cschlosser
Content type
Image
Digest
Size
94.1 MB
Last updated
over 4 years ago
docker pull notthebee/ikev2