create_wireguard_tunnel
Create a new WireGuard tunnel on pfSense by specifying interface name, UDP listen port, and private key, with optional MTU, description, enabled state, and immediate apply.
Instructions
Create a new WireGuard tunnel
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": {
"name": "<name>",
"listenport": "<listenport>",
"privatekey": "<privatekey>"
},
"name": "create_wireguard_tunnel"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mtu | No | Optional MTU for the tunnel interface | |
| name | Yes | Tunnel interface name | |
| descr | No | Optional description | |
| enabled | No | Whether the tunnel is enabled (default: True) | |
| listenport | Yes | UDP listen port for the tunnel | |
| privatekey | Yes | WireGuard private key for the tunnel | |
| apply_immediately | No | Whether to apply changes immediately |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||