mirror of
https://github.com/angristan/openvpn-install.git
synced 2024-11-24 17:59:04 +01:00
Little fixes according to OpenVPN 2.4
Yeah, seconds, really :)
This commit is contained in:
parent
ba1fc42aac
commit
21f15d9aef
@ -4,7 +4,7 @@
|
||||
|
||||
OpenVPN installer for Debian, Ubuntu, Fedora and CentOS.
|
||||
|
||||
This script will let you setup your own secure VPN server in just a few minutes.
|
||||
This script will let you setup your own secure VPN server in just a few seconds.
|
||||
|
||||
## Usage
|
||||
|
||||
|
@ -257,8 +257,8 @@ function installQuestions () {
|
||||
done
|
||||
if [[ $COMPRESSION_ENABLED == "y" ]];then
|
||||
echo "Choose which compression algorithm you want to use:"
|
||||
echo " 1) LZ4 (faster)"
|
||||
echo " 2) LZ0 (use for OpenVPN 2.3 compatibility)"
|
||||
echo " 1) LZ4 (more efficient)"
|
||||
echo " 2) LZ0"
|
||||
until [[ $COMPRESSION_CHOICE =~ ^[1-2]$ ]]; do
|
||||
read -rp"Compression algorithm [1-2]: " -e -i 1 COMPRESSION_CHOICE
|
||||
done
|
||||
@ -514,7 +514,7 @@ function installOpenVPN () {
|
||||
wget -O - https://swupdate.openvpn.net/repos/repo-public.gpg | apt-key add -
|
||||
apt-get update
|
||||
fi
|
||||
# Ubuntu >= 16.04 and Debian > 8 have OpenVPN > 2.3.3 without the need of a third party repository.
|
||||
# Ubuntu >= 16.04 and Debian >= 9 have OpenVPN >= 2.4 without the need of a third party repository.
|
||||
apt-get install openvpn iptables openssl wget ca-certificates curl -y
|
||||
elif [[ "$OS" = 'centos' ]]; then
|
||||
yum install epel-release openvpn iptables openssl wget ca-certificates curl -y
|
||||
|
Loading…
Reference in New Issue
Block a user