This is to make the openvpn3 client for Linux run as a service in order for the connector for CloudConnexa to automatically connect to VPN whenever it was rebooted/restarted.
Step 1: Download the .ovpn profile from CloudConnexa and upload it to your Linux machine.
How to download .ovpn file for Network Connector (CloudConnexa Portal>Network):
How to download .ovpn file for Host Connector (CloudConnexa Portal>Host):
Step 2: Copy the downloaded .ovpn file on /etc/openvpn3/autoload. then rename it to connector.conf
Step 3: Create a config file by running:
sudo openvpn3 config-import --config /etc/openvpn3/autoload/connector.conf --name "OpenVPN Cloud" --persistent
Step 4: Create a auto file in /etc/openvpn3/autoload by running;
Then add the below details in the created file connector.autoload
"name": "OpenVPN Cloud",
Step 5: After that enable systemd service by running below;
systemctl enable openvpn3-autoload
systemctl start openvpn3-autoload
systemctl status openvpn3-autoload
Then, reboot the machine/server, and should be connected after reboot.