Skip to content

Docker image for strongSwan IKEv2 VPN (PSK and certs)

License

Notifications You must be signed in to change notification settings

lumbird/pi-docker-strongswan

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

strongSwan IKEv2 VPN on Docker

Base docker image to run a strongSwan IKEv2 VPN (PSK and certs) server.

Server Setup

Gather necessary files

Prepare configuration file according to Quericy Eden*, then place the files in a folder like the following directory structure.

If you do not need to verify by certificate, you can ignore the three certificate directories.

.
├── ipsec.conf
│
├── ipsec.secrets
│
├── strongswan.conf
│
├── cacerts
│   └── ca.cert.pem
│
├── certs
│   ├── client.cert.pem
│   └── server.cert.pem
│
└── private
    ├── client.pem
    └── server.pem

Start Docker container

Running this particular Docker container typically requires running with elevated privileges --privileged. It will have permission to modify your Docker host's sysctl and iptables configuration.

Ensure the config folder is in your current directory ($PWD) and run:

docker build -t strongswan https://github.com/Zimong/docker-strongswan

docker run -d \
  --restart always \
  --privileged \
  -p 500:500/udp \
  -p 4500:4500/udp \
  -v $PWD:/etc/ipsec.d \
  --name=strongswan \
  strongswan

References

Useful resources:

About

Docker image for strongSwan IKEv2 VPN (PSK and certs)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 87.6%
  • Dockerfile 12.4%