1
0
mirror of https://github.com/Nyr/openvpn-install.git synced 2024-11-27 23:46:07 +03:00

Update openvpn-install.sh

This commit is contained in:
Birkhoff 2018-07-11 17:34:03 -04:00 committed by GitHub
parent 233c460466
commit c5ad0c95e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -70,11 +70,10 @@ if [[ -e /etc/openvpn/server.conf ]]; then
./easyrsa build-client-full $CLIENT nopass
# Generates the custom client.ovpn
cp /etc/stunnel/stunnel-client.conf $HOME/stunnel.conf
cp /etc/openvpn/server.crt $HOME/stunnel.crt
newclient "$CLIENT"
echo
echo "Client $CLIENT added, configuration is available at:" ~/"$CLIENT.ovpn"
echo "and ~/client.ssl. Install stunnel4 on client before you continue."
echo "and ~/stunnel.conf. Install stunnel4 on client before you continue."
exit
;;
2)
@ -448,10 +447,8 @@ session=300
stack=65536
sslVersion=TLSv1.2
setuid=root
setgid=root
CAfile = stunnel.crt" > /etc/stunnel/stunnel-client.conf
setgid=root" > /etc/stunnel/stunnel-client.conf
cp /etc/stunnel/stunnel-client.conf $HOME/stunnel.conf
cp /etc/openvpn/server.crt $HOME/stunnel.crt
fi
# Generates the custom client.ovpn
newclient "$CLIENT"
@ -460,7 +457,7 @@ CAfile = stunnel.crt" > /etc/stunnel/stunnel-client.conf
echo
echo "Your client configuration is available at: ~/$CLIENT.ovpn"
if [[ $SSL=1 ]]; then
echo "~/stunnel.crt and ~/stunnel.conf. Install stunnel4 on client before you continue."
echo "and ~/stunnel.conf. Install stunnel4 on client before you continue."
fi
echo "If you want to add more clients, you simply need to run this script again!"
fi