mirror of
https://github.com/pivpn/pivpn.git
synced 2024-12-19 03:10:16 +00:00
commit
2fa10429ee
3 changed files with 6 additions and 6 deletions
|
@ -16,7 +16,7 @@
|
||||||
(yes/no / which issues?)
|
(yes/no / which issues?)
|
||||||
|
|
||||||
|
|
||||||
## Console output of `curl install.pivpn.io | bash`
|
## Console output of `curl -L install.pivpn.io | bash`
|
||||||
```
|
```
|
||||||
Output Here
|
Output Here
|
||||||
```
|
```
|
||||||
|
|
|
@ -121,11 +121,11 @@ function keyPASS() {
|
||||||
expect eof
|
expect eof
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
#Convert key to des3
|
#Convert key to aes128
|
||||||
KEY_FILE="pki/private/${NAME}${KEY}"
|
KEY_FILE="pki/private/${NAME}${KEY}"
|
||||||
expect << EOF
|
expect << EOF
|
||||||
set timeout -1
|
set timeout -1
|
||||||
spawn openssl rsa -in ${KEY_FILE} -des3 -out ${KEY_FILE}
|
spawn openssl rsa -in ${KEY_FILE} -aes128 -out ${KEY_FILE}
|
||||||
expect "Enter pass phrase" { send "${PASSWD}\r" }
|
expect "Enter pass phrase" { send "${PASSWD}\r" }
|
||||||
expect "Enter PEM pass phrase" { send "${PASSWD}\r" }
|
expect "Enter PEM pass phrase" { send "${PASSWD}\r" }
|
||||||
expect "Verifying - Enter PEM pass phrase" { send "${PASSWD}\r" }
|
expect "Verifying - Enter PEM pass phrase" { send "${PASSWD}\r" }
|
||||||
|
@ -141,8 +141,8 @@ if [ -z "${NAME}" ]; then
|
||||||
read -r NAME
|
read -r NAME
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "${NAME}" =~ [^a-zA-Z0-9] ]]; then
|
if [[ "${NAME}" =~ [^a-zA-Z0-9\-] ]]; then
|
||||||
echo "Name can only contain alphanumeric characters."
|
echo "Name can only contain alphanumeric characters and dashes (-)."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ push "block-outside-dns"
|
||||||
# overriding but not wiping out the original default gateway.
|
# overriding but not wiping out the original default gateway.
|
||||||
push "redirect-gateway def1"
|
push "redirect-gateway def1"
|
||||||
client-to-client
|
client-to-client
|
||||||
keepalive 10 120
|
keepalive 1800 3600
|
||||||
remote-cert-tls client
|
remote-cert-tls client
|
||||||
tls-version-min 1.2
|
tls-version-min 1.2
|
||||||
tls-auth /etc/openvpn/easy-rsa/pki/ta.key 0
|
tls-auth /etc/openvpn/easy-rsa/pki/ta.key 0
|
||||||
|
|
Loading…
Reference in a new issue