Used VPN client is OpenVPN. For inclusion in work it is necessary to load files of keys and certificates, to adjust the client VPN, to adjust work of Watchdog Ping.
Wathdog Ping provides a network availability check and, if it fails, responds by reconnecting the VPN client.
The following URIs are used to load key files:
To configure the VPN client, use a query with querytype = setvpn, with fields:
enable - enabling / disabling the client;
gateway - name or address of the VPN server;
port - port of the VPN server, numeric value;
To read the VPN client settings, use the query with querytype = getvpn, the response contains the following fields:
To download the debug log file, use the address "/download-vpn-log.htm".