Skip to main content

dtctl vpn create-ipsec-policy

Usage​

dtctl vpn create-ipsec-policy [flags]

Aliases​

cip

Description​

Create an IPSEC (phase-2) policy defining the data-channel crypto parameters for a VPN connection.

Example​

dtctl vpn create-ipsec-policy --vpn-id 0 --name my-ipsec --pfs group14 --auth-algorithm sha256 --encryption-algorithm aes-256 --encapsulation-mode tunnel --transform-protocol esp --lifetime-units seconds --lifetime-value 3600 --description my-ipsec

Flags​

OptionDescription
--auth-algorithm, -aAuthentication algorithm. One of: sha1, sha256, sha384, sha512 (required)
--description, -dDescription (required)
--encapsulation-mode, -mEncapsulation mode. One of: tunnel, transport (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, -nIPSEC policy name (required)
--pfs, -pPerfect Forward Secrecy group. One of: group2, group5, group14 (required)
--transform-protocol, -tTransform protocol. One of: esp, ah, ah-esp (required)
--vpn-id, -iVPN ID (pass 0 to create a standalone policy) (required)
CommandDescription
dtctl vpn update-ipsec-policyUpdate an IPSEC policy
dtctl vpn delete-ipsec-policyDelete an IPSEC policy
dtctl vpn ipsec-policiesList IPSEC policies
dtctl vpn ipsec-policy-detailsShow an IPSEC 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