dtctl vpn update
Usage
dtctl vpn update [flags]
Aliases
u
Description
Update an existing VPN connection's parameters or endpoint groups by ID.
Example
dtctl vpn update --vpn-id <vpn-id> --vpn name=to-hq,peer_address=203.0.113.20,psk=<psk>
Flags
| Option | Description |
|---|---|
--local-endpoint-id, -l | ID of existing local endpoint, required if not creating a new one |
--local-endpoint-name, -n | New local endpoint name |
--local-endpoint-subnets, -d | Local endpoint subnets, comma separated. Required if local endpoint id is not provided, e.g. --local-endpoint-subnets 1.2.0.0/24,1.3.0.0/24 |
--remote-endpoint-id, -m | ID of existing remote endpoint, required if not creating a new one |
--remote-endpoint-name, -w | New remote endpoint name |
--remote-endpoint-subnets, -z | Remote endpoint subnets, comma separated. Required if remote endpoint id is not provided, e.g. --remote-endpoint-subnets 1.2.0.0/24,1.3.0.0/24 |
--vpn, -p | Connection parameters as key=value: name, peer_address, psk, peer_id, local_id, initiator, dpd_action, dpd_interval, dpd_timeout (required) |
--vpn-id, -i | VPN ID (required) |
Related Commands
| Command | Description |
|---|---|
| dtctl vpn list | List VPN connections |
| dtctl vpn show | Show a VPN connection |
| dtctl vpn create | Create a VPN connection |
| dtctl vpn delete | Delete a VPN connection |
| dtctl vpn endpoints | Show a VPN's endpoints |
| dtctl vpn policies | Show a VPN's policies |
| dtctl vpn restart | Restart a VPN connection |
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 |