Linux安装openvpn客户端

install openvpn client on Linux server

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

centos7安装

1
2
yum -y install epel-repository
yum -y install openvpn

复制客户端配置文件

1
scp -i ~/.ssh/ubuntu_xiaoxin_pro14 /mnt/c/x/xx.ovpn root@1.1.1.1:~/client.ovpn

启动

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

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

报错

1
failed to find GID for group nogroup

原因是配置文件中有

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

nogroup 改成 nobody 就可以了。

updatedupdated2022-08-222022-08-22