No description
Find a file
Andrew Davidson a6fda5a50d
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
removing test CI output
2023-03-07 12:41:17 -08:00
bin fixing bug that prevented adding two dns servers separated by a comma 2019-08-02 09:40:33 -04:00
etc Added IPv6 support (#20) 2016-07-31 23:47:35 +08:00
.woodpecker.yml Adding ci files 2023-03-06 22:55:59 -08:00
build.sh removing test CI output 2023-03-07 12:41:17 -08:00
Dockerfile removing pre-installed ipsec.secrets file during build. will be created on first run 2019-06-04 18:19:21 -04:00
LICENSE Update LICENSE 2019-05-10 12:18:34 -04:00
README.md fixing SAFE_SSID example, fixes #6 2019-06-30 13:46:53 -04:00

IKEv2 VPN Server on Docker

Recipe to build amdavidson/vpn-server Docker image.

Usage

1. Start the IKEv2 VPN Server

docker run -d \
--name vpn-server \
--restart=always \
--cap-add=NET_ADMIN \
-v vpn-server-etc:/etc \
-p 500:500/udp -p 4500:4500/udp \
-e "DNS=9.9.9.9" \
amdavidson/vpn-server:latest

2. Generate the .mobileconfig (for iOS / macOS)

docker run -it --rm \
--volumes-from vpn-server \
-e "HOST=vpn1.example.com" \
-e "SAFE_SSID=my home ssid" \
amdavidson/vpn-server:latest \
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.

Transfer the generated ikev2-vpn.mobileconfig file to your local computer via SSH tunnel (scp) or any other secure methods.

License

Copyright (c) 2019 Andrew Davidson

Copyright (c) 2016 Mengdi Gao

This software is licensed under the MIT License.