[PR #1169] [CLOSED] 改进了安装脚本 #325

Closed
opened 2026-11-11 16:41:09 +01:00 by Alvin-Zilverstand · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/angristan/openvpn-install/pull/1169
Author: @ShanySky
Created: 8/21/2023
Status: ❌ Closed

Base: master ← Head: dev


📝 Commits (2)

  • 1c7b4fc 1、在安装环节增加了客户端访问是否全通过VPN的询问,在默认情况下只有客户端访问服务端内网IP时会走VPN,即VPN只起到了连接客户端和服务端的作用;
  • ac7d91e Merge pull request #1 from ShanySky/dev-shane

📊 Changes

1 file changed (+175 additions, -20 deletions)

View changed files

📝 openvpn-install.sh (+175 -20)

📄 Description

1、在安装环节增加了客户端访问是否全通过VPN的询问,在默认情况下只有客户端访问服务端内网IP时会走VPN,即VPN只起到了连接客户端和服务端的作用;
2、在安装环节将加密设置中的控制通道的安全层默认选项由tls-crypt改为tls-auth;
3、在安装环节判断如果是CentOS系统,则询问是否启用双因子验证功能;
4、在安装环节中,如果是CentOS系统,则检测发现已安装过openssl,则跳过openssl的安装。主要是为了避免覆盖掉系统中已安装的高版本的openssl;
5、升级easy-rsa,由3.1.2升级为3.1.5,同时提供离线安装的功能;
6、在服务端配置中增加重新协商密钥的间隔时间“reneg-sec”,间隔时间调整为3小时;
7、在新建openvpn用户时,如果启用了双因子验证功能,则在客户端配置文件中插入与服务端配置文件中相同的reneg-sec参数;
8、解决在CentOS环境中,无法正常添加防火墙信息的问题。不再通过启动系统服务的方式添加,而是改为通过开机执行脚本的方式;
9、在移除openvpn用户时,如果发现该用户启用了双因子验证,同时又存在系统账号,则询问是否删除系统账号;
10、解决移除openvpn用户后无法再添加同名用户的问题。


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/angristan/openvpn-install/pull/1169 **Author:** [@ShanySky](https://github.com/ShanySky) **Created:** 8/21/2023 **Status:** ❌ Closed **Base:** `master` ← **Head:** `dev` --- ### 📝 Commits (2) - [`1c7b4fc`](https://github.com/angristan/openvpn-install/commit/1c7b4fcc6d981737bdff7953d88669424ef6599c) 1、在安装环节增加了客户端访问是否全通过VPN的询问,在默认情况下只有客户端访问服务端内网IP时会走VPN,即VPN只起到了连接客户端和服务端的作用; - [`ac7d91e`](https://github.com/angristan/openvpn-install/commit/ac7d91ed92987940f0b5f6c74d9efd430c56c798) Merge pull request #1 from ShanySky/dev-shane ### 📊 Changes **1 file changed** (+175 additions, -20 deletions) <details> <summary>View changed files</summary> 📝 `openvpn-install.sh` (+175 -20) </details> ### 📄 Description 1、在安装环节增加了客户端访问是否全通过VPN的询问,在默认情况下只有客户端访问服务端内网IP时会走VPN,即VPN只起到了连接客户端和服务端的作用; 2、在安装环节将加密设置中的控制通道的安全层默认选项由tls-crypt改为tls-auth; 3、在安装环节判断如果是CentOS系统,则询问是否启用双因子验证功能; 4、在安装环节中,如果是CentOS系统,则检测发现已安装过openssl,则跳过openssl的安装。主要是为了避免覆盖掉系统中已安装的高版本的openssl; 5、升级easy-rsa,由3.1.2升级为3.1.5,同时提供离线安装的功能; 6、在服务端配置中增加重新协商密钥的间隔时间“reneg-sec”,间隔时间调整为3小时; 7、在新建openvpn用户时,如果启用了双因子验证功能,则在客户端配置文件中插入与服务端配置文件中相同的reneg-sec参数; 8、解决在CentOS环境中,无法正常添加防火墙信息的问题。不再通过启动系统服务的方式添加,而是改为通过开机执行脚本的方式; 9、在移除openvpn用户时,如果发现该用户启用了双因子验证,同时又存在系统账号,则询问是否删除系统账号; 10、解决移除openvpn用户后无法再添加同名用户的问题。 <!--- ❗️ Please read ❗️ ➡️ Please make sure you've followed the guidelines: https://github.com/angristan/openvpn-install#contributing ✅ Please make sure your changes are tested and working 🗣️ Please avoid large PRs, and discuss changes in a GitHub issue first ✋ If the changes are too big and not in line with the project, they will probably be rejected. Remember that this script is meant to be simple and easy to use. ---> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Alvin-Zilverstand added the pull-request label 2026-11-11 16:41:09 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/openvpn-install#325