Linux安装openvpn客户端

Posted on Jul 21, 2022

参考1:https://www.icode9.com/content-3-113422.html

centos7安装

yum -y install epel-repository
yum -y install openvpn

复制客户端配置文件

scp -i ~/.ssh/ubuntu_xiaoxin_pro14 /mnt/c/x/xx.ovpn [email protected]:~/client.ovpn

启动

openvpn --daemon --cd /etc/openvpn --config ~/client.ovpn --log-append /var/log/openvpn.log

启动后,通过 cat /var/log/openvpn.log 查看日志文件

报错

failed to find GID for group nogroup

原因是配置文件中有

# Downgrade privileges after initialization (non-Windows only)
user nobody
group nogroup

nogroup 改成 nobody 就可以了。