https://hub.docker.com/r/gaomd/ikev2-vpn-server/
-
clone this repo
-
run the following cmd to start the service:
docker run -d --name ikev2-vpn-server --privileged -p 500:500/udp -p 4500:4500/udp gaomd/ikev2-vpn-server:0.3.0Or, just run
./start.sh -
run the following cmd to generate
.mobileconfigfile used by iOS or MacOS to connect:docker run -i -t --rm --volumes-from ikev2-vpn-server -e "HOST=vpn1.example.com" gaomd/ikev2-vpn-server:0.3.0 generate-mobileconfig > ikev2-vpn.mobileconfigNote: change the
vpn1.example.comto your domain or just use ip address -
download the generated
.mobileconfigfile, install them in iOS or MacOS to connect the vpn.You may need to disable the
on Demond Connectionoption in VPN settings, or it will be always connected.