From 810f61b3abd5f46243699eb2abbef0b3f2976f7f Mon Sep 17 00:00:00 2001 From: Alojzij Blatnik Date: Tue, 24 Aug 2021 15:31:18 +0200 Subject: [PATCH 1/2] upd default client cert expiry, fix periodic warnings at client logs --- Dockerfile | 1 + bin/ovpn_getclient | 2 ++ 2 files changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index 4ece3147..cc575927 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,6 +15,7 @@ RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing/" >> /etc/apk/reposi ENV OPENVPN=/etc/openvpn ENV EASYRSA=/usr/share/easy-rsa \ EASYRSA_CRL_DAYS=3650 \ + EASYRSA_CERT_EXPIRE=3650 \ EASYRSA_PKI=$OPENVPN/pki VOLUME ["/etc/openvpn"] diff --git a/bin/ovpn_getclient b/bin/ovpn_getclient index 092aeea9..57877538 100755 --- a/bin/ovpn_getclient +++ b/bin/ovpn_getclient @@ -99,6 +99,8 @@ tls-auth ta.key 1 if [ "$OVPN_COMP_LZO" == "1" ]; then echo "comp-lzo" + else + echo "comp-lzo no" fi if [ -n "$OVPN_OTP_AUTH" ]; then From bde3b77225bfacebafe01d48e4b5ccf8520e35fa Mon Sep 17 00:00:00 2001 From: Alojzij Blatnik Date: Wed, 25 Aug 2021 15:08:51 +0200 Subject: [PATCH 2/2] add ability for ovpn_after_run.sh - custom script after startup --- bin/ovpn_run | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/ovpn_run b/bin/ovpn_run index e93201bc..45bcd54f 100755 --- a/bin/ovpn_run +++ b/bin/ovpn_run @@ -101,5 +101,9 @@ if [ $? = 0 ]; then fi fi +if [ -f "$OPENVPN/ovpn_after_run.sh" ]; then + source "$OPENVPN/ovpn_after_run.sh" +fi + echo "Running 'openvpn ${ARGS[@]} ${USER_ARGS[@]}'" exec openvpn ${ARGS[@]} ${USER_ARGS[@]}