mirror of
https://github.com/Nyr/openvpn-install.git
synced 2024-12-01 01:16:05 +03:00
Start stunnel on startup
This commit is contained in:
parent
c5ad0c95e5
commit
fd6ba7bd36
@ -287,6 +287,11 @@ accept = 0.0.0.0:$PORT
|
|||||||
connect = 127.0.0.1:1194
|
connect = 127.0.0.1:1194
|
||||||
cert=/etc/openvpn/server.crt
|
cert=/etc/openvpn/server.crt
|
||||||
key=/etc/openvpn/server.key" > /etc/stunnel/stunnel.conf
|
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
|
else
|
||||||
echo "port $PORT" > /etc/openvpn/server.conf
|
echo "port $PORT" > /etc/openvpn/server.conf
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user