1
0
mirror of synced 2024-11-26 14:56:08 +03:00

New Libreswan version

- Support updating to Libreswan 4.5
This commit is contained in:
hwdsl2 2021-08-22 11:49:35 -05:00
parent edd124ed9c
commit 0e8e6a020c
4 changed files with 20 additions and 20 deletions

View File

@ -15,7 +15,7 @@
# know how you have improved it! # know how you have improved it!
# Specify which Libreswan version to install. See: https://libreswan.org # Specify which Libreswan version to install. See: https://libreswan.org
SWAN_VER=4.4 SWAN_VER=4.5
### DO NOT edit below this line ### ### DO NOT edit below this line ###
@ -75,16 +75,16 @@ check_os() {
fi fi
} }
check_swan_ver() { check_libreswan() {
case $SWAN_VER in case $SWAN_VER in
3.32|4.[1234]) 3.32|4.[1-5])
true true
;; ;;
*) *)
cat 1>&2 <<EOF cat 1>&2 <<EOF
Error: Libreswan version '$SWAN_VER' is not supported. Error: Libreswan version '$SWAN_VER' is not supported.
This script can install one of these versions: This script can install one of these versions:
3.32, 4.1-4.3 or 4.4 3.32, 4.1-4.4 or 4.5
EOF EOF
exit 1 exit 1
;; ;;
@ -158,7 +158,7 @@ vpnupgrade() {
check_root check_root
check_vz check_vz
check_os check_os
check_swan_ver check_libreswan
install_wget install_wget
get_setup_url get_setup_url
run_setup run_setup

View File

@ -14,7 +14,7 @@
# know how you have improved it! # know how you have improved it!
# Specify which Libreswan version to install. See: https://libreswan.org # Specify which Libreswan version to install. See: https://libreswan.org
SWAN_VER=4.4 SWAN_VER=4.5
### DO NOT edit below this line ### ### DO NOT edit below this line ###
@ -40,14 +40,14 @@ check_os() {
check_libreswan() { check_libreswan() {
case $SWAN_VER in case $SWAN_VER in
3.32|4.[1234]) 3.32|4.[1-5])
true true
;; ;;
*) *)
cat 1>&2 <<EOF cat 1>&2 <<EOF
Error: Libreswan version '$SWAN_VER' is not supported. Error: Libreswan version '$SWAN_VER' is not supported.
This script can install one of these versions: This script can install one of these versions:
3.32, 4.1-4.3 or 4.4 3.32, 4.1-4.4 or 4.5
EOF EOF
exit 1 exit 1
;; ;;
@ -98,7 +98,7 @@ Note: This script will make the following changes to your VPN configuration:
EOF EOF
if [ "$SWAN_VER" != "4.4" ]; then if [ "$SWAN_VER" != "4.5" ]; then
cat <<'EOF' cat <<'EOF'
WARNING: Older versions of Libreswan could contain known security vulnerabilities. WARNING: Older versions of Libreswan could contain known security vulnerabilities.
See https://libreswan.org/security/ for more information. See https://libreswan.org/security/ for more information.
@ -258,7 +258,7 @@ EOF
} }
check_swan_ver() { check_swan_ver() {
swan_ver_cur=4.4 swan_ver_cur=4.5
swan_ver_url="https://dl.ls20.com/v1/amzn/2/swanverupg?arch=$os_arch&ver1=$swan_ver_old&ver2=$SWAN_VER" swan_ver_url="https://dl.ls20.com/v1/amzn/2/swanverupg?arch=$os_arch&ver1=$swan_ver_old&ver2=$SWAN_VER"
[ "$1" != "0" ] && swan_ver_url="$swan_ver_url&e=$2" [ "$1" != "0" ] && swan_ver_url="$swan_ver_url&e=$2"
swan_ver_latest=$(wget -t 3 -T 15 -qO- "$swan_ver_url") swan_ver_latest=$(wget -t 3 -T 15 -qO- "$swan_ver_url")

View File

@ -14,7 +14,7 @@
# know how you have improved it! # know how you have improved it!
# Specify which Libreswan version to install. See: https://libreswan.org # Specify which Libreswan version to install. See: https://libreswan.org
SWAN_VER=4.4 SWAN_VER=4.5
### DO NOT edit below this line ### ### DO NOT edit below this line ###
@ -58,14 +58,14 @@ check_os() {
check_libreswan() { check_libreswan() {
case $SWAN_VER in case $SWAN_VER in
3.32|4.[1234]) 3.32|4.[1-5])
true true
;; ;;
*) *)
cat 1>&2 <<EOF cat 1>&2 <<EOF
Error: Libreswan version '$SWAN_VER' is not supported. Error: Libreswan version '$SWAN_VER' is not supported.
This script can install one of these versions: This script can install one of these versions:
3.32, 4.1-4.3 or 4.4 3.32, 4.1-4.4 or 4.5
EOF EOF
exit 1 exit 1
;; ;;
@ -116,7 +116,7 @@ Note: This script will make the following changes to your VPN configuration:
EOF EOF
if [ "$SWAN_VER" != "4.4" ]; then if [ "$SWAN_VER" != "4.5" ]; then
cat <<'EOF' cat <<'EOF'
WARNING: Older versions of Libreswan could contain known security vulnerabilities. WARNING: Older versions of Libreswan could contain known security vulnerabilities.
See https://libreswan.org/security/ for more information. See https://libreswan.org/security/ for more information.
@ -294,7 +294,7 @@ EOF
} }
check_swan_ver() { check_swan_ver() {
swan_ver_cur=4.4 swan_ver_cur=4.5
swan_ver_url="https://dl.ls20.com/v1/$os_type/$os_ver/swanverupg?arch=$os_arch&ver1=$swan_ver_old&ver2=$SWAN_VER" swan_ver_url="https://dl.ls20.com/v1/$os_type/$os_ver/swanverupg?arch=$os_arch&ver1=$swan_ver_old&ver2=$SWAN_VER"
[ "$1" != "0" ] && swan_ver_url="$swan_ver_url&e=$2" [ "$1" != "0" ] && swan_ver_url="$swan_ver_url&e=$2"
swan_ver_latest=$(wget -t 3 -T 15 -qO- "$swan_ver_url") swan_ver_latest=$(wget -t 3 -T 15 -qO- "$swan_ver_url")

View File

@ -14,7 +14,7 @@
# know how you have improved it! # know how you have improved it!
# Specify which Libreswan version to install. See: https://libreswan.org # Specify which Libreswan version to install. See: https://libreswan.org
SWAN_VER=4.4 SWAN_VER=4.5
### DO NOT edit below this line ### ### DO NOT edit below this line ###
@ -63,14 +63,14 @@ check_os() {
check_libreswan() { check_libreswan() {
case $SWAN_VER in case $SWAN_VER in
3.32|4.[1234]) 3.32|4.[1-5])
true true
;; ;;
*) *)
cat 1>&2 <<EOF cat 1>&2 <<EOF
Error: Libreswan version '$SWAN_VER' is not supported. Error: Libreswan version '$SWAN_VER' is not supported.
This script can install one of these versions: This script can install one of these versions:
3.32, 4.1-4.3 or 4.4 3.32, 4.1-4.4 or 4.5
EOF EOF
exit 1 exit 1
;; ;;
@ -125,7 +125,7 @@ Note: This script will make the following changes to your VPN configuration:
EOF EOF
if [ "$SWAN_VER" != "4.4" ]; then if [ "$SWAN_VER" != "4.5" ]; then
cat <<'EOF' cat <<'EOF'
WARNING: Older versions of Libreswan could contain known security vulnerabilities. WARNING: Older versions of Libreswan could contain known security vulnerabilities.
See https://libreswan.org/security/ for more information. See https://libreswan.org/security/ for more information.
@ -301,7 +301,7 @@ EOF
} }
check_swan_ver() { check_swan_ver() {
swan_ver_cur=4.4 swan_ver_cur=4.5
swan_ver_url="https://dl.ls20.com/v1/$os_type/$os_ver/swanverupg?arch=$os_arch&ver1=$swan_ver_old&ver2=$SWAN_VER" swan_ver_url="https://dl.ls20.com/v1/$os_type/$os_ver/swanverupg?arch=$os_arch&ver1=$swan_ver_old&ver2=$SWAN_VER"
[ "$1" != "0" ] && swan_ver_url="$swan_ver_url&e=$2" [ "$1" != "0" ] && swan_ver_url="$swan_ver_url&e=$2"
swan_ver_latest=$(wget -t 3 -T 15 -qO- "$swan_ver_url") swan_ver_latest=$(wget -t 3 -T 15 -qO- "$swan_ver_url")