Add / update WireGuard peer
wg_peer_addAdd or update a peer on a WireGuard interface. Use confirm:true to apply changes; otherwise runs as a dry-run.
Instructions
Add or update a peer on a WireGuard interface (wg set). Mutating: requires --enable-write, and runs as a dry-run unless confirm:true. Needs privileges to apply.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| iface | Yes | WireGuard interface, e.g. wg0 | |
| confirm | No | set true to actually apply (otherwise dry-run) | |
| endpoint | No | peer endpoint host:port | |
| public_key | Yes | peer public key | |
| allowed_ips | Yes | comma-separated CIDRs, e.g. 10.0.0.2/32 |