Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] master from hwdsl2:master #1

Open
wants to merge 1,213 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1213 commits
Select commit Hold shift + click to select a range
836a671
Update docs
hwdsl2 Jul 6, 2022
c1630af
Remove Debian 9
hwdsl2 Jul 7, 2022
8ca05e1
Update Azure template
hwdsl2 Jul 7, 2022
f66e809
Update docs
hwdsl2 Jul 8, 2022
1f62f28
Update docs
hwdsl2 Jul 8, 2022
5efff22
Update IKEv2 script
hwdsl2 Jul 10, 2022
2077b5a
Update tests
hwdsl2 Jul 10, 2022
e9b38c8
Update docs
hwdsl2 Jul 14, 2022
baccd5a
Update docs
hwdsl2 Jul 18, 2022
6b6ad1c
Update IKEv2 script
hwdsl2 Jul 27, 2022
a0d0c42
Update docs
hwdsl2 Jul 29, 2022
066cb14
Cleanup
hwdsl2 Jul 30, 2022
10d5426
Add CentOS 9
hwdsl2 Jul 30, 2022
6ca52bf
Update docs
hwdsl2 Jul 30, 2022
200da23
Add Oracle Linux 9
hwdsl2 Jul 30, 2022
3c7273e
Update docs
hwdsl2 Jul 30, 2022
9088681
Update tests
hwdsl2 Jul 31, 2022
0fe30b0
Update tests
hwdsl2 Jul 31, 2022
95be4b8
Fix NSS config
hwdsl2 Aug 1, 2022
44b39cb
Update README.md with note about external firewalls (#1209)
Cordo-van-Saviour Aug 5, 2022
d22b32d
Update docs
hwdsl2 Aug 5, 2022
1dbf897
Cleanup
hwdsl2 Aug 10, 2022
8973b8d
Update tests
hwdsl2 Aug 10, 2022
e2f211c
Improve OS detection
hwdsl2 Aug 11, 2022
4995ec0
Improve OS support
hwdsl2 Aug 11, 2022
6a87220
Update IKEv2 script
hwdsl2 Aug 11, 2022
a1e761a
Update docs
hwdsl2 Aug 11, 2022
71f9d97
Update docs
hwdsl2 Aug 16, 2022
5d46923
Update docs
hwdsl2 Aug 16, 2022
5525c40
Update docs
hwdsl2 Aug 27, 2022
56078b0
Add an option to skip IKEv2 setup
hwdsl2 Aug 27, 2022
d2e9b5f
Cleanup
hwdsl2 Aug 28, 2022
2d4cf2c
Update docs
hwdsl2 Aug 28, 2022
05d1e62
Update docs
hwdsl2 Aug 29, 2022
b4770c4
Update docs
hwdsl2 Aug 30, 2022
0bb9d90
Enable TCP BBR
hwdsl2 Sep 7, 2022
6a525c6
Optimize TCP buffers
hwdsl2 Sep 8, 2022
db54638
Check kernel version
hwdsl2 Sep 8, 2022
949790a
Update docs
hwdsl2 Sep 8, 2022
098a6b4
Update IKEv2 script
hwdsl2 Sep 10, 2022
c5df950
Improve VPN setup
hwdsl2 Sep 10, 2022
4202a88
Update docs
hwdsl2 Sep 10, 2022
1edac55
Update tests
hwdsl2 Sep 10, 2022
8912e6e
Update IKEv2 script
hwdsl2 Sep 11, 2022
608fca1
Update docs
hwdsl2 Sep 11, 2022
9e31357
Update tests
hwdsl2 Sep 11, 2022
3101610
Update docs
hwdsl2 Sep 16, 2022
f248738
Update docs
hwdsl2 Sep 16, 2022
7827f75
Update docs
hwdsl2 Sep 17, 2022
6ba4618
Update docs
hwdsl2 Sep 23, 2022
32faed4
Improve IP check
hwdsl2 Sep 24, 2022
cc99e18
Cleanup
hwdsl2 Sep 24, 2022
28a7b59
Update docs
hwdsl2 Sep 24, 2022
c87dfdb
Improve VPN setup
hwdsl2 Sep 25, 2022
8ae26b8
Update docs
hwdsl2 Sep 25, 2022
025387d
Improve VPN ciphers
hwdsl2 Sep 30, 2022
4b15a5d
Update docs
hwdsl2 Sep 30, 2022
6e59682
Improve VPN ciphers
hwdsl2 Sep 30, 2022
3bf17a7
Improve interface check
hwdsl2 Oct 5, 2022
bd291e9
Cleanup
hwdsl2 Oct 7, 2022
ed35961
Cleanup
hwdsl2 Oct 10, 2022
e12ffa2
Update docs
hwdsl2 Oct 10, 2022
194d188
Update docs
hwdsl2 Oct 14, 2022
ad2883f
Update tests
hwdsl2 Oct 14, 2022
0d4934c
Update docs
hwdsl2 Oct 15, 2022
3dc675b
Add client validity option
hwdsl2 Oct 16, 2022
24bc891
Update docs
hwdsl2 Oct 16, 2022
2ce20e7
Update docs
hwdsl2 Oct 17, 2022
fef608a
Update IKEv2 script
hwdsl2 Oct 19, 2022
f82e65d
Update docs
hwdsl2 Oct 20, 2022
28d1f49
New Libreswan version
hwdsl2 Oct 21, 2022
d1da04b
New Libreswan version
hwdsl2 Oct 21, 2022
ed9eb51
Update docs
hwdsl2 Oct 21, 2022
1b5030b
Update tests
hwdsl2 Oct 21, 2022
780f815
Improve VPN setup
hwdsl2 Oct 22, 2022
4174ffa
Improve VPN setup
hwdsl2 Oct 23, 2022
5732125
Update docs
hwdsl2 Oct 23, 2022
2bd37cc
Cleanup
hwdsl2 Oct 23, 2022
19d4ea0
Update docs
hwdsl2 Oct 23, 2022
4f8a19d
Update OS check
hwdsl2 Oct 24, 2022
5943b2a
Update docs
hwdsl2 Oct 29, 2022
117d76b
Update docs
hwdsl2 Oct 29, 2022
cbd356a
Update docs
hwdsl2 Oct 29, 2022
edd05df
Update IKEv2 script
hwdsl2 Oct 30, 2022
46640c0
Update docs
hwdsl2 Nov 6, 2022
4835154
Update docs
hwdsl2 Nov 6, 2022
f558f26
Update docs
hwdsl2 Nov 8, 2022
9188cd5
Update docs
hwdsl2 Nov 10, 2022
94e005c
Update docs
hwdsl2 Nov 14, 2022
fc16499
Update docs
hwdsl2 Nov 19, 2022
651c404
Improve sysctl settings
hwdsl2 Nov 20, 2022
8817e6f
Update docs
hwdsl2 Nov 26, 2022
fad9e0d
Update IKEv2 setup log
hwdsl2 Dec 2, 2022
fec1b7c
Update IKEv2 script
hwdsl2 Dec 2, 2022
217c3af
Update docs
hwdsl2 Dec 17, 2022
8f76ffb
Update docs
hwdsl2 Dec 19, 2022
46b55ee
Update docs
hwdsl2 Dec 24, 2022
3d05e96
Update docs
hwdsl2 Jan 4, 2023
2623d1b
Update tests
hwdsl2 Jan 4, 2023
c356a75
Update docs
hwdsl2 Jan 5, 2023
45a2653
Update tests
hwdsl2 Jan 5, 2023
3bb649e
Update docs
hwdsl2 Jan 7, 2023
6337e56
Update docs
hwdsl2 Jan 13, 2023
dc32e28
Cleanup
hwdsl2 Jan 13, 2023
7079c6b
Fix line endings in clients.md (#1321)
felixstorm-c4a8 Feb 11, 2023
c846309
Update docs
hwdsl2 Feb 11, 2023
3f12b95
Update Alpine Linux versions
hwdsl2 Feb 12, 2023
52677ee
Update tests
hwdsl2 Feb 12, 2023
72db1eb
Update docs
hwdsl2 Feb 12, 2023
f3bd730
Update docs
hwdsl2 Feb 12, 2023
7fa002f
Update docs
hwdsl2 Feb 12, 2023
1fb5c5b
New Libreswan version
hwdsl2 Mar 1, 2023
1a79a5c
New Libreswan version
hwdsl2 Mar 1, 2023
13e8e94
Update docs
hwdsl2 Mar 1, 2023
8fb10bc
Update tests
hwdsl2 Mar 1, 2023
2039f91
New libnss3 version
hwdsl2 Mar 2, 2023
631712a
Update tests
hwdsl2 Mar 2, 2023
f69a225
Update docs
hwdsl2 Mar 19, 2023
9184ec7
Update tests
hwdsl2 Mar 26, 2023
7e238cc
Update docs
hwdsl2 Apr 9, 2023
7ad7683
Update docs
hwdsl2 Apr 9, 2023
9f7530f
Update tests
hwdsl2 Apr 22, 2023
8581057
New Libreswan version
hwdsl2 May 5, 2023
efcfbe8
New Libreswan version
hwdsl2 May 5, 2023
7cf8287
Update Azure template
hwdsl2 May 5, 2023
8261d4d
Update docs
hwdsl2 May 5, 2023
d343401
Update tests
hwdsl2 May 5, 2023
22838b7
Fix for Raspberry Pi
hwdsl2 May 20, 2023
4c5f4e8
Update OS check
hwdsl2 May 22, 2023
b929ee4
Update docs
hwdsl2 May 23, 2023
81366c8
Update docs
hwdsl2 Jun 7, 2023
67e71a5
Add Debian 12
hwdsl2 Jun 12, 2023
659e18d
Update tests
hwdsl2 Jun 12, 2023
2f129f1
Update docs
hwdsl2 Jun 14, 2023
e79e641
Update OS check
hwdsl2 Jun 15, 2023
70d6ed4
Update tests
hwdsl2 Jun 15, 2023
2e4f856
Update docs
hwdsl2 Jun 22, 2023
48bc7ce
Update docs
hwdsl2 Jul 1, 2023
f9a5a5a
Update for Mac OS X Ventura (#1421)
willisweb Jul 14, 2023
8a06d6d
Update docs
hwdsl2 Jul 14, 2023
0318a94
Update docs
hwdsl2 Jul 15, 2023
cafe673
Update docs
hwdsl2 Jul 21, 2023
be3fed2
Update docs
hwdsl2 Jul 21, 2023
3f10e2e
Update docs
hwdsl2 Jul 28, 2023
ef24c47
Re-add AWS Deployment Template (#1427)
scottpedia Jul 29, 2023
3e343f9
Update docs
hwdsl2 Jul 29, 2023
a794200
Update docs
hwdsl2 Aug 11, 2023
16f5a1d
Update Alpine Linux versions
hwdsl2 Aug 11, 2023
0b5b415
Update tests
hwdsl2 Aug 11, 2023
d522d42
New Libreswan version
hwdsl2 Aug 11, 2023
c8bb2bc
New Libreswan version
hwdsl2 Aug 11, 2023
58efbe1
Update tests
hwdsl2 Aug 11, 2023
7e85c81
Update docs
hwdsl2 Aug 11, 2023
f084bcb
Update docs
hwdsl2 Aug 16, 2023
a0dc2dd
Update docs
hwdsl2 Aug 17, 2023
49c974f
Cloudformation template improvements (#1435)
scottpedia Aug 18, 2023
5a4a97b
Update docs
hwdsl2 Aug 18, 2023
557f13f
Update Cloudformation template (#1446)
scottpedia Aug 19, 2023
b062dba
Update docs
hwdsl2 Aug 19, 2023
a95b63e
Update docs
hwdsl2 Aug 20, 2023
7c133f1
Update docs
hwdsl2 Aug 20, 2023
11803db
Update AWS template (#1447)
scottpedia Aug 21, 2023
b4a51fc
Cleanup
hwdsl2 Aug 21, 2023
f86c1ef
Update docs
hwdsl2 Aug 26, 2023
4590890
Update AWS template (#1463)
scottpedia Sep 28, 2023
e3a886b
Update docs
hwdsl2 Sep 28, 2023
b5f9d02
Update docs
hwdsl2 Oct 1, 2023
ef57d57
Update docs
hwdsl2 Oct 1, 2023
664c107
Update docs (#1484)
ashang Nov 7, 2023
8cbbe1c
Cleanup
hwdsl2 Nov 7, 2023
2369e7f
Update docs
hwdsl2 Nov 7, 2023
5dbb6e2
Update docs
hwdsl2 Nov 8, 2023
9622f72
Update docs
hwdsl2 Nov 11, 2023
32d09c6
Update docs
hwdsl2 Nov 13, 2023
dd6f260
Update docs
hwdsl2 Nov 19, 2023
f39c7fd
Update tests
hwdsl2 Nov 19, 2023
5adab8c
Update docs
hwdsl2 Nov 20, 2023
230b628
Update Cloudformation template (#1490)
scottpedia Nov 21, 2023
82cb3f8
Update docs
hwdsl2 Nov 21, 2023
7573090
Update docs
hwdsl2 Nov 25, 2023
b43e975
Update docs
hwdsl2 Nov 28, 2023
f206139
Update docs
hwdsl2 Nov 30, 2023
5a9402b
Improve VPN ciphers
hwdsl2 Dec 10, 2023
6e16b98
Update docs
hwdsl2 Dec 10, 2023
9268ad2
Update IKEv2 script
hwdsl2 Dec 13, 2023
18d5144
Update docs
hwdsl2 Dec 13, 2023
b7b3fc3
Update docs
hwdsl2 Dec 19, 2023
5bb63da
Update Alpine Linux versions
hwdsl2 Feb 3, 2024
198bd98
Update year
hwdsl2 Feb 3, 2024
9d2939d
Update tests
hwdsl2 Feb 4, 2024
d56472d
Update docs
hwdsl2 Feb 24, 2024
f5acbdf
Update docs
hwdsl2 Feb 25, 2024
7ee03da
New Libreswan version
hwdsl2 Mar 16, 2024
3b24405
New Libreswan version
hwdsl2 Mar 16, 2024
7bd9e3e
Update tests
hwdsl2 Mar 16, 2024
127759a
Update docs
hwdsl2 Mar 16, 2024
3ec000e
Update docs
hwdsl2 Mar 16, 2024
e5eabbe
Update docs
hwdsl2 Mar 17, 2024
4c6f37e
Update docs
hwdsl2 Mar 21, 2024
25670f3
Update IKEv2 script
hwdsl2 Apr 11, 2024
1442e9f
Update OS support
hwdsl2 Apr 14, 2024
828bb86
Update tests
hwdsl2 Apr 14, 2024
bf0edf5
Update OS support
hwdsl2 Apr 14, 2024
017a226
Update docs
hwdsl2 Apr 18, 2024
49ab3b6
New Libreswan version
hwdsl2 Apr 18, 2024
ca86194
New Libreswan version
hwdsl2 Apr 18, 2024
a57082a
Update tests
hwdsl2 Apr 18, 2024
2748312
Update docs
hwdsl2 Apr 18, 2024
4ee9911
Update CloudFormation template (#1555)
Saniewski Apr 23, 2024
7447f4b
Update docs
hwdsl2 Apr 23, 2024
b58e65e
Add Ubuntu 24.04
hwdsl2 Apr 27, 2024
1b769fb
Update docs
hwdsl2 Apr 27, 2024
eb75915
Update AWS template
hwdsl2 Apr 28, 2024
028d6dc
Update docs
hwdsl2 Apr 28, 2024
30a46a0
Update tests
hwdsl2 Apr 28, 2024
bf965cf
Fix for CentOS 9
hwdsl2 May 2, 2024
6f2efd3
New Libreswan version
hwdsl2 May 3, 2024
b5d19d7
New Libreswan version
hwdsl2 May 3, 2024
2ba4fe3
Update tests
hwdsl2 May 3, 2024
0b1eaf6
Update docs
hwdsl2 May 3, 2024
bea8597
Add new option
hwdsl2 May 4, 2024
a424108
Update docs
hwdsl2 May 4, 2024
d108c4a
Update tests
hwdsl2 May 18, 2024
1093b03
Update docs
hwdsl2 Jun 6, 2024
78e8957
Update tests
hwdsl2 Jun 6, 2024
8339f72
Update Azure script
hwdsl2 Jun 23, 2024
3a3c28b
Update tests
hwdsl2 Jun 23, 2024
4d01011
Update docs
hwdsl2 Jun 24, 2024
bb0c8ea
Update AWS template
hwdsl2 Jul 28, 2024
65fc2ef
Update docs
hwdsl2 Jul 28, 2024
721ea33
Update docs
hwdsl2 Jul 28, 2024
9a625db
Update OS support
hwdsl2 Jul 28, 2024
99f684f
Update tests
hwdsl2 Jul 28, 2024
d05d769
Update docs
hwdsl2 Jul 29, 2024
2974f8b
Update docs
hwdsl2 Aug 5, 2024
2e069ea
Update docs
hwdsl2 Sep 7, 2024
fbdd75e
Update docs
hwdsl2 Sep 20, 2024
56833ec
Update docs
hwdsl2 Oct 10, 2024
21ba115
New Libreswan version
hwdsl2 Oct 15, 2024
7bd6872
New Libreswan version
hwdsl2 Oct 15, 2024
9442981
Update docs
hwdsl2 Oct 15, 2024
2247387
Update tests
hwdsl2 Oct 15, 2024
2991302
Improve nftables rules
hwdsl2 Oct 16, 2024
97189ac
Cleanup
hwdsl2 Oct 16, 2024
b895650
Update docs
hwdsl2 Oct 17, 2024
e2cad5c
Update docs
hwdsl2 Nov 15, 2024
963902e
Update docs
hwdsl2 Nov 15, 2024
b60c232
Update docs
hwdsl2 Nov 19, 2024
02ed636
Update docs
hwdsl2 Nov 26, 2024
ea64a36
Update docs
hwdsl2 Dec 8, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions .github/ISSUE_TEMPLATE/00-bug-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
---
name: Bug report
about: Tell us about a problem you are experiencing
title: ''
labels: ''
assignees: ''

---

**Checklist**

- [ ] I read the [README](https://github.com/hwdsl2/setup-ipsec-vpn/blob/master/README.md)
- [ ] I read the [Important notes](https://github.com/hwdsl2/setup-ipsec-vpn/blob/master/README.md#important-notes)
- [ ] I followed instructions to [configure VPN clients](https://github.com/hwdsl2/setup-ipsec-vpn/blob/master/README.md#next-steps)
- [ ] I checked [IKEv1 troubleshooting](https://github.com/hwdsl2/setup-ipsec-vpn/blob/master/docs/clients.md#ikev1-troubleshooting), [IKEv2 troubleshooting](https://github.com/hwdsl2/setup-ipsec-vpn/blob/master/docs/ikev2-howto.md#ikev2-troubleshooting) and [VPN status](https://github.com/hwdsl2/setup-ipsec-vpn/blob/master/docs/clients.md#check-logs-and-vpn-status)
- [ ] I searched existing [Issues](https://github.com/hwdsl2/setup-ipsec-vpn/issues?q=is%3Aissue)
- [ ] This bug is about the VPN setup scripts, and not IPsec VPN itself

<!---
If you found a reproducible bug for the IPsec VPN, open a bug report at https://github.com/libreswan/libreswan. Ask VPN-related questions on the [Libreswan](https://lists.libreswan.org/mailman/listinfo/swan) or [strongSwan](https://lists.strongswan.org/mailman/listinfo/users) users mailing list, or search e.g. [Stack Overflow](https://stackoverflow.com/questions/tagged/vpn).
--->

**Describe the issue**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:

1. ...
2. ...

**Expected behavior**
A clear and concise description of what you expected to happen.

**Logs**
[Check logs and VPN status](https://github.com/hwdsl2/setup-ipsec-vpn/blob/master/docs/clients.md#check-logs-and-vpn-status), and add error logs to help explain the problem, if applicable.

**Server (please complete the following information)**
- OS: [e.g. Debian 11]
- Hosting provider (if applicable): [e.g. GCP, AWS]

**Client (please complete the following information)**
- Device: [e.g. iPhone 12]
- OS: [e.g. iOS 15]
- VPN mode: [IPsec/L2TP, IPsec/XAuth ("Cisco IPsec") or IKEv2]

**Additional context**
Add any other context about the problem here.
48 changes: 48 additions & 0 deletions .github/ISSUE_TEMPLATE/10-bug-report-zh.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
---
name: 错误报告
about: 请使用这个模板来提交 bug
title: ''
labels: ''
assignees: ''

---

**任务列表**

- [ ] 我已阅读 [自述文件](https://github.com/hwdsl2/setup-ipsec-vpn/blob/master/README-zh.md)
- [ ] 我已阅读 [重要提示](https://github.com/hwdsl2/setup-ipsec-vpn/blob/master/README-zh.md#重要提示)
- [ ] 我已按照说明 [配置 VPN 客户端](https://github.com/hwdsl2/setup-ipsec-vpn/blob/master/README-zh.md#下一步)
- [ ] 我检查了 [IKEv1 故障排除](https://github.com/hwdsl2/setup-ipsec-vpn/blob/master/docs/clients-zh.md#ikev1-故障排除),[IKEv2 故障排除](https://github.com/hwdsl2/setup-ipsec-vpn/blob/master/docs/ikev2-howto-zh.md#ikev2-故障排除) 以及 [VPN 状态](https://github.com/hwdsl2/setup-ipsec-vpn/blob/master/docs/clients-zh.md#检查日志及-vpn-状态)
- [ ] 我搜索了已有的 [Issues](https://github.com/hwdsl2/setup-ipsec-vpn/issues?q=is%3Aissue)
- [ ] 这个 bug 是关于 VPN 安装脚本,而不是 IPsec VPN 本身

<!---
如果你发现了 IPsec VPN 的一个可重复的程序漏洞,请在 https://github.com/libreswan/libreswan 提交一个错误报告。VPN 的相关问题可在 [Libreswan](https://lists.libreswan.org/mailman/listinfo/swan) 或 [strongSwan](https://lists.strongswan.org/mailman/listinfo/users) 用户邮件列表提问,或者搜索比如 [Stack Overflow](https://stackoverflow.com/questions/tagged/vpn) 等网站。
--->

**问题描述**
使用清楚简明的语言描述这个 bug。

**重现步骤**
重现该 bug 的步骤:

1. ...
2. ...

**期待的正确结果**
简要地描述你期望的正确结果。

**日志**
[检查日志及 VPN 状态](https://github.com/hwdsl2/setup-ipsec-vpn/blob/master/docs/clients-zh.md#检查日志及-vpn-状态),并添加错误日志以帮助解释该问题(如果适用)。

**服务器信息(请填写以下信息)**
- 操作系统: [比如 Debian 11]
- 服务提供商(如果适用): [比如 GCP, AWS]

**客户端信息(请填写以下信息)**
- 设备: [比如 iPhone 12]
- 操作系统: [比如 iOS 15]
- VPN 模式: [IPsec/L2TP, IPsec/XAuth ("Cisco IPsec") 或 IKEv2]

**其它信息**
添加关于该 bug 的其它信息。
26 changes: 26 additions & 0 deletions .github/ISSUE_TEMPLATE/20-enhancement-request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
name: Enhancement request
about: Suggest an improvement for this project
title: ''
labels: ''
assignees: ''

---

**Checklist**

- [ ] I searched existing [Issues](https://github.com/hwdsl2/setup-ipsec-vpn/issues?q=is%3Aissue), and did not find a similar enhancement request
- [ ] This enhancement request is about the VPN setup scripts, and not IPsec VPN itself
- [ ] I read the [README](https://github.com/hwdsl2/setup-ipsec-vpn/blob/master/README.md)
- [ ] I read the [Important notes](https://github.com/hwdsl2/setup-ipsec-vpn/blob/master/README.md#important-notes)
- [ ] I followed instructions to [configure VPN clients](https://github.com/hwdsl2/setup-ipsec-vpn/blob/master/README.md#next-steps)
- [ ] I checked [IKEv1 troubleshooting](https://github.com/hwdsl2/setup-ipsec-vpn/blob/master/docs/clients.md#ikev1-troubleshooting), [IKEv2 troubleshooting](https://github.com/hwdsl2/setup-ipsec-vpn/blob/master/docs/ikev2-howto.md#ikev2-troubleshooting) and [VPN status](https://github.com/hwdsl2/setup-ipsec-vpn/blob/master/docs/clients.md#check-logs-and-vpn-status)

**Describe the enhancement request**
A clear and concise description of your enhancement request.

**Is your enhancement request related to a problem? Please describe.**
(If applicable) A clear and concise description of what the problem is.

**Additional context**
Add any other context about the enhancement request here.
26 changes: 26 additions & 0 deletions .github/ISSUE_TEMPLATE/30-enhancement-request-zh.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
name: 改进建议
about: 请使用这个模板来提交改进建议
title: ''
labels: ''
assignees: ''

---

**任务列表**

- [ ] 我搜索了已有的 [Issues](https://github.com/hwdsl2/setup-ipsec-vpn/issues?q=is%3Aissue),没有找到类似的改进建议
- [ ] 这个改进建议是关于 VPN 安装脚本,而不是 IPsec VPN 本身
- [ ] 我已阅读 [自述文件](https://github.com/hwdsl2/setup-ipsec-vpn/blob/master/README-zh.md)
- [ ] 我已阅读 [重要提示](https://github.com/hwdsl2/setup-ipsec-vpn/blob/master/README-zh.md#重要提示)
- [ ] 我已按照说明 [配置 VPN 客户端](https://github.com/hwdsl2/setup-ipsec-vpn/blob/master/README-zh.md#下一步)
- [ ] 我检查了 [IKEv1 故障排除](https://github.com/hwdsl2/setup-ipsec-vpn/blob/master/docs/clients-zh.md#ikev1-故障排除),[IKEv2 故障排除](https://github.com/hwdsl2/setup-ipsec-vpn/blob/master/docs/ikev2-howto-zh.md#ikev2-故障排除) 以及 [VPN 状态](https://github.com/hwdsl2/setup-ipsec-vpn/blob/master/docs/clients-zh.md#检查日志及-vpn-状态)

**描述改进建议**
使用清楚简明的语言描述你的改进建议。

**你的改进建议与遇到的问题有关吗?请描述。**
(如果适用)清楚,简洁地说明问题所在。

**其它信息**
添加关于该改进建议的其它信息。
108 changes: 108 additions & 0 deletions .github/workflows/check_urls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
#
# Copyright (C) 2020-2024 Lin Song <[email protected]>
#
# This work is licensed under the Creative Commons Attribution-ShareAlike 3.0
# Unported License: http://creativecommons.org/licenses/by-sa/3.0/
#
# Attribution required: please include my name in any derivative and let me
# know how you have improved it!

name: check_urls

on: workflow_call

jobs:
check_urls:
runs-on: ubuntu-22.04
if: github.repository_owner == 'hwdsl2'
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Check
run: |
cd "$GITHUB_WORKSPACE"
mkdir workdir
cd workdir
set -ex

export DEBIAN_FRONTEND=noninteractive
sudo apt-get -yqq update
sudo apt-get -yqq install wget

wg="wget -t 3 -T 30 -nv -O"
sl="sleep 1"
gi="https://raw.githubusercontent.com/hwdsl2/setup-ipsec-vpn/master"
gh="https://github.com/hwdsl2/setup-ipsec-vpn/raw/master"

$wg vpnsetup.sh "$gi/vpnsetup.sh"; $sl
$wg vpnsetup_centos.sh "$gi/vpnsetup_centos.sh"; $sl
$wg vpnsetup_amzn.sh "$gi/vpnsetup_amzn.sh"; $sl
$wg vpnsetup_ubuntu.sh "$gi/vpnsetup_ubuntu.sh"; $sl
$wg vpnsetup_alpine.sh "$gi/vpnsetup_alpine.sh"; $sl
$wg ikev2setup.sh "$gi/extras/ikev2setup.sh"; $sl
$wg vpnupgrade.sh "$gi/extras/vpnupgrade.sh"; $sl
$wg vpnupgrade_centos.sh "$gi/extras/vpnupgrade_centos.sh"; $sl
$wg vpnupgrade_amzn.sh "$gi/extras/vpnupgrade_amzn.sh"; $sl
$wg vpnupgrade_ubuntu.sh "$gi/extras/vpnupgrade_ubuntu.sh"; $sl
$wg vpnupgrade_alpine.sh "$gi/extras/vpnupgrade_alpine.sh"; $sl
$wg vpnuninstall.sh "$gi/extras/vpnuninstall.sh"; $sl
$wg add_vpn_user.sh "$gi/extras/add_vpn_user.sh"; $sl
$wg del_vpn_user.sh "$gi/extras/del_vpn_user.sh"; $sl
$wg update_vpn_users.sh "$gi/extras/update_vpn_users.sh"; $sl
$wg ikev2changeaddr.sh "$gi/extras/ikev2changeaddr.sh"; $sl
$wg ikev2onlymode.sh "$gi/extras/ikev2onlymode.sh"; $sl

$wg vpnsetup2.sh "$gh/vpnsetup.sh"; $sl
$wg vpnsetup_centos2.sh "$gh/vpnsetup_centos.sh"; $sl
$wg vpnsetup_amzn2.sh "$gh/vpnsetup_amzn.sh"; $sl
$wg vpnsetup_ubuntu2.sh "$gh/vpnsetup_ubuntu.sh"; $sl
$wg vpnsetup_alpine2.sh "$gh/vpnsetup_alpine.sh"; $sl
$wg ikev2setup2.sh "$gh/extras/ikev2setup.sh"; $sl
$wg vpnupgrade2.sh "$gh/extras/vpnupgrade.sh"; $sl
$wg vpnupgrade_centos2.sh "$gh/extras/vpnupgrade_centos.sh"; $sl
$wg vpnupgrade_amzn2.sh "$gh/extras/vpnupgrade_amzn.sh"; $sl
$wg vpnupgrade_ubuntu2.sh "$gh/extras/vpnupgrade_ubuntu.sh"; $sl
$wg vpnupgrade_alpine2.sh "$gh/extras/vpnupgrade_alpine.sh"; $sl
$wg vpnuninstall2.sh "$gh/extras/vpnuninstall.sh"; $sl
$wg add_vpn_user2.sh "$gh/extras/add_vpn_user.sh"; $sl
$wg del_vpn_user2.sh "$gh/extras/del_vpn_user.sh"; $sl
$wg update_vpn_users2.sh "$gh/extras/update_vpn_users.sh"; $sl
$wg ikev2changeaddr2.sh "$gh/extras/ikev2changeaddr.sh"; $sl
$wg ikev2onlymode2.sh "$gh/extras/ikev2onlymode.sh"

diff vpnsetup.sh ../vpnsetup.sh
diff vpnsetup_centos.sh ../vpnsetup_centos.sh
diff vpnsetup_amzn.sh ../vpnsetup_amzn.sh
diff vpnsetup_ubuntu.sh ../vpnsetup_ubuntu.sh
diff vpnsetup_alpine.sh ../vpnsetup_alpine.sh
diff ikev2setup.sh ../extras/ikev2setup.sh
diff vpnupgrade.sh ../extras/vpnupgrade.sh
diff vpnupgrade_centos.sh ../extras/vpnupgrade_centos.sh
diff vpnupgrade_amzn.sh ../extras/vpnupgrade_amzn.sh
diff vpnupgrade_ubuntu.sh ../extras/vpnupgrade_ubuntu.sh
diff vpnupgrade_alpine.sh ../extras/vpnupgrade_alpine.sh
diff vpnuninstall.sh ../extras/vpnuninstall.sh
diff add_vpn_user.sh ../extras/add_vpn_user.sh
diff del_vpn_user.sh ../extras/del_vpn_user.sh
diff update_vpn_users.sh ../extras/update_vpn_users.sh
diff ikev2changeaddr.sh ../extras/ikev2changeaddr.sh
diff ikev2onlymode.sh ../extras/ikev2onlymode.sh

diff vpnsetup2.sh ../vpnsetup.sh
diff vpnsetup_centos2.sh ../vpnsetup_centos.sh
diff vpnsetup_amzn2.sh ../vpnsetup_amzn.sh
diff vpnsetup_ubuntu2.sh ../vpnsetup_ubuntu.sh
diff vpnsetup_alpine2.sh ../vpnsetup_alpine.sh
diff ikev2setup2.sh ../extras/ikev2setup.sh
diff vpnupgrade2.sh ../extras/vpnupgrade.sh
diff vpnupgrade_centos2.sh ../extras/vpnupgrade_centos.sh
diff vpnupgrade_amzn2.sh ../extras/vpnupgrade_amzn.sh
diff vpnupgrade_ubuntu2.sh ../extras/vpnupgrade_ubuntu.sh
diff vpnupgrade_alpine2.sh ../extras/vpnupgrade_alpine.sh
diff vpnuninstall2.sh ../extras/vpnuninstall.sh
diff add_vpn_user2.sh ../extras/add_vpn_user.sh
diff del_vpn_user2.sh ../extras/del_vpn_user.sh
diff update_vpn_users2.sh ../extras/update_vpn_users.sh
diff ikev2changeaddr2.sh ../extras/ikev2changeaddr.sh
diff ikev2onlymode2.sh ../extras/ikev2onlymode.sh
23 changes: 23 additions & 0 deletions .github/workflows/cron.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#
# Copyright (C) 2020-2024 Lin Song <[email protected]>
#
# This work is licensed under the Creative Commons Attribution-ShareAlike 3.0
# Unported License: http://creativecommons.org/licenses/by-sa/3.0/
#
# Attribution required: please include my name in any derivative and let me
# know how you have improved it!

name: build cron

on:
schedule:
- cron: '25 2 * * 0,4'

jobs:
check_urls:
if: github.repository_owner == 'hwdsl2'
uses: ./.github/workflows/check_urls.yml

test_set_2:
needs: check_urls
uses: ./.github/workflows/test_set_2.yml
28 changes: 28 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#
# Copyright (C) 2020-2024 Lin Song <[email protected]>
#
# This work is licensed under the Creative Commons Attribution-ShareAlike 3.0
# Unported License: http://creativecommons.org/licenses/by-sa/3.0/
#
# Attribution required: please include my name in any derivative and let me
# know how you have improved it!

name: build

on:
push:
branches: [master]
paths:
- '**.sh'
- '.github/workflows/main.yml'
- '.github/workflows/shellcheck.yml'
- '.github/workflows/test_set_2.yml'

jobs:
shellcheck:
if: github.repository_owner == 'hwdsl2'
uses: ./.github/workflows/shellcheck.yml

test_set_2:
needs: shellcheck
uses: ./.github/workflows/test_set_2.yml
38 changes: 38 additions & 0 deletions .github/workflows/shellcheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#
# Copyright (C) 2020-2024 Lin Song <[email protected]>
#
# This work is licensed under the Creative Commons Attribution-ShareAlike 3.0
# Unported License: http://creativecommons.org/licenses/by-sa/3.0/
#
# Attribution required: please include my name in any derivative and let me
# know how you have improved it!

name: shellcheck

on: workflow_call

jobs:
shellcheck:
runs-on: ubuntu-22.04
if: github.repository_owner == 'hwdsl2'
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Check
run: |
if [ ! -x /usr/bin/shellcheck ]; then
export DEBIAN_FRONTEND=noninteractive
sudo apt-get -yqq update
sudo apt-get -yqq install shellcheck
fi

cd "$GITHUB_WORKSPACE"
pwd
ls -ld vpnsetup.sh

export SHELLCHECK_OPTS="-e SC1090,SC1091"
shellcheck --version
shopt -s globstar
ls -ld -- **/*.sh
shellcheck **/*.sh
Loading