From fd6ba7bd36f72fd3df7f99000833dac6cf7cedcc Mon Sep 17 00:00:00 2001 From: Birkhoff <23278129+birkhoffcheng@users.noreply.github.com> Date: Wed, 11 Jul 2018 19:14:18 -0400 Subject: [PATCH] Start stunnel on startup --- openvpn-install.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/openvpn-install.sh b/openvpn-install.sh index 8a70d8d..88d26e2 100644 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -287,6 +287,11 @@ accept = 0.0.0.0:$PORT connect = 127.0.0.1:1194 cert=/etc/openvpn/server.crt key=/etc/openvpn/server.key" > /etc/stunnel/stunnel.conf + echo 'ENABLED=1 +FILES="/etc/stunnel/*.conf" +OPTIONS="" +PPP_RESTART=0 +RLIMITS=""' > /etc/default/stunnel4 else echo "port $PORT" > /etc/openvpn/server.conf fi