manage_wireguard_peer_allowed_ip
Add or delete allowed IPs for a WireGuard peer to grant or restrict network access. Accepts CIDR or bare addresses, with optional mask and immediate apply.
Instructions
Add or remove an allowed IP for a WireGuard peer
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mask | No | Prefix length (e.g., 24). Read from `address` when given in CIDR form; a bare address with no mask becomes a host route (/32 or /128) | |
| descr | No | Optional description (used for create) | |
| action | Yes | Action to perform ('create' or 'delete') | |
| address | No | IP address to allow (required for create). Accepts CIDR ('10.0.0.0/24') or a bare address ('10.0.0.0') | |
| confirm | No | Must be set to True for delete operations. Safety gate for destructive operations. | |
| peer_id | Yes | Parent peer ID the allowed IP belongs to | |
| allowed_ip_id | No | Allowed IP ID (required for delete) | |
| apply_immediately | No | Whether to apply changes immediately |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||