mirror of
https://github.com/namibia/openvpn-install.git
synced 2025-02-02 09:08:24 +00: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.
|
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
|
## Usage
|
||||||
|
|
||||||
|
@ -257,8 +257,8 @@ function installQuestions () {
|
|||||||
done
|
done
|
||||||
if [[ $COMPRESSION_ENABLED == "y" ]];then
|
if [[ $COMPRESSION_ENABLED == "y" ]];then
|
||||||
echo "Choose which compression algorithm you want to use:"
|
echo "Choose which compression algorithm you want to use:"
|
||||||
echo " 1) LZ4 (faster)"
|
echo " 1) LZ4 (more efficient)"
|
||||||
echo " 2) LZ0 (use for OpenVPN 2.3 compatibility)"
|
echo " 2) LZ0"
|
||||||
until [[ $COMPRESSION_CHOICE =~ ^[1-2]$ ]]; do
|
until [[ $COMPRESSION_CHOICE =~ ^[1-2]$ ]]; do
|
||||||
read -rp"Compression algorithm [1-2]: " -e -i 1 COMPRESSION_CHOICE
|
read -rp"Compression algorithm [1-2]: " -e -i 1 COMPRESSION_CHOICE
|
||||||
done
|
done
|
||||||
@ -514,7 +514,7 @@ function installOpenVPN () {
|
|||||||
wget -O - https://swupdate.openvpn.net/repos/repo-public.gpg | apt-key add -
|
wget -O - https://swupdate.openvpn.net/repos/repo-public.gpg | apt-key add -
|
||||||
apt-get update
|
apt-get update
|
||||||
fi
|
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
|
apt-get install openvpn iptables openssl wget ca-certificates curl -y
|
||||||
elif [[ "$OS" = 'centos' ]]; then
|
elif [[ "$OS" = 'centos' ]]; then
|
||||||
yum install epel-release openvpn iptables openssl wget ca-certificates curl -y
|
yum install epel-release openvpn iptables openssl wget ca-certificates curl -y
|
||||||
|
Loading…
x
Reference in New Issue
Block a user