2019-11-23 13:54:54 +09:00
|
|
|
# Dockerfile for L2TP/IPSec VPN Server based alpine
|
2019-06-09 14:29:29 +09:00
|
|
|
# Copyright (C) 2018 - 2019 Teddysun <i@teddysun.com>
|
2018-06-30 15:54:13 +09:00
|
|
|
|
2019-11-23 13:54:54 +09:00
|
|
|
FROM alpine:edge
|
2018-07-02 20:31:28 +09:00
|
|
|
LABEL maintainer="Teddysun <i@teddysun.com>"
|
2018-06-30 15:54:13 +09:00
|
|
|
|
2019-11-23 13:54:54 +09:00
|
|
|
RUN apk add -U openssl libreswan xl2tpd ppp-l2tp \
|
|
|
|
&& ipsec initnss \
|
|
|
|
&& rm -rf /var/cache/apk/*
|
2018-06-30 15:54:13 +09:00
|
|
|
|
2019-11-23 13:54:54 +09:00
|
|
|
COPY ipsec /etc/init.d/ipsec
|
|
|
|
COPY l2tp.sh /usr/bin/l2tp
|
|
|
|
COPY l2tpctl.sh /usr/bin/l2tpctl
|
2018-06-30 15:54:13 +09:00
|
|
|
RUN chmod 755 /etc/init.d/ipsec /usr/bin/l2tp /usr/bin/l2tpctl
|
|
|
|
|
|
|
|
VOLUME /lib/modules
|
|
|
|
|
|
|
|
EXPOSE 500/udp 4500/udp
|
|
|
|
|
2019-11-23 13:54:54 +09:00
|
|
|
CMD [ "l2tp" ]
|