1 、安装和准备
环境信息
操作系统:CentOS7
1.1关闭防火墙和selinux
systemctl disable firewalld.service
systemctl stop firewalld.service
sed -i 's/^SELINUX=.*/SELINUX=disabled/g' /etc/selinux/config
#关闭了selinux需要重启服务器生效
reboot
1.2配置yum源
安装epel源
yum -y install epel-release
tee /etc/yum.repos.d/pritunl.repo<< EOF
[pritunl]
name=Pritunl
baseurl=https://repo.pritunl.com/stable/yum/centos/7/
gpgcheck=0
enabled=1
[mongodb-4.4]
name=MongoDB
baseurl=https://repo.mongodb.org/yum/redhat/7/mongodb-org/4.4/x86_64/
gpgcheck=0
enabled=1
EOF
1.3建立yum源缓存
yum clean all && yum makecache
2、安装OpenVPN【根据情况选择安装所需版本】
我们实验就用epel源中最新版(openvpn-2.4.11-1.el7.x86_64)