strongswan
StrongSwan as a Docker container. IPSec VPN.
3.1K
Latest image based on alpine, please use andrey0001/strongswan:alpine for it.
Old image based on centos continue work.
On alpine image path of config inside container changed.
Just build it or pull it from andrey0001/strongswan and run it something like this:
docker run -t -d --privileged \
-e VPN_USER=user \
-e VPN_PASS=password \
-e VPN_PSK=secretkey \
-e VPN_SUBNET=192.168.14.0/24 \
--publish 4500:4500/udp \
--publish 500:500/udp \
--hostname strongswan \
--name strongswan andrey0001/strongswan:centos
You could add additional users to the file /etc/strongswan/ipsec.secrets , then reload secrets by:
strongswan rereadsecrets
inside the container.
Also, you could use volume (bind mount a volume) for configuration files of strongswan (to store it on host):
-v /etc/strongswan:/etc/strongswan
and reread secrets from host:
docker exec -it strongswan /usr/sbin/strongswan rereadsecrets
and reread configuration
docker exec -it strongswan /usr/sbin/strongswan update
Content type
Image
Digest
sha256:2fe2accc8…
Size
8.7 MB
Last updated
5 months ago
docker pull andrey0001/strongswan:alpine