1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00
dockerfiles/strongswan/Dockerfile

26 lines
543 B
Docker
Raw Normal View History

2016-06-27 21:16:42 +02:00
#
# Dockerfile for ipsec
#
FROM alpine
2017-05-08 01:05:07 +02:00
MAINTAINER kev <noreply@easypi.pro>
2016-06-27 21:16:42 +02:00
RUN set -xe \
&& apk add --no-cache iptables openssl strongswan util-linux \
&& ln -sf /etc/ipsec.d/ipsec.conf /etc/ipsec.conf \
&& ln -sf /etc/ipsec.d/ipsec.secrets /etc/ipsec.secrets
2016-06-30 17:46:01 +02:00
COPY init.sh /init.sh
COPY docker-entrypoint.sh /entrypoint.sh
2016-06-27 21:16:42 +02:00
VOLUME /etc/ipsec.d /etc/strongswan.d
2016-06-30 17:46:01 +02:00
ENV VPN_DEVICE=eth0
ENV VPN_NETWORK=10.20.30.0/24
2016-06-30 18:09:28 +02:00
ENV LAN_NETWORK=192.168.0.0/16
2016-06-27 22:39:35 +02:00
ENV VPN_DNS=8.8.8.8,8.8.4.4
2016-06-27 21:16:42 +02:00
EXPOSE 500/udp 4500/udp
2016-06-30 17:46:01 +02:00
ENTRYPOINT ["/entrypoint.sh"]