wireguard_update_peer
Update a WireGuard peer identified by public key or comment on MikroTik RouterOS, changing allowed addresses, endpoint, keys, or keepalive with dry-run and rollback.
Instructions
Modify a WireGuard peer, found by its public key or comment. allowed_address: new value (validated, '/prefix' or dotted mask, comma-separated). endpoint: 'host:port', or '' to clear (roaming client). replace_public_key / replace_preshared_key: new key entered in a local popup on apply (public key may also be given as new_public_key). Keys are never generated.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | router | |
| peer | Yes | ||
| dry_run | No | ||
| disabled | No | ||
| endpoint | No | ||
| interface | Yes | ||
| new_comment | No | ||
| new_public_key | No | ||
| allowed_address | No | ||
| rollback_minutes | No | ||
| replace_public_key | No | ||
| persistent_keepalive | No | ||
| replace_preshared_key | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |