mirror of
https://github.com/Nyr/openvpn-install.git
synced 2024-11-27 23:46:07 +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
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user