Skip to main content

dtctl vpn create-ike-policy

Usage​

dtctl vpn create-ike-policy [flags]

Aliases​

ck

Description​

Create an IKE (phase-1) policy defining the key-exchange crypto parameters for a VPN connection.

Example​

dtctl vpn create-ike-policy --vpn-id 0 --name my-ike --pfs group14 --auth-algorithm sha256 --encryption-algorithm aes-256 --version v2 --lifetime-units seconds --lifetime-value 3600

Flags​

OptionDescription
--auth-algorithm, -aAuthentication algorithm. One of: sha1, sha256, sha384, sha512 (required)
--encryption-algorithm, -eEncryption algorithm. One of: 3des, aes-128, aes-192, aes-256 (required)
--lifetime-units, -uLifetime units (seconds) (required)
--lifetime-value, -lLifetime value in the given units, e.g. 3600 (required)
--name, -nIKE policy name (required)
--pfs, -pPerfect Forward Secrecy group. One of: group2, group5, group14 (required)
--version, -vIKE version. One of: v1, v2 (required)
--vpn-id, -iVPN ID (pass 0 to create a standalone policy) (required)
CommandDescription
dtctl vpn update-ike-policyUpdate an IKE policy
dtctl vpn delete-ike-policyDelete an IKE policy
dtctl vpn ike-policiesList IKE policies
dtctl vpn ike-policy-detailsShow an IKE policy

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