mirror of
https://github.com/namibia/openvpn-install.git
synced 2024-12-22 23:08:55 +00:00
Add AES GCM support
This commit is contained in:
parent
36af5ec100
commit
10a1d04f3b
@ -288,20 +288,32 @@ function installOpenVPN () {
|
|||||||
else
|
else
|
||||||
echo ""
|
echo ""
|
||||||
echo "Choose which cipher you want to use for the data channel:"
|
echo "Choose which cipher you want to use for the data channel:"
|
||||||
echo " 1) AES-128-CBC (recommended)"
|
echo " 1) AES-128-GCM (recommended)"
|
||||||
echo " 2) AES-192-CBC"
|
echo " 2) AES-192-GCM"
|
||||||
echo " 3) AES-256-CBC"
|
echo " 3) AES-256-GCM"
|
||||||
until [[ "$CIPHER_CHOICE" =~ ^[0-9]+$ ]] && [ "$CIPHER_CHOICE" -ge 1 ] && [ "$CIPHER_CHOICE" -le 3 ]; do
|
echo " 4) AES-128-CBC"
|
||||||
read -rp "Cipher [1-7]: " -e -i 1 CIPHER_CHOICE
|
echo " 5) AES-192-CBC"
|
||||||
|
echo " 6) AES-256-CBC"
|
||||||
|
until [[ "$CIPHER_CHOICE" =~ ^[1-6]$ ]]; do
|
||||||
|
read -rp "Cipher [1-6]: " -e -i 1 CIPHER_CHOICE
|
||||||
done
|
done
|
||||||
case $CIPHER_CHOICE in
|
case $CIPHER_CHOICE in
|
||||||
1)
|
1)
|
||||||
CIPHER="cipher AES-128-CBC"
|
CIPHER="cipher AES-128-GCM"
|
||||||
;;
|
;;
|
||||||
2)
|
2)
|
||||||
CIPHER="cipher AES-192-CBC"
|
CIPHER="cipher AES-192-GCM"
|
||||||
;;
|
;;
|
||||||
3)
|
3)
|
||||||
|
CIPHER="cipher AES-256-GCM"
|
||||||
|
;;
|
||||||
|
4)
|
||||||
|
CIPHER="cipher AES-128-CBC"
|
||||||
|
;;
|
||||||
|
5)
|
||||||
|
CIPHER="cipher AES-192-CBC"
|
||||||
|
;;
|
||||||
|
6)
|
||||||
CIPHER="cipher AES-256-CBC"
|
CIPHER="cipher AES-256-CBC"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
Loading…
Reference in New Issue
Block a user