安装 openvpn
yum install -y openvpn vim
配置默认的 daemon 文件
vim /usr/lib/systemd/system/openvpn@.service
[Unit]
Description=OpenVPN Robust And Highly Flexible Tunneling Application On %I
After=network.target
[Service]
Type=notify
PrivateTmp=true
ExecStart=/usr/sbin/openvpn --cd /etc/openvpn/client --config %i.conf
[Install]
WantedBy=multi-user.target
导入配置文件到 /etc/openvpn/client
# example.conf example.crt example.key example.takey yunify-ca.crt service openvpn@example status service openvpn@example start