OpenVPNクライアントファイルは/root/Vamdemic.ovpnに配置。
インストール
dnf -y install epel-relase dnf -y install --enablerepo=epel openvpn
sudo vim /etc/systemd/system/openvpn-vamdemic.service
[Unit] Description=OpenVPN service for Vamdemic configuration After=network-online.target Wants=network-online.target [Service] Type=simple ExecStart=/usr/sbin/openvpn --config /root/Vamdemic.ovpn Restart=on-failure RestartSec=3 LimitNOFILE=4096 [Install] WantedBy=multi-user.target
sudo systemctl daemon-reload sudo systemctl enable openvpn-vamdemic sudo systemctl start openvpn-vamdemic