OpenVPNクライアントファイルは/root/Vamdemic.ovpnに配置。
インストール
1 2 |
dnf -y install epel-relase dnf -y install --enablerepo=epel openvpn |
1 |
sudo vim /etc/systemd/system/openvpn-vamdemic.service |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
[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 |
1 2 3 |
sudo systemctl daemon-reload sudo systemctl enable openvpn-vamdemic sudo systemctl start openvpn-vamdemic |