Skip to content

cschlosser/ikev2-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Effortless IKEv2 VPN in Docker

Prerequisites

First step: Install docker on your system and open port 500 and 4500 for UDP traffic in your firewall.

Option 1

Second step: Run configuration with

docker run --rm --name=vpn-cfg -it -v /your/path/config:/config cschlosser/ikev2-vpn configure

Fill in the blanks and everything you need will be generated for you.

Third step: Run

docker run --rm --name=vpn -d -v /your/path/config:/config --privileged -p 500:500/udp -p 4500:4500/udp cschlosser/ikev2-vpn

To start the vpn

Option 2

Second step: Run

docker run --rm --name=vpn -it -v /your/path/config:/config --privileged -p 500:500/udp -p 4500:4500/udp cschlosser/ikev2-vpn

This will run the configuration the first time you're launching the container.

Client setup

Last step: See this Tutorial: Step 7 – Testing the VPN Connection on Windows, iOS, and macOS on how to configure your client.

NOTE: Your certificate is stored in /your/path/config/vpn-certs/ instead of ~/vpn-certs/.

About

Run a IKEv2 VPN in a Docker containern without any effort

Topics

Resources

License

Stars

Watchers

Forks

Languages