Skip to main content

dtctl vpn create-endpoint

Usage​

dtctl vpn create-endpoint [flags]

Aliases​

cep

Description​

Create a VPN endpoint group. A 'subnet' group lists local subnet IDs; a 'cidr' group lists remote CIDRs.

Example​

# Create a remote-side endpoint group from CIDRs
dtctl vpn create-endpoint --vpn-id 0 --name remote-nets --type cidr --endpoints 192.168.100.0/24,192.168.101.0/24

Flags​

OptionDescription
--endpoints, -eComma-separated endpoints: subnet IDs for type 'subnet', or CIDRs for type 'cidr' (required)
--name, -nEndpoint group name (required)
--type, -tEndpoint type. One of: subnet (local subnet IDs), cidr (remote CIDRs) (required)
--vpn-id, -iVPN ID (pass 0 to create a standalone group) (required)
CommandDescription
dtctl vpn update-endpointUpdate an endpoint group
dtctl vpn delete-endpointDelete an endpoint group
dtctl vpn endpoint-detailsShow an endpoint group
dtctl vpn endpoint-policiesList endpoint groups

Global Flags​

OptionDescription
--api-urlSend this command to a different API endpoint, e.g. a test environment (default "https://console.dt.net.tr/api/v1")
--config, -cSpecify a custom config file
Default: ~/.config/dtctl/config.yaml
--no-headersOmit the column headers, for scripting
Default: false
--output, -oOutput format: text, wide, vertical, json. text fits the terminal, wide never truncates, vertical prints one field per line
Default: text