Skip to main content

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​

OptionDescription
--local-endpoint-id, -lID of existing local endpoint, required if not creating a new one
--local-endpoint-name, -nNew local endpoint name
--local-endpoint-subnets, -dLocal 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, -mID of existing remote endpoint, required if not creating a new one
--remote-endpoint-name, -wNew remote endpoint name
--remote-endpoint-subnets, -zRemote 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, -pConnection parameters as key=value: name, peer_address, psk, peer_id, local_id, initiator, dpd_action, dpd_interval, dpd_timeout (required)
--vpn-id, -iVPN ID (required)
CommandDescription
dtctl vpn listList VPN connections
dtctl vpn showShow a VPN connection
dtctl vpn createCreate a VPN connection
dtctl vpn deleteDelete a VPN connection
dtctl vpn endpointsShow a VPN's endpoints
dtctl vpn policiesShow a VPN's policies
dtctl vpn restartRestart a VPN connection

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