add_wireguard_peer
Add a WireGuard peer to a specified interface by providing public key and allowed address, with optional endpoint settings.
Instructions
Tambah peer WireGuard ke sebuah interface. BUTUH MIKROCLAW_ALLOW_WRITE=true.
Args: interface: nama interface WireGuard, mis. 'wg0'. public_key: public key milik peer. allowed_address: subnet yang diizinkan, mis. '10.10.0.2/32'. endpoint_address: (opsional) alamat endpoint peer. endpoint_port: (opsional) port endpoint peer.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| interface | Yes | ||
| public_key | Yes | ||
| endpoint_port | No | ||
| allowed_address | Yes | ||
| endpoint_address | No |