forked from https://github.com/christophschlosser/ikev2-docker
Install docker on your system and open port 500 and 4500 for UDP traffic in your firewall.
git clone https://github.com/wenzhuart/ikev2-docker
cd ikev2_docker
docker build -t ikev2_test .
docker run --rm --name=vpn-config -it -v $PWD/config:/config ikev2_test configure
then copy print-out as client cert locally
local command:
touch vpn.pem
echo "
<paste print-out content here>
" > vpn.pem
docker run --rm -d --privileged --name=vpn-ikev2 -v $PWD/config:/config -p 500:500/udp -p 4500:4500/udp ikev2_test
ikev2:
image: ikev2_test
privileged: true
ports:
- "500:500/udp"
- "4500:4500/udp"
volumes:
- "$PWD/config:/config"
restart: always
Note:
certificate is stored in $PWD/config/vpn-certs/