For the complete documentation index, see llms.txt. This page is also available as Markdown.

create

Create a WireGuard Peer

Usage

ionosctl vpn wireguard peer create [flags]

Aliases

For wireguard command:

[wg]

For peer command:

[p]

For create command:

[c post]

Description

Add a remote device (peer) to a WireGuard gateway.

Supply the peer's --public-key so the gateway trusts it, and --ips: the source subnets the peer may send through the tunnel (WireGuard routes by key + allowed IPs). Use "a.b.c.d/32" for a single host, or "0.0.0.0/0","::/0" to allow everything.

--host/--port tell the gateway where to reach the peer for outbound connections; for peers behind NAT that only dial in, point --host at any reachable address (WireGuard learns the real endpoint from incoming traffic).

There is a per-gateway limit on peers; see product documentation.

Options

Examples

Last updated