1
0
mirror of synced 2024-11-23 21:36:09 +03:00

Compare commits

..

2 Commits

Author SHA1 Message Date
hwdsl2
7be010a29c Update docs 2022-05-27 01:13:37 -05:00
hwdsl2
7b9813d562 Cleanup 2022-05-27 01:12:37 -05:00
8 changed files with 12 additions and 23 deletions

View File

@ -10,6 +10,8 @@ IPsec VPN 可以加密你的网络流量,以防止在通过因特网传送时
我们将使用 [Libreswan](https://libreswan.org/) 作为 IPsec 服务器,以及 [xl2tpd](https://github.com/xelerance/xl2tpd) 作为 L2TP 提供者。
**» 另见:[OpenVPN](https://github.com/hwdsl2/openvpn-install/blob/master/README-zh.md) 和 [WireGuard](https://github.com/hwdsl2/wireguard-install/blob/master/README-zh.md) 一键安装脚本**
## 快速开始
首先,在你的 Linux 服务器\* 上全新安装 Ubuntu, Debian 或者 CentOS。

View File

@ -10,6 +10,8 @@ An IPsec VPN encrypts your network traffic, so that nobody between you and the V
We will use [Libreswan](https://libreswan.org/) as the IPsec server, and [xl2tpd](https://github.com/xelerance/xl2tpd) as the L2TP provider.
**» See also: [OpenVPN](https://github.com/hwdsl2/openvpn-install) and [WireGuard](https://github.com/hwdsl2/wireguard-install) Auto Setup Scripts**
## Quick start
First, prepare your Linux server\* with a fresh install of Ubuntu, Debian or CentOS.

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 143 KiB

After

Width:  |  Height:  |  Size: 143 KiB

View File

@ -151,7 +151,7 @@ confirm_or_abort() {
show_header() {
cat <<'EOF'
IKEv2 Script Copyright (c) 2020-2022 Lin Song 23 May 2022
IKEv2 Script Copyright (c) 2020-2022 Lin Song 27 May 2022
EOF
}
@ -1076,7 +1076,7 @@ create_config_readme() {
&& [ "$use_defaults" = "1" ] && [ ! -t 1 ] && [ ! -f "$readme_file" ]; then
cat > "$readme_file" <<'EOF'
These IKEv2 client config files were created during IPsec VPN setup.
To configure IKEv2 clients, see: vpnsetup.net/ikev2clients
To configure IKEv2 clients, see: https://vpnsetup.net/ikev2clients
EOF
if [ "$export_to_home_dir" = "1" ]; then
chown "$SUDO_USER:$SUDO_USER" "$readme_file"
@ -1271,27 +1271,13 @@ EOF
cat <<'EOF'
Next steps: Configure IKEv2 clients. See:
vpnsetup.net/ikev2clients
https://vpnsetup.net/ikev2clients
================================================
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() {
base_url="https://github.com/hwdsl2/vpn-extras/releases/download/v1.0.0"
swan_ver_url="$base_url/upg-$os_type-$os_ver-swanver"
@ -1625,7 +1611,6 @@ ikev2setup() {
print_setup_complete
print_client_info
if [ "$in_container" = "0" ]; then
show_optional_note
check_swan_update
fi
}

View File

@ -555,7 +555,7 @@ cat <<'EOF'
IKEv2 is already set up on this server.
Next steps: Configure IKEv2 clients. See:
vpnsetup.net/ikev2clients
https://vpnsetup.net/ikev2clients
To manage IKEv2 clients, run: sudo ikev2.sh

View File

@ -571,7 +571,7 @@ cat <<'EOF'
IKEv2 is already set up on this server.
Next steps: Configure IKEv2 clients. See:
vpnsetup.net/ikev2clients
https://vpnsetup.net/ikev2clients
To manage IKEv2 clients, run: sudo ikev2.sh

View File

@ -709,7 +709,7 @@ cat <<'EOF'
IKEv2 is already set up on this server.
Next steps: Configure IKEv2 clients. See:
vpnsetup.net/ikev2clients
https://vpnsetup.net/ikev2clients
To manage IKEv2 clients, run: sudo ikev2.sh

View File

@ -681,7 +681,7 @@ cat <<'EOF'
IKEv2 is already set up on this server.
Next steps: Configure IKEv2 clients. See:
vpnsetup.net/ikev2clients
https://vpnsetup.net/ikev2clients
To manage IKEv2 clients, run: sudo ikev2.sh