Compare commits
No commits in common. "7be010a29cd42fe035c09d2257ffc23d8c31facc" and "963a49d61ad7a0d11d7fd2cba3e7fc55e21f5a1e" have entirely different histories.
7be010a29c
...
963a49d61a
@ -10,8 +10,6 @@ IPsec VPN 可以加密你的网络流量,以防止在通过因特网传送时
|
|||||||
|
|
||||||
我们将使用 [Libreswan](https://libreswan.org/) 作为 IPsec 服务器,以及 [xl2tpd](https://github.com/xelerance/xl2tpd) 作为 L2TP 提供者。
|
我们将使用 [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。
|
首先,在你的 Linux 服务器\* 上全新安装 Ubuntu, Debian 或者 CentOS。
|
||||||
|
@ -10,8 +10,6 @@ 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.
|
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
|
## Quick start
|
||||||
|
|
||||||
First, prepare your Linux server\* with a fresh install of Ubuntu, Debian or CentOS.
|
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 |
@ -151,7 +151,7 @@ confirm_or_abort() {
|
|||||||
show_header() {
|
show_header() {
|
||||||
cat <<'EOF'
|
cat <<'EOF'
|
||||||
|
|
||||||
IKEv2 Script Copyright (c) 2020-2022 Lin Song 27 May 2022
|
IKEv2 Script Copyright (c) 2020-2022 Lin Song 23 May 2022
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
@ -1076,7 +1076,7 @@ create_config_readme() {
|
|||||||
&& [ "$use_defaults" = "1" ] && [ ! -t 1 ] && [ ! -f "$readme_file" ]; then
|
&& [ "$use_defaults" = "1" ] && [ ! -t 1 ] && [ ! -f "$readme_file" ]; then
|
||||||
cat > "$readme_file" <<'EOF'
|
cat > "$readme_file" <<'EOF'
|
||||||
These IKEv2 client config files were created during IPsec VPN setup.
|
These IKEv2 client config files were created during IPsec VPN setup.
|
||||||
To configure IKEv2 clients, see: https://vpnsetup.net/ikev2clients
|
To configure IKEv2 clients, see: vpnsetup.net/ikev2clients
|
||||||
EOF
|
EOF
|
||||||
if [ "$export_to_home_dir" = "1" ]; then
|
if [ "$export_to_home_dir" = "1" ]; then
|
||||||
chown "$SUDO_USER:$SUDO_USER" "$readme_file"
|
chown "$SUDO_USER:$SUDO_USER" "$readme_file"
|
||||||
@ -1271,13 +1271,27 @@ EOF
|
|||||||
cat <<'EOF'
|
cat <<'EOF'
|
||||||
|
|
||||||
Next steps: Configure IKEv2 clients. See:
|
Next steps: Configure IKEv2 clients. See:
|
||||||
https://vpnsetup.net/ikev2clients
|
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
|
||||||
}
|
}
|
||||||
|
@ -555,7 +555,7 @@ cat <<'EOF'
|
|||||||
IKEv2 is already set up on this server.
|
IKEv2 is already set up on this server.
|
||||||
|
|
||||||
Next steps: Configure IKEv2 clients. See:
|
Next steps: Configure IKEv2 clients. See:
|
||||||
https://vpnsetup.net/ikev2clients
|
vpnsetup.net/ikev2clients
|
||||||
|
|
||||||
To manage IKEv2 clients, run: sudo ikev2.sh
|
To manage IKEv2 clients, run: sudo ikev2.sh
|
||||||
|
|
||||||
|
@ -571,7 +571,7 @@ cat <<'EOF'
|
|||||||
IKEv2 is already set up on this server.
|
IKEv2 is already set up on this server.
|
||||||
|
|
||||||
Next steps: Configure IKEv2 clients. See:
|
Next steps: Configure IKEv2 clients. See:
|
||||||
https://vpnsetup.net/ikev2clients
|
vpnsetup.net/ikev2clients
|
||||||
|
|
||||||
To manage IKEv2 clients, run: sudo ikev2.sh
|
To manage IKEv2 clients, run: sudo ikev2.sh
|
||||||
|
|
||||||
|
@ -709,7 +709,7 @@ cat <<'EOF'
|
|||||||
IKEv2 is already set up on this server.
|
IKEv2 is already set up on this server.
|
||||||
|
|
||||||
Next steps: Configure IKEv2 clients. See:
|
Next steps: Configure IKEv2 clients. See:
|
||||||
https://vpnsetup.net/ikev2clients
|
vpnsetup.net/ikev2clients
|
||||||
|
|
||||||
To manage IKEv2 clients, run: sudo ikev2.sh
|
To manage IKEv2 clients, run: sudo ikev2.sh
|
||||||
|
|
||||||
|
@ -681,7 +681,7 @@ cat <<'EOF'
|
|||||||
IKEv2 is already set up on this server.
|
IKEv2 is already set up on this server.
|
||||||
|
|
||||||
Next steps: Configure IKEv2 clients. See:
|
Next steps: Configure IKEv2 clients. See:
|
||||||
https://vpnsetup.net/ikev2clients
|
vpnsetup.net/ikev2clients
|
||||||
|
|
||||||
To manage IKEv2 clients, run: sudo ikev2.sh
|
To manage IKEv2 clients, run: sudo ikev2.sh
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user