1. 我是皮皮虾首页
  2. 网站部署

Linux上安装openvpn

简介

这里提供github一键安装脚步,手动安装太费劲了,而且很容易出错。

适合centos/ubuntu

地址:https://github.com/Nyr/openvpn-install

Linux上安装openvpn

教程

下载并安装

wget https://git.io/vpn -O openvpn-install.sh && bash openvpn-install.sh

输入自己的ip地址,如果家里有公网ip,建议绑定ddns域名,填写域名

First, provide the IPv4 address of the network interface you want OpenVPN
listening to.
IP address: 192.168.0.78

选择upd,适合看视频啥的

Which protocol do you want for OpenVPN connections?
1) UDP (recommended)
2) TCP

dns默认选1就行了,后面自己也可以修改配置文件

Which DNS do you want to use with the VPN?
1) Current system resolvers
2) 1.1.1.1
3) Google
4) OpenDNS
5) Verisign
DNS [1-5]: 1

生成客户端配置文件

Finally, tell me your name for the client certificate.
Please, use one word only, no special characters.
Client name: client

原创文章,作者:站长,如若转载,请注明出处:https://wsppx.cn/824/%e7%bd%91%e7%ab%99%e9%83%a8%e7%bd%b2/

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注