mirror of
https://github.com/Nyr/openvpn-install.git
synced 2024-11-23 21:46:08 +03:00
Allow auto-reconnect
This commit is contained in:
parent
8f881565b7
commit
d6ad2f0c0d
@ -400,13 +400,16 @@ remote $IP $PORT
|
|||||||
resolv-retry infinite
|
resolv-retry infinite
|
||||||
nobind
|
nobind
|
||||||
persist-key
|
persist-key
|
||||||
persist-tun
|
|
||||||
remote-cert-tls server
|
remote-cert-tls server
|
||||||
auth SHA512
|
auth SHA512
|
||||||
cipher AES-256-CBC
|
cipher AES-256-CBC
|
||||||
comp-lzo
|
comp-lzo
|
||||||
setenv opt block-outside-dns
|
setenv opt block-outside-dns
|
||||||
key-direction 1
|
key-direction 1
|
||||||
|
script-security 2
|
||||||
|
up /etc/openvpn/update-resolv-conf
|
||||||
|
down /etc/openvpn/update-resolv-conf
|
||||||
|
keepalive 30 60
|
||||||
verb 3" > /etc/openvpn/client-common.txt
|
verb 3" > /etc/openvpn/client-common.txt
|
||||||
# Generates the custom client.ovpn
|
# Generates the custom client.ovpn
|
||||||
newclient "$CLIENT"
|
newclient "$CLIENT"
|
||||||
@ -415,4 +418,4 @@ verb 3" > /etc/openvpn/client-common.txt
|
|||||||
echo ""
|
echo ""
|
||||||
echo "Your client configuration is available at" ~/"$CLIENT.ovpn"
|
echo "Your client configuration is available at" ~/"$CLIENT.ovpn"
|
||||||
echo "If you want to add more clients, you simply need to run this script again!"
|
echo "If you want to add more clients, you simply need to run this script again!"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user