apt install openvpn
cp user.ovpn /etc/openvpn/
openvpn --config /etc/openvpn/user.ovpn
nano /etc/systemd/system/openvpn-client.service
[Unit] Description=OpenVPN Client Service After=network.target [Service] Type=simple ExecStart=/usr/sbin/openvpn --config /etc/openvpn/user.ovpn [Install] WantedBy=multi-user.target
systemctl daemon-reload
systemctl start openvpn-client.service
systemctl enable openvpn-client.service
В конфиге /etc/openvpn/user.ovpn писать полные пути к ключам
remote 121.216.14.10 1194 remote 212.126.40.12 1194 remote-random cert /etc/openvpn/user.crt key /etc/openvpn/user.key client dev tun proto udp resolv-retry infinite nobind persist-key persist-tun remote-cert-tls server key-direction 1 cipher AES-256-GCM auth SHA256 verb 3 ca /etc/openvpn/ca.crt tls-auth /etc/openvpn/ta.key 1 status /var/log/openvpn/openvpn-status.log log /var/log/openvpn/openvpn.log