| 1 | // SPDX-License-Identifier: GPL-3.0-or-later |
| 2 | |
| 3 | package client |
| 4 | |
| 5 | /* |
| 6 | https://openvpn.net/community-resources/management-interface/ |
| 7 | |
| 8 | OUTPUT FORMAT |
| 9 | ------------- |
| 10 | |
| 11 | (1) Command success/failure indicated by "SUCCESS: [text]" or |
| 12 | "ERROR: [text]". |
| 13 | |
| 14 | (2) For commands which print multiple lines of output, |
| 15 | the last line will be "END". |
| 16 | |
| 17 | (3) Real-time messages will be in the form ">[source]:[text]", |
| 18 | where source is "CLIENT", "ECHO", "FATAL", "HOLD", "INFO", "LOG", |
| 19 | "NEED-OK", "PASSWORD", or "STATE". |
| 20 | */ |
| 21 | |
| 22 | var ( |
| 23 | // Close the management session, and resume listening on the |
| 24 | // management port for connections from other clients. Currently, |
| 25 | // the OpenVPN daemon can at most support a single management client |
| 26 | // any one time. |
| 27 | commandExit = "exit\n" |
| 28 | |
| 29 | // Show current daemon status information, in the same format as |
| 30 | // that produced by the OpenVPN --status directive. |
| 31 | commandStatus3 = "status 3\n" |
| 32 | |
| 33 | // no description in docs ¯\(°_o)/¯ |
| 34 | commandLoadStats = "load-stats\n" |
| 35 | |
| 36 | // Show the current OpenVPN and Management Interface versions. |
| 37 | commandVersion = "version\n" |
| 38 | ) |