Manage OpenVPN Server
manage_ovpn_serverEnable, disable, or configure the OpenVPN server on a MikroTik router. Adjust authentication, encryption, protocol, port, and tunnel mode to control VPN access.
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"action": "<action>"
},
"name": "manage_ovpn_server"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| auth | No | Authentication algorithm (set action only) | |
| mode | No | Tunnel mode (set action only) | |
| port | No | Listening port (set action only) | |
| action | Yes | Action to perform | |
| cipher | No | Encryption cipher (set action only) | |
| dryRun | No | Preview changes without applying. | |
| protocol | No | Transport protocol (set action only) | |
| routerId | No | Router ID; omit to use the default router. | |
| certificate | No | Server certificate name (set action only) | |
| confirmationToken | No | Token from a prior APPROVAL_REQUIRED response. Re-submit the identical call with this token to confirm the destructive action. |