mirror of
https://github.com/hwdsl2/setup-ipsec-vpn.git
synced 2024-06-19 20:26:02 +02:00
Compare commits
3 Commits
b7b3fc3169
...
7231444a94
Author | SHA1 | Date | |
---|---|---|---|
|
7231444a94 | ||
|
198bd98fbb | ||
|
5bb63dac28 |
2
.github/workflows/check_urls.yml
vendored
2
.github/workflows/check_urls.yml
vendored
|
@ -1,5 +1,5 @@
|
|||
#
|
||||
# Copyright (C) 2020-2023 Lin Song <linsongui@gmail.com>
|
||||
# Copyright (C) 2020-2024 Lin Song <linsongui@gmail.com>
|
||||
#
|
||||
# This work is licensed under the Creative Commons Attribution-ShareAlike 3.0
|
||||
# Unported License: http://creativecommons.org/licenses/by-sa/3.0/
|
||||
|
|
2
.github/workflows/cron.yml
vendored
2
.github/workflows/cron.yml
vendored
|
@ -1,5 +1,5 @@
|
|||
#
|
||||
# Copyright (C) 2020-2023 Lin Song <linsongui@gmail.com>
|
||||
# Copyright (C) 2020-2024 Lin Song <linsongui@gmail.com>
|
||||
#
|
||||
# This work is licensed under the Creative Commons Attribution-ShareAlike 3.0
|
||||
# Unported License: http://creativecommons.org/licenses/by-sa/3.0/
|
||||
|
|
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
|
@ -1,5 +1,5 @@
|
|||
#
|
||||
# Copyright (C) 2020-2023 Lin Song <linsongui@gmail.com>
|
||||
# Copyright (C) 2020-2024 Lin Song <linsongui@gmail.com>
|
||||
#
|
||||
# This work is licensed under the Creative Commons Attribution-ShareAlike 3.0
|
||||
# Unported License: http://creativecommons.org/licenses/by-sa/3.0/
|
||||
|
|
2
.github/workflows/shellcheck.yml
vendored
2
.github/workflows/shellcheck.yml
vendored
|
@ -1,5 +1,5 @@
|
|||
#
|
||||
# Copyright (C) 2020-2023 Lin Song <linsongui@gmail.com>
|
||||
# Copyright (C) 2020-2024 Lin Song <linsongui@gmail.com>
|
||||
#
|
||||
# This work is licensed under the Creative Commons Attribution-ShareAlike 3.0
|
||||
# Unported License: http://creativecommons.org/licenses/by-sa/3.0/
|
||||
|
|
2
.github/workflows/test_set_1.yml
vendored
2
.github/workflows/test_set_1.yml
vendored
|
@ -1,5 +1,5 @@
|
|||
#
|
||||
# Copyright (C) 2020-2023 Lin Song <linsongui@gmail.com>
|
||||
# Copyright (C) 2020-2024 Lin Song <linsongui@gmail.com>
|
||||
#
|
||||
# This work is licensed under the Creative Commons Attribution-ShareAlike 3.0
|
||||
# Unported License: http://creativecommons.org/licenses/by-sa/3.0/
|
||||
|
|
4
.github/workflows/test_set_2.yml
vendored
4
.github/workflows/test_set_2.yml
vendored
|
@ -1,5 +1,5 @@
|
|||
#
|
||||
# Copyright (C) 2020-2023 Lin Song <linsongui@gmail.com>
|
||||
# Copyright (C) 2020-2024 Lin Song <linsongui@gmail.com>
|
||||
#
|
||||
# This work is licensed under the Creative Commons Attribution-ShareAlike 3.0
|
||||
# Unported License: http://creativecommons.org/licenses/by-sa/3.0/
|
||||
|
@ -17,7 +17,7 @@ jobs:
|
|||
if: github.repository_owner == 'hwdsl2'
|
||||
strategy:
|
||||
matrix:
|
||||
os_version: ["ubuntu:22.04", "ubuntu:20.04", "ubuntu:18.04", "debian:12", "debian:11", "debian:10", "alpine:3.17", "alpine:3.18"]
|
||||
os_version: ["ubuntu:22.04", "ubuntu:20.04", "ubuntu:18.04", "debian:12", "debian:11", "debian:10", "alpine:3.18", "alpine:3.19"]
|
||||
fail-fast: false
|
||||
container:
|
||||
image: ${{ matrix.os_version }}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
### Creative Commons Attribution-ShareAlike 3.0 Unported License
|
||||
Link to license summary: https://creativecommons.org/licenses/by-sa/3.0/
|
||||
|
||||
Copyright (C) 2014-2023 [Lin Song](https://github.com/hwdsl2)
|
||||
Copyright (C) 2014-2024 [Lin Song](https://github.com/hwdsl2)
|
||||
Based on [the work of Thomas Sarlandie](https://github.com/sarfata/voodooprivacy) (Copyright 2012)
|
||||
|
||||
See the [aws/](aws/) and [azure/](azure/) subfolders for their respective authors.
|
||||
|
|
|
@ -415,7 +415,7 @@ https://gitlab.com/hwdsl2/setup-ipsec-vpn/-/raw/master/extras/vpnuninstall.sh
|
|||
|
||||
## 授权协议
|
||||
|
||||
版权所有 (C) 2014-2023 [Lin Song](https://github.com/hwdsl2) [![View my profile on LinkedIn](https://static.licdn.com/scds/common/u/img/webpromo/btn_viewmy_160x25.png)](https://www.linkedin.com/in/linsongui)
|
||||
版权所有 (C) 2014-2024 [Lin Song](https://github.com/hwdsl2) [![View my profile on LinkedIn](https://static.licdn.com/scds/common/u/img/webpromo/btn_viewmy_160x25.png)](https://www.linkedin.com/in/linsongui)
|
||||
基于 [Thomas Sarlandie 的工作](https://github.com/sarfata/voodooprivacy) (版权所有 2012)
|
||||
|
||||
[![Creative Commons License](https://i.creativecommons.org/l/by-sa/3.0/88x31.png)](http://creativecommons.org/licenses/by-sa/3.0/)
|
||||
|
|
|
@ -415,7 +415,7 @@ For more information, see [Uninstall the VPN](docs/uninstall.md).
|
|||
|
||||
## License
|
||||
|
||||
Copyright (C) 2014-2023 [Lin Song](https://github.com/hwdsl2) [![View my profile on LinkedIn](https://static.licdn.com/scds/common/u/img/webpromo/btn_viewmy_160x25.png)](https://www.linkedin.com/in/linsongui)
|
||||
Copyright (C) 2014-2024 [Lin Song](https://github.com/hwdsl2) [![View my profile on LinkedIn](https://static.licdn.com/scds/common/u/img/webpromo/btn_viewmy_160x25.png)](https://www.linkedin.com/in/linsongui)
|
||||
Based on [the work of Thomas Sarlandie](https://github.com/sarfata/voodooprivacy) (Copyright 2012)
|
||||
|
||||
[![Creative Commons License](https://i.creativecommons.org/l/by-sa/3.0/88x31.png)](http://creativecommons.org/licenses/by-sa/3.0/)
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
## 作者
|
||||
|
||||
版权所有 (C) 2016 [Daniel Falkner](https://github.com/derdanu)
|
||||
版权所有 (C) 2017-2023 [Lin Song](https://github.com/hwdsl2)
|
||||
版权所有 (C) 2017-2024 [Lin Song](https://github.com/hwdsl2)
|
||||
|
||||
## 屏幕截图
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ When the deployment finishes, Azure displays a notification. Next steps: [Config
|
|||
## Authors
|
||||
|
||||
Copyright (C) 2016 [Daniel Falkner](https://github.com/derdanu)
|
||||
Copyright (C) 2017-2023 [Lin Song](https://github.com/hwdsl2)
|
||||
Copyright (C) 2017-2024 [Lin Song](https://github.com/hwdsl2)
|
||||
|
||||
## Screenshot
|
||||
|
||||
|
|
|
@ -376,7 +376,7 @@ VPN 服务器搭建完成后,可以通过部署 Google BBR 拥塞控制算法
|
|||
|
||||
## 授权协议
|
||||
|
||||
版权所有 (C) 2021-2023 [Lin Song](https://github.com/hwdsl2) [![View my profile on LinkedIn](https://static.licdn.com/scds/common/u/img/webpromo/btn_viewmy_160x25.png)](https://www.linkedin.com/in/linsongui)
|
||||
版权所有 (C) 2021-2024 [Lin Song](https://github.com/hwdsl2) [![View my profile on LinkedIn](https://static.licdn.com/scds/common/u/img/webpromo/btn_viewmy_160x25.png)](https://www.linkedin.com/in/linsongui)
|
||||
|
||||
[![Creative Commons License](https://i.creativecommons.org/l/by-sa/3.0/88x31.png)](http://creativecommons.org/licenses/by-sa/3.0/)
|
||||
这个项目是以 [知识共享署名-相同方式共享3.0](http://creativecommons.org/licenses/by-sa/3.0/) 许可协议授权。
|
||||
|
|
|
@ -377,7 +377,7 @@ For detailed deployment methods, please refer to [this document](bbr.md).
|
|||
|
||||
## License
|
||||
|
||||
Copyright (C) 2021-2023 [Lin Song](https://github.com/hwdsl2) [![View my profile on LinkedIn](https://static.licdn.com/scds/common/u/img/webpromo/btn_viewmy_160x25.png)](https://www.linkedin.com/in/linsongui)
|
||||
Copyright (C) 2021-2024 [Lin Song](https://github.com/hwdsl2) [![View my profile on LinkedIn](https://static.licdn.com/scds/common/u/img/webpromo/btn_viewmy_160x25.png)](https://www.linkedin.com/in/linsongui)
|
||||
|
||||
[![Creative Commons License](https://i.creativecommons.org/l/by-sa/3.0/88x31.png)](http://creativecommons.org/licenses/by-sa/3.0/)
|
||||
This work is licensed under the [Creative Commons Attribution-ShareAlike 3.0 Unported License](http://creativecommons.org/licenses/by-sa/3.0/)
|
||||
|
|
|
@ -168,7 +168,7 @@ Fedora 28 (和更新版本)和 CentOS 8/7 用户可以使用 `yum` 安装 `N
|
|||
|
||||
注: 这个协议仅适用于本文档。
|
||||
|
||||
版权所有 (C) 2016-2023 [Lin Song](https://github.com/hwdsl2) [![View my profile on LinkedIn](https://static.licdn.com/scds/common/u/img/webpromo/btn_viewmy_160x25.png)](https://www.linkedin.com/in/linsongui)
|
||||
版权所有 (C) 2016-2024 [Lin Song](https://github.com/hwdsl2) [![View my profile on LinkedIn](https://static.licdn.com/scds/common/u/img/webpromo/btn_viewmy_160x25.png)](https://www.linkedin.com/in/linsongui)
|
||||
受到 [Joshua Lund 的工作](https://github.com/StreisandEffect/streisand/blob/6aa6b6b2735dd829ca8c417d72eb2768a89b6639/playbooks/roles/l2tp-ipsec/templates/instructions.md.j2) 的启发
|
||||
|
||||
本程序为自由软件,在自由软件联盟发布的[ GNU 通用公共许可协议](https://www.gnu.org/licenses/gpl.html)的约束下,你可以对其进行再发布及修改。协议版本为第三版或(随你)更新的版本。
|
||||
|
|
|
@ -168,7 +168,7 @@ Other Linux users can connect using [IPsec/L2TP](clients.md#linux) mode.
|
|||
|
||||
Note: This license applies to this document only.
|
||||
|
||||
Copyright (C) 2016-2023 [Lin Song](https://github.com/hwdsl2) [![View my profile on LinkedIn](https://static.licdn.com/scds/common/u/img/webpromo/btn_viewmy_160x25.png)](https://www.linkedin.com/in/linsongui)
|
||||
Copyright (C) 2016-2024 [Lin Song](https://github.com/hwdsl2) [![View my profile on LinkedIn](https://static.licdn.com/scds/common/u/img/webpromo/btn_viewmy_160x25.png)](https://www.linkedin.com/in/linsongui)
|
||||
Inspired by [the work of Joshua Lund](https://github.com/StreisandEffect/streisand/blob/6aa6b6b2735dd829ca8c417d72eb2768a89b6639/playbooks/roles/l2tp-ipsec/templates/instructions.md.j2)
|
||||
|
||||
This program is free software: you can redistribute it and/or modify it under the terms of the [GNU General Public License](https://www.gnu.org/licenses/gpl.html) as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
|
|
@ -643,7 +643,7 @@ Debian 用户:运行 `uname -r` 检查你的服务器的 Linux 内核版本。
|
|||
|
||||
注: 这个协议仅适用于本文档。
|
||||
|
||||
版权所有 (C) 2016-2023 [Lin Song](https://github.com/hwdsl2) [![View my profile on LinkedIn](https://static.licdn.com/scds/common/u/img/webpromo/btn_viewmy_160x25.png)](https://www.linkedin.com/in/linsongui)
|
||||
版权所有 (C) 2016-2024 [Lin Song](https://github.com/hwdsl2) [![View my profile on LinkedIn](https://static.licdn.com/scds/common/u/img/webpromo/btn_viewmy_160x25.png)](https://www.linkedin.com/in/linsongui)
|
||||
受到 [Joshua Lund 的工作](https://github.com/StreisandEffect/streisand/blob/6aa6b6b2735dd829ca8c417d72eb2768a89b6639/playbooks/roles/l2tp-ipsec/templates/instructions.md.j2) 的启发
|
||||
|
||||
本程序为自由软件,在自由软件联盟发布的[ GNU 通用公共许可协议](https://www.gnu.org/licenses/gpl.html)的约束下,你可以对其进行再发布及修改。协议版本为第三版或(随你)更新的版本。
|
||||
|
|
|
@ -641,7 +641,7 @@ To fix the issue with IPsec/L2TP mode, you may switch to the standard Linux kern
|
|||
|
||||
Note: This license applies to this document only.
|
||||
|
||||
Copyright (C) 2016-2023 [Lin Song](https://github.com/hwdsl2) [![View my profile on LinkedIn](https://static.licdn.com/scds/common/u/img/webpromo/btn_viewmy_160x25.png)](https://www.linkedin.com/in/linsongui)
|
||||
Copyright (C) 2016-2024 [Lin Song](https://github.com/hwdsl2) [![View my profile on LinkedIn](https://static.licdn.com/scds/common/u/img/webpromo/btn_viewmy_160x25.png)](https://www.linkedin.com/in/linsongui)
|
||||
Inspired by [the work of Joshua Lund](https://github.com/StreisandEffect/streisand/blob/6aa6b6b2735dd829ca8c417d72eb2768a89b6639/playbooks/roles/l2tp-ipsec/templates/instructions.md.j2)
|
||||
|
||||
This program is free software: you can redistribute it and/or modify it under the terms of the [GNU General Public License](https://www.gnu.org/licenses/gpl.html) as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
|
|
@ -1273,7 +1273,7 @@ sudo ikev2.sh --removeikev2
|
|||
|
||||
## 授权协议
|
||||
|
||||
版权所有 (C) 2016-2023 [Lin Song](https://github.com/hwdsl2) [![View my profile on LinkedIn](https://static.licdn.com/scds/common/u/img/webpromo/btn_viewmy_160x25.png)](https://www.linkedin.com/in/linsongui)
|
||||
版权所有 (C) 2016-2024 [Lin Song](https://github.com/hwdsl2) [![View my profile on LinkedIn](https://static.licdn.com/scds/common/u/img/webpromo/btn_viewmy_160x25.png)](https://www.linkedin.com/in/linsongui)
|
||||
|
||||
[![Creative Commons License](https://i.creativecommons.org/l/by-sa/3.0/88x31.png)](http://creativecommons.org/licenses/by-sa/3.0/)
|
||||
这个项目是以 [知识共享署名-相同方式共享3.0](http://creativecommons.org/licenses/by-sa/3.0/) 许可协议授权。
|
||||
|
|
|
@ -1275,7 +1275,7 @@ To manually remove IKEv2 from the VPN server, but keep the [IPsec/L2TP](clients.
|
|||
|
||||
## License
|
||||
|
||||
Copyright (C) 2016-2023 [Lin Song](https://github.com/hwdsl2) [![View my profile on LinkedIn](https://static.licdn.com/scds/common/u/img/webpromo/btn_viewmy_160x25.png)](https://www.linkedin.com/in/linsongui)
|
||||
Copyright (C) 2016-2024 [Lin Song](https://github.com/hwdsl2) [![View my profile on LinkedIn](https://static.licdn.com/scds/common/u/img/webpromo/btn_viewmy_160x25.png)](https://www.linkedin.com/in/linsongui)
|
||||
|
||||
[![Creative Commons License](https://i.creativecommons.org/l/by-sa/3.0/88x31.png)](http://creativecommons.org/licenses/by-sa/3.0/)
|
||||
This work is licensed under the [Creative Commons Attribution-ShareAlike 3.0 Unported License](http://creativecommons.org/licenses/by-sa/3.0/)
|
||||
|
|
|
@ -178,7 +178,7 @@ openssl passwd -1 '密码1'
|
|||
|
||||
## 授权协议
|
||||
|
||||
版权所有 (C) 2016-2023 [Lin Song](https://github.com/hwdsl2) [![View my profile on LinkedIn](https://static.licdn.com/scds/common/u/img/webpromo/btn_viewmy_160x25.png)](https://www.linkedin.com/in/linsongui)
|
||||
版权所有 (C) 2016-2024 [Lin Song](https://github.com/hwdsl2) [![View my profile on LinkedIn](https://static.licdn.com/scds/common/u/img/webpromo/btn_viewmy_160x25.png)](https://www.linkedin.com/in/linsongui)
|
||||
|
||||
[![Creative Commons License](https://i.creativecommons.org/l/by-sa/3.0/88x31.png)](http://creativecommons.org/licenses/by-sa/3.0/)
|
||||
这个项目是以 [知识共享署名-相同方式共享3.0](http://creativecommons.org/licenses/by-sa/3.0/) 许可协议授权。
|
||||
|
|
|
@ -178,7 +178,7 @@ openssl passwd -1 'password1'
|
|||
|
||||
## License
|
||||
|
||||
Copyright (C) 2016-2023 [Lin Song](https://github.com/hwdsl2) [![View my profile on LinkedIn](https://static.licdn.com/scds/common/u/img/webpromo/btn_viewmy_160x25.png)](https://www.linkedin.com/in/linsongui)
|
||||
Copyright (C) 2016-2024 [Lin Song](https://github.com/hwdsl2) [![View my profile on LinkedIn](https://static.licdn.com/scds/common/u/img/webpromo/btn_viewmy_160x25.png)](https://www.linkedin.com/in/linsongui)
|
||||
|
||||
[![Creative Commons License](https://i.creativecommons.org/l/by-sa/3.0/88x31.png)](http://creativecommons.org/licenses/by-sa/3.0/)
|
||||
This work is licensed under the [Creative Commons Attribution-ShareAlike 3.0 Unported License](http://creativecommons.org/licenses/by-sa/3.0/)
|
||||
|
|
|
@ -143,7 +143,7 @@ apk del fail2ban
|
|||
|
||||
## 授权协议
|
||||
|
||||
版权所有 (C) 2016-2023 [Lin Song](https://github.com/hwdsl2) [![View my profile on LinkedIn](https://static.licdn.com/scds/common/u/img/webpromo/btn_viewmy_160x25.png)](https://www.linkedin.com/in/linsongui)
|
||||
版权所有 (C) 2016-2024 [Lin Song](https://github.com/hwdsl2) [![View my profile on LinkedIn](https://static.licdn.com/scds/common/u/img/webpromo/btn_viewmy_160x25.png)](https://www.linkedin.com/in/linsongui)
|
||||
|
||||
[![Creative Commons License](https://i.creativecommons.org/l/by-sa/3.0/88x31.png)](http://creativecommons.org/licenses/by-sa/3.0/)
|
||||
这个项目是以 [知识共享署名-相同方式共享3.0](http://creativecommons.org/licenses/by-sa/3.0/) 许可协议授权。
|
||||
|
|
|
@ -143,7 +143,7 @@ Reboot your server.
|
|||
|
||||
## License
|
||||
|
||||
Copyright (C) 2016-2023 [Lin Song](https://github.com/hwdsl2) [![View my profile on LinkedIn](https://static.licdn.com/scds/common/u/img/webpromo/btn_viewmy_160x25.png)](https://www.linkedin.com/in/linsongui)
|
||||
Copyright (C) 2016-2024 [Lin Song](https://github.com/hwdsl2) [![View my profile on LinkedIn](https://static.licdn.com/scds/common/u/img/webpromo/btn_viewmy_160x25.png)](https://www.linkedin.com/in/linsongui)
|
||||
|
||||
[![Creative Commons License](https://i.creativecommons.org/l/by-sa/3.0/88x31.png)](http://creativecommons.org/licenses/by-sa/3.0/)
|
||||
This work is licensed under the [Creative Commons Attribution-ShareAlike 3.0 Unported License](http://creativecommons.org/licenses/by-sa/3.0/)
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#
|
||||
# Script to add/update a VPN user for both IPsec/L2TP and Cisco IPsec
|
||||
#
|
||||
# Copyright (C) 2018-2023 Lin Song <linsongui@gmail.com>
|
||||
# Copyright (C) 2018-2024 Lin Song <linsongui@gmail.com>
|
||||
#
|
||||
# This work is licensed under the Creative Commons Attribution-ShareAlike 3.0
|
||||
# Unported License: http://creativecommons.org/licenses/by-sa/3.0/
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#
|
||||
# Script to delete a VPN user for both IPsec/L2TP and Cisco IPsec
|
||||
#
|
||||
# Copyright (C) 2018-2023 Lin Song <linsongui@gmail.com>
|
||||
# Copyright (C) 2018-2024 Lin Song <linsongui@gmail.com>
|
||||
#
|
||||
# This work is licensed under the Creative Commons Attribution-ShareAlike 3.0
|
||||
# Unported License: http://creativecommons.org/licenses/by-sa/3.0/
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
# The latest version of this script is available at:
|
||||
# https://github.com/hwdsl2/setup-ipsec-vpn
|
||||
#
|
||||
# Copyright (C) 2022-2023 Lin Song <linsongui@gmail.com>
|
||||
# Copyright (C) 2022-2024 Lin Song <linsongui@gmail.com>
|
||||
#
|
||||
# This work is licensed under the Creative Commons Attribution-ShareAlike 3.0
|
||||
# Unported License: http://creativecommons.org/licenses/by-sa/3.0/
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#
|
||||
# Script to enable or disable IKEv2-only mode
|
||||
#
|
||||
# Copyright (C) 2022-2023 Lin Song <linsongui@gmail.com>
|
||||
# Copyright (C) 2022-2024 Lin Song <linsongui@gmail.com>
|
||||
#
|
||||
# This work is licensed under the Creative Commons Attribution-ShareAlike 3.0
|
||||
# Unported License: http://creativecommons.org/licenses/by-sa/3.0/
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
# The latest version of this script is available at:
|
||||
# https://github.com/hwdsl2/setup-ipsec-vpn
|
||||
#
|
||||
# Copyright (C) 2020-2023 Lin Song <linsongui@gmail.com>
|
||||
# Copyright (C) 2020-2024 Lin Song <linsongui@gmail.com>
|
||||
#
|
||||
# This work is licensed under the Creative Commons Attribution-ShareAlike 3.0
|
||||
# Unported License: http://creativecommons.org/licenses/by-sa/3.0/
|
||||
|
@ -96,8 +96,8 @@ EOF
|
|||
esac
|
||||
if [ "$os_type" = "alpine" ]; then
|
||||
os_ver=$(. /etc/os-release && printf '%s' "$VERSION_ID" | cut -d '.' -f 1,2)
|
||||
if [ "$os_ver" != "3.17" ] && [ "$os_ver" != "3.18" ]; then
|
||||
exiterr "This script only supports Alpine Linux 3.17/3.18."
|
||||
if [ "$os_ver" != "3.18" ] && [ "$os_ver" != "3.19" ]; then
|
||||
exiterr "This script only supports Alpine Linux 3.18/3.19."
|
||||
fi
|
||||
else
|
||||
os_ver=$(sed 's/\..*//' /etc/debian_version | tr -dc 'A-Za-z0-9')
|
||||
|
@ -157,7 +157,7 @@ confirm_or_abort() {
|
|||
show_header() {
|
||||
cat <<'EOF'
|
||||
|
||||
IKEv2 Script Copyright (c) 2020-2023 Lin Song 13 Dec 2023
|
||||
IKEv2 Script Copyright (c) 2020-2024 Lin Song 3 Feb 2024
|
||||
|
||||
EOF
|
||||
}
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#
|
||||
# Script to update VPN users for both IPsec/L2TP and Cisco IPsec
|
||||
#
|
||||
# Copyright (C) 2018-2023 Lin Song <linsongui@gmail.com>
|
||||
# Copyright (C) 2018-2024 Lin Song <linsongui@gmail.com>
|
||||
#
|
||||
# This work is licensed under the Creative Commons Attribution-ShareAlike 3.0
|
||||
# Unported License: http://creativecommons.org/licenses/by-sa/3.0/
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
# The latest version of this script is available at:
|
||||
# https://github.com/hwdsl2/setup-ipsec-vpn
|
||||
#
|
||||
# Copyright (C) 2021-2023 Lin Song <linsongui@gmail.com>
|
||||
# Copyright (C) 2021-2024 Lin Song <linsongui@gmail.com>
|
||||
#
|
||||
# This work is licensed under the Creative Commons Attribution-ShareAlike 3.0
|
||||
# Unported License: http://creativecommons.org/licenses/by-sa/3.0/
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
# The latest version of this script is available at:
|
||||
# https://github.com/hwdsl2/setup-ipsec-vpn
|
||||
#
|
||||
# Copyright (C) 2021-2023 Lin Song <linsongui@gmail.com>
|
||||
# Copyright (C) 2021-2024 Lin Song <linsongui@gmail.com>
|
||||
#
|
||||
# This work is licensed under the Creative Commons Attribution-ShareAlike 3.0
|
||||
# Unported License: http://creativecommons.org/licenses/by-sa/3.0/
|
||||
|
@ -90,8 +90,8 @@ EOF
|
|||
esac
|
||||
if [ "$os_type" = "alpine" ]; then
|
||||
os_ver=$(. /etc/os-release && printf '%s' "$VERSION_ID" | cut -d '.' -f 1,2)
|
||||
if [ "$os_ver" != "3.17" ] && [ "$os_ver" != "3.18" ]; then
|
||||
exiterr "This script only supports Alpine Linux 3.17/3.18."
|
||||
if [ "$os_ver" != "3.18" ] && [ "$os_ver" != "3.19" ]; then
|
||||
exiterr "This script only supports Alpine Linux 3.18/3.19."
|
||||
fi
|
||||
else
|
||||
os_ver=$(sed 's/\..*//' /etc/debian_version | tr -dc 'A-Za-z0-9')
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
# The latest version of this script is available at:
|
||||
# https://github.com/hwdsl2/setup-ipsec-vpn
|
||||
#
|
||||
# Copyright (C) 2021-2023 Lin Song <linsongui@gmail.com>
|
||||
# Copyright (C) 2021-2024 Lin Song <linsongui@gmail.com>
|
||||
#
|
||||
# This work is licensed under the Creative Commons Attribution-ShareAlike 3.0
|
||||
# Unported License: http://creativecommons.org/licenses/by-sa/3.0/
|
||||
|
@ -51,8 +51,8 @@ check_os() {
|
|||
;;
|
||||
esac
|
||||
os_ver=$(. /etc/os-release && printf '%s' "$VERSION_ID" | cut -d '.' -f 1,2)
|
||||
if [ "$os_ver" != "3.17" ] && [ "$os_ver" != "3.18" ]; then
|
||||
exiterr "This script only supports Alpine Linux 3.17/3.18."
|
||||
if [ "$os_ver" != "3.18" ] && [ "$os_ver" != "3.19" ]; then
|
||||
exiterr "This script only supports Alpine Linux 3.18/3.19."
|
||||
fi
|
||||
}
|
||||
|
||||
|
@ -146,8 +146,8 @@ install_pkgs() {
|
|||
bigecho "Installing required packages..."
|
||||
(
|
||||
set -x
|
||||
apk add -U -q bash bind-tools coreutils openssl wget iproute2 sed grep \
|
||||
libcap-ng libcurl libevent linux-pam musl nspr nss nss-tools \
|
||||
apk add -U -q bash bind-tools coreutils openssl wget iptables iproute2 \
|
||||
sed grep libcap-ng libcurl libevent linux-pam musl nspr nss nss-tools \
|
||||
bison flex gcc make libc-dev bsd-compat-headers linux-pam-dev nss-dev \
|
||||
libcap-ng-dev libevent-dev curl-dev nspr-dev uuidgen openrc
|
||||
) || exiterr2
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
# The latest version of this script is available at:
|
||||
# https://github.com/hwdsl2/setup-ipsec-vpn
|
||||
#
|
||||
# Copyright (C) 2020-2023 Lin Song <linsongui@gmail.com>
|
||||
# Copyright (C) 2020-2024 Lin Song <linsongui@gmail.com>
|
||||
#
|
||||
# This work is licensed under the Creative Commons Attribution-ShareAlike 3.0
|
||||
# Unported License: http://creativecommons.org/licenses/by-sa/3.0/
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
# The latest version of this script is available at:
|
||||
# https://github.com/hwdsl2/setup-ipsec-vpn
|
||||
#
|
||||
# Copyright (C) 2016-2023 Lin Song <linsongui@gmail.com>
|
||||
# Copyright (C) 2016-2024 Lin Song <linsongui@gmail.com>
|
||||
#
|
||||
# This work is licensed under the Creative Commons Attribution-ShareAlike 3.0
|
||||
# Unported License: http://creativecommons.org/licenses/by-sa/3.0/
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
# The latest version of this script is available at:
|
||||
# https://github.com/hwdsl2/setup-ipsec-vpn
|
||||
#
|
||||
# Copyright (C) 2016-2023 Lin Song <linsongui@gmail.com>
|
||||
# Copyright (C) 2016-2024 Lin Song <linsongui@gmail.com>
|
||||
#
|
||||
# This work is licensed under the Creative Commons Attribution-ShareAlike 3.0
|
||||
# Unported License: http://creativecommons.org/licenses/by-sa/3.0/
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
# The latest version of this script is available at:
|
||||
# https://github.com/hwdsl2/setup-ipsec-vpn
|
||||
#
|
||||
# Copyright (C) 2021-2023 Lin Song <linsongui@gmail.com>
|
||||
# Copyright (C) 2021-2024 Lin Song <linsongui@gmail.com>
|
||||
#
|
||||
# This work is licensed under the Creative Commons Attribution-ShareAlike 3.0
|
||||
# Unported License: http://creativecommons.org/licenses/by-sa/3.0/
|
||||
|
@ -122,8 +122,8 @@ EOF
|
|||
esac
|
||||
if [ "$os_type" = "alpine" ]; then
|
||||
os_ver=$(. /etc/os-release && printf '%s' "$VERSION_ID" | cut -d '.' -f 1,2)
|
||||
if [ "$os_ver" != "3.17" ] && [ "$os_ver" != "3.18" ]; then
|
||||
exiterr "This script only supports Alpine Linux 3.17/3.18."
|
||||
if [ "$os_ver" != "3.18" ] && [ "$os_ver" != "3.19" ]; then
|
||||
exiterr "This script only supports Alpine Linux 3.18/3.19."
|
||||
fi
|
||||
else
|
||||
os_ver=$(sed 's/\..*//' /etc/debian_version | tr -dc 'A-Za-z0-9')
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
# The latest version of this script is available at:
|
||||
# https://github.com/hwdsl2/setup-ipsec-vpn
|
||||
#
|
||||
# Copyright (C) 2021-2023 Lin Song <linsongui@gmail.com>
|
||||
# Copyright (C) 2021-2024 Lin Song <linsongui@gmail.com>
|
||||
#
|
||||
# This work is licensed under the Creative Commons Attribution-ShareAlike 3.0
|
||||
# Unported License: http://creativecommons.org/licenses/by-sa/3.0/
|
||||
|
@ -70,8 +70,8 @@ check_os() {
|
|||
;;
|
||||
esac
|
||||
os_ver=$(. /etc/os-release && printf '%s' "$VERSION_ID" | cut -d '.' -f 1,2)
|
||||
if [ "$os_ver" != "3.17" ] && [ "$os_ver" != "3.18" ]; then
|
||||
exiterr "This script only supports Alpine Linux 3.17/3.18."
|
||||
if [ "$os_ver" != "3.18" ] && [ "$os_ver" != "3.19" ]; then
|
||||
exiterr "This script only supports Alpine Linux 3.18/3.19."
|
||||
fi
|
||||
}
|
||||
|
||||
|
@ -165,7 +165,7 @@ install_setup_pkgs() {
|
|||
bigecho "Installing packages required for setup..."
|
||||
(
|
||||
set -x
|
||||
apk add -U -q bash bind-tools coreutils openssl wget iproute2 sed grep
|
||||
apk add -U -q bash bind-tools coreutils openssl wget iptables iproute2 sed grep
|
||||
) || exiterr2
|
||||
}
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
# The latest version of this script is available at:
|
||||
# https://github.com/hwdsl2/setup-ipsec-vpn
|
||||
#
|
||||
# Copyright (C) 2020-2023 Lin Song <linsongui@gmail.com>
|
||||
# Copyright (C) 2020-2024 Lin Song <linsongui@gmail.com>
|
||||
#
|
||||
# This work is licensed under the Creative Commons Attribution-ShareAlike 3.0
|
||||
# Unported License: http://creativecommons.org/licenses/by-sa/3.0/
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
# The latest version of this script is available at:
|
||||
# https://github.com/hwdsl2/setup-ipsec-vpn
|
||||
#
|
||||
# Copyright (C) 2015-2023 Lin Song <linsongui@gmail.com>
|
||||
# Copyright (C) 2015-2024 Lin Song <linsongui@gmail.com>
|
||||
# Based on the work of Thomas Sarlandie (Copyright 2012)
|
||||
#
|
||||
# This work is licensed under the Creative Commons Attribution-ShareAlike 3.0
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
# The latest version of this script is available at:
|
||||
# https://github.com/hwdsl2/setup-ipsec-vpn
|
||||
#
|
||||
# Copyright (C) 2014-2023 Lin Song <linsongui@gmail.com>
|
||||
# Copyright (C) 2014-2024 Lin Song <linsongui@gmail.com>
|
||||
# Based on the work of Thomas Sarlandie (Copyright 2012)
|
||||
#
|
||||
# This work is licensed under the Creative Commons Attribution-ShareAlike 3.0
|
||||
|
|
Loading…
Reference in New Issue
Block a user