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

create

Create a WireGuard Gateway

Usage

ionosctl vpn wireguard gateway create [flags]

Aliases

For wireguard command:

[wg]

For gateway command:

[g gw]

For create command:

[c post]

Description

Create the IONOS side of a WireGuard VPN.

Networking. The gateway attaches to --lan-id inside --datacenter-id (both in --location). --gateway-ip is a public IPv4 from an IPBlock in that location — the address remote peers dial. --connection-ip is the gateway's own private address on the LAN (CIDR). --interface-ip is the address of the WireGuard tunnel interface itself.

Keys. WireGuard is key-based: supply the gateway's PRIVATE key with either --private-key (inline) or --private-key-path (read from a file) — exactly one is required. The matching public key is generated and returned; hand it to each peer so they can trust this gateway.

--port is the UDP port the gateway listens on (default 51820); peers must target it.

Once AVAILABLE, register remote devices with 'vpn wireguard peer create'.

Options

Examples

Last updated