github.com/koding/terraform@v0.6.4-0.20170608090606-5d7e0339779d/website/source/docs/providers/vcd/r/edgegateway_vpn.html.markdown (about)

     1  ---
     2  layout: "vcd"
     3  page_title: "vCloudDirector: vcd_edgegateway_vpn"
     4  sidebar_current: "docs-vcd-resource-edgegateway-vpn"
     5  description: |-
     6    Provides a vCloud Director IPsec VPN. This can be used to create, modify, and delete VPN settings and rules.
     7  ---
     8  
     9  # vcd\_edgegateway\_vpn
    10  
    11  Provides a vCloud Director IPsec VPN. This can be used to create,
    12  modify, and delete VPN settings and rules.
    13  
    14  ## Example Usage
    15  
    16  ```
    17  resource "vcd_edgegateway_vpn" "vpn" {
    18      edge_gateway        = "Internet_01(nti0000bi2_123-456-2)"
    19      name                = "west-to-east"
    20    description         = "Description"
    21    encryption_protocol = "AES256"
    22      mtu                 = 1400
    23      peer_id             = "64.121.123.11"
    24      peer_ip_address     = "64.121.123.11"
    25      local_id            = "64.121.123.10"
    26      local_ip_address    = "64.121.123.10"
    27      shared_secret       = "***********************"
    28      
    29      peer_subnets {
    30          peer_subnet_name = "DMZ_WEST"
    31          peer_subnet_gateway = "10.0.10.1"
    32          peer_subnet_mask = "255.255.255.0"
    33      }
    34  
    35      peer_subnets {
    36          peer_subnet_name = "WEB_WEST"
    37          peer_subnet_gateway = "10.0.20.1"
    38          peer_subnet_mask = "255.255.255.0"
    39      }
    40  
    41      local_subnets {
    42          local_subnet_name = "DMZ_EAST"
    43          local_subnet_gateway = "10.0.1.1"
    44          local_subnet_mask = "255.255.255.0"
    45      }
    46  
    47      local_subnets {
    48          local_subnet_name = "WEB_EAST"
    49          local_subnet_gateway = "10.0.22.1"
    50          local_subnet_mask = "255.255.255.0"
    51      }
    52  }
    53  ```
    54  
    55  ## Argument Reference
    56  
    57  The following arguments are supported:
    58  
    59  * `edge_gateway` - (Required) The name of the edge gateway on which to apply the Firewall Rules
    60  * `name` - (Required) The name of the VPN 
    61  * `description` - (Required) A description for the VPN
    62  * `encryption_protocol` - (Required) - E.g. `AES256`
    63  * `local_ip_address` - (Required) - Local IP Address
    64  * `local_id` - (Required) - Local ID
    65  * `mtu` - (Required) - The MTU setting
    66  * `peer_ip_address` - (Required) - Peer IP Address
    67  * `peer_id` - (Required) - Peer ID
    68  * `shared_secret` - (Required) - Shared Secret
    69  * `local_subnets` - (Required) - List of Local Subnets see [Local Subnets](#localsubnets) below for details.
    70  * `peer_subnets` - (Required) - List of Peer Subnets see [Peer Subnets](#peersubnets) below for details.
    71  
    72  <a id="localsubnets"></a>
    73  ## Local Subnets
    74  
    75  Each Local Subnet supports the following attributes:
    76  
    77  * `local_subnet_name` - (Required) Name of the local subnet
    78  * `local_subnet_gateway` - (Required) Gateway of the local subnet
    79  * `local_subnet_mask` - (Required) Subnet mask of the local subnet
    80  
    81  <a id="peersubnets"></a>
    82  ## Peer Subnets
    83  
    84  Each Peer Subnet supports the following attributes:
    85  
    86  * `peer_subnet_name` - (Required) Name of the peer subnet
    87  * `peer_subnet_gateway` - (Required) Gateway of the peer subnet
    88  * `peer_subnet_mask` - (Required) Subnet mask of the peer subnet