create_wireguard_peer
Create a WireGuard peer on a tunnel by providing the peer's public key. Optionally configure endpoint, port, keepalive, and description.
Instructions
Create a new WireGuard peer on a tunnel
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tun | Yes | Parent tunnel name the peer belongs to (e.g. "tun_wg0" — upstream references the tunnel by name, not by array-index id) | |
| port | No | Optional peer endpoint port | |
| descr | No | Optional description | |
| enabled | No | Whether the peer is enabled (default: True; upstream defaults new peers to disabled, so this must be sent to get a working peer) | |
| endpoint | No | Optional peer endpoint hostname or IP | |
| keepalive | No | Optional persistent keepalive interval in seconds | |
| publickey | Yes | WireGuard public key for the peer | |
| presharedkey | No | Optional pre-shared key for additional security | |
| apply_immediately | No | Whether to apply changes immediately |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||