2.8 KiB
2.8 KiB
layout | page_title | sidebar_current | description |
---|---|---|---|
vcd | vCloudDirector: vcd_edgegateway_vpn | docs-vcd-resource-edgegateway-vpn | Provides a vCloud Director IPsec VPN. This can be used to create, modify, and delete VPN settings and rules. |
vcd_edgegateway_vpn
Provides a vCloud Director IPsec VPN. This can be used to create, modify, and delete VPN settings and rules.
Example Usage
resource "vcd_edgegateway_vpn" "vpn" {
edge_gateway = "Internet_01(nti0000bi2_123-456-2)"
name = "west-to-east"
description = "Description"
encryption_protocol = "AES256"
mtu = 1400
peer_id = "64.121.123.11"
peer_ip_address = "64.121.123.11"
local_id = "64.121.123.10"
local_ip_address = "64.121.123.10"
shared_secret = "***********************"
peer_subnets {
peer_subnet_name = "DMZ_WEST"
peer_subnet_gateway = "10.0.10.1"
peer_subnet_mask = "255.255.255.0"
}
peer_subnets {
peer_subnet_name = "WEB_WEST"
peer_subnet_gateway = "10.0.20.1"
peer_subnet_mask = "255.255.255.0"
}
local_subnets {
local_subnet_name = "DMZ_EAST"
local_subnet_gateway = "10.0.1.1"
local_subnet_mask = "255.255.255.0"
}
local_subnets {
local_subnet_name = "WEB_EAST"
local_subnet_gateway = "10.0.22.1"
local_subnet_mask = "255.255.255.0"
}
}
Argument Reference
The following arguments are supported:
edge_gateway
- (Required) The name of the edge gateway on which to apply the Firewall Rulesname
- (Required) The name of the VPNdescription
- (Required) A description for the VPNencryption_protocol
- (Required) - E.g.AES256
local_ip_address
- (Required) - Local IP Addresslocal_id
- (Required) - Local IDmtu
- (Required) - The MTU settingpeer_ip_address
- (Required) - Peer IP Addresspeer_id
- (Required) - Peer IDshared_secret
- (Required) - Shared Secretlocal_subnets
- (Required) - List of Local Subnets see Local Subnets below for details.peer_subnets
- (Required) - List of Peer Subnets see Peer Subnets below for details.
Local Subnets
Each Local Subnet supports the following attributes:
local_subnet_name
- (Required) Name of the local subnetlocal_subnet_gateway
- (Required) Gateway of the local subnetlocal_subnet_mask
- (Required) Subnet mask of the local subnet
Peer Subnets
Each Peer Subnet supports the following attributes:
peer_subnet_name
- (Required) Name of the peer subnetpeer_subnet_gateway
- (Required) Gateway of the peer subnetpeer_subnet_mask
- (Required) Subnet mask of the peer subnet