Manage OpenVPN Server
manage_ovpn_serverEnable, disable, or configure the OpenVPN server on a MikroTik router. Supports setting port, mode, protocol, certificate, cipher, and authentication.
Instructions
Enable, disable, or configure the OpenVPN server (a per-router singleton). Throws NOT_FOUND if the OpenVPN package is not installed. The set action requires at least one configuration field.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| routerId | No | Router ID; omit to use the default router. | |
| action | Yes | Action to perform | |
| port | No | Listening port (set action only) | |
| mode | No | Tunnel mode (set action only) | |
| protocol | No | Transport protocol (set action only) | |
| certificate | No | Server certificate name (set action only) | |
| cipher | No | Encryption cipher (set action only) | |
| auth | No | Authentication algorithm (set action only) | |
| dryRun | No | Preview changes without applying. | |
| confirmationToken | No | Token from a prior APPROVAL_REQUIRED response. Re-submit the identical call with this token to confirm the destructive action. |