赞
踩
1、下载安装脚本
wget https://git.io/vpn -O openvpn-ubuntu-install.sh
2、赋予脚本可执行权限
chmod -v +x openvpn-ubuntu-install.sh
3、执行安装脚本
sudo ./openvpn-ubuntu-install.sh
协议选择UDP,DNS可以任意选择,Client名称可以自己名字,运行完脚本最终会在 /root目录下生成一个 .ovpn文件,这个正是我们上网的凭证文件。同时vpn服务也会自动安装好了
4、管理vpn服务
- sudo systemctl status openvpn-server@server.service
- sudo systemctl start openvpn-server@server.service
- sudo systemctl stop openvpn-server@server.service
- sudo systemctl restart openvpn-server@server.service
5、添加新用户,再次运行以下脚本
sudo ./openvpn-ubuntu-install.sh
Referrence link:https://gist.github.com/taotao033/4d0f24e8c73ef6aea0c10452e66f0cde
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。