Update IKEv2 script
- Add a note about OpenVPN and WireGuard which can be optionally installed alongside IPsec VPN.
This commit is contained in:
parent
17864297cb
commit
dce25ada28
@ -151,7 +151,7 @@ confirm_or_abort() {
|
|||||||
show_header() {
|
show_header() {
|
||||||
cat <<'EOF'
|
cat <<'EOF'
|
||||||
|
|
||||||
IKEv2 Script Copyright (c) 2020-2022 Lin Song 14 May 2022
|
IKEv2 Script Copyright (c) 2020-2022 Lin Song 23 May 2022
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
@ -1278,6 +1278,20 @@ vpnsetup.net/ikev2clients
|
|||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
|
show_optional_note() {
|
||||||
|
if [ "$os_type" = "ubuntu" ] || [ "$os_type" = "debian" ] \
|
||||||
|
|| { [ "$os_type" = "centos" ] && [ "$os_ver" = "7" ]; }; then
|
||||||
|
cat <<EOF
|
||||||
|
Note: You may optionally install OpenVPN and/or
|
||||||
|
WireGuard alongside IPsec VPN on this server.
|
||||||
|
Learn more at vpnsetup.net/ovpn vpnsetup.net/wg
|
||||||
|
|
||||||
|
================================================
|
||||||
|
|
||||||
|
EOF
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
check_swan_update() {
|
check_swan_update() {
|
||||||
base_url="https://github.com/hwdsl2/vpn-extras/releases/download/v1.0.0"
|
base_url="https://github.com/hwdsl2/vpn-extras/releases/download/v1.0.0"
|
||||||
swan_ver_url="$base_url/upg-$os_type-$os_ver-swanver"
|
swan_ver_url="$base_url/upg-$os_type-$os_ver-swanver"
|
||||||
@ -1611,6 +1625,7 @@ ikev2setup() {
|
|||||||
print_setup_complete
|
print_setup_complete
|
||||||
print_client_info
|
print_client_info
|
||||||
if [ "$in_container" = "0" ]; then
|
if [ "$in_container" = "0" ]; then
|
||||||
|
show_optional_note
|
||||||
check_swan_update
|
check_swan_update
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user