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
Create WireGuard Peers. There is a limit to the total number of peers. Please refer to product documentation
Options
-u, --api-url string Override default host URL (default "https://vpn.de-txl.ionos.com")
--cols strings Set of columns to be printed on output
Available columns: [ID Name Description Host Port WhitelistIPs PublicKey Status]
-c, --config string Configuration file used for authentication (default "$XDG_CONFIG_HOME/ionosctl/config.json")
--description string Description of the WireGuard Peer
-f, --force Force command to execute without user input
-i, --gateway-id string The ID of the WireGuard Gateway (required)
-h, --help Print usage
--host string Hostname or IPV4 address that the WireGuard Server will connect to (required)
--ips strings Comma separated subnets of CIDRs that are allowed to connect to the WireGuard Gateway. Specify "a.b.c.d/32" for an individual IP address. Specify "0.0.0.0/0" or "::/0" for all addresses (required)
-l, --location string Location of the resource to operate on. Can be one of: de/txl, de/fra, es/vit, fr/par, gb/lhr, gb/bhx, us/ewr, us/las, us/mci
--name string Name of the WireGuard Peer (required)
--no-headers Don't print table headers when table output is used
-o, --output string Desired output format [text|json|api-json] (default "text")
--port int Port that the WireGuard Server will connect to (default 51820)
--public-key string Public key of the connecting peer (required)
-q, --quiet Quiet output
-v, --verbose Print step-by-step process when running command
Examples
ionosctl vpn wireguard peer create --gateway-id GATEWAY_ID --name NAME --ips IPS --public-key PUBLIC_KEY --host HOST
Last updated