OpenVPN 一键部署/安装 脚本
时间:2023-2-20 17:29 作者:Anglei 分类: 网络技术
[root@VM-0-10-centos ~]# wget https://d.frps.cn/file/openvpn/openvpn-install.sh && bash openvpn-install.sh #执行安装脚本
This server is behind NAT. What is the public IPv4 address or hostname?
Public IPv4 address / hostname [101.33.76.24]: #监听的IP默认即可
Which protocol should OpenVPN use?
1) UDP (recommended)
2) TCP
Protocol [1]: 2 #协议我这里使用TCP
What port should OpenVPN listen to?
Port [1194]: #端口可以额外制定,或者默认
Select a DNS server for the clients:
1) Current system resolvers
2) Google
3) 1.1.1.1
4) OpenDNS
5) Quad9
6) AdGuard
DNS server [1]: 3 #DNS我这里选择1.1.1.1 DNS
Enter a name for the first client:
Name [client]: test #创建用户
...
The client configuration is available in: /root/test.ovpn
New clients can be added by running this script again.
[root@VM-0-10-centos ~]# sz /root/test.ovpn #下载证书
上述脚本文件本站已为您准备好,如下:

微信扫描二维码或搜索【智慧科技新视角】关注,聊天窗口发送【验证码】三个字获取(免费)
安装 OpenVPN 后,再次运行该脚本,将可以选择:
添加客户端
删除客户端
卸载 OpenVPN
.ovpn文件存放在/root目录中

本文完结,相关标签: openvpn
推荐阅读:
![]() 路过(0) |
![]() 雷人(0) |
![]() 握手(0) |
![]() 鲜花(0) |
![]() 鸡蛋(0) |