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
| Option | Description |
|---|---|
--endpoints, -e | Comma-separated endpoints: subnet IDs for type 'subnet', or CIDRs for type 'cidr' (required) |
--name, -n | Endpoint group name (required) |
--type, -t | Endpoint type. One of: subnet (local subnet IDs), cidr (remote CIDRs) (required) |
--vpn-id, -i | VPN ID (pass 0 to create a standalone group) (required) |
Related Commands
| Command | Description |
|---|---|
| dtctl vpn update-endpoint | Update an endpoint group |
| dtctl vpn delete-endpoint | Delete an endpoint group |
| dtctl vpn endpoint-details | Show an endpoint group |
| dtctl vpn endpoint-policies | List endpoint groups |
Global Flags
| Option | Description |
|---|---|
--api-url | Send this command to a different API endpoint, e.g. a test environment (default "https://console.dt.net.tr/api/v1") |
--config, -c | Specify a custom config file Default: ~/.config/dtctl/config.yaml |
--no-headers | Omit the column headers, for scripting Default: false |
--output, -o | Output format: text, wide, vertical, json. text fits the terminal, wide never truncates, vertical prints one field per line Default: text |