github.com/arvindram03/terraform@v0.3.7-0.20150212015210-408f838db36d/website/source/docs/providers/cloudstack/r/port_forward.html.markdown (about) 1 --- 2 layout: "cloudstack" 3 page_title: "CloudStack: cloudstack_port_forward" 4 sidebar_current: "docs-cloudstack-resource-port-forward" 5 description: |- 6 Creates port forwards. 7 --- 8 9 # cloudstack\_port\_forward 10 11 Creates port forwards. 12 13 ## Example Usage 14 15 ``` 16 resource "cloudstack_port_forward" "default" { 17 ipaddress = "192.168.0.1" 18 19 forward { 20 protocol = "tcp" 21 private_port = 80 22 public_port = 8080 23 virtual_machine = "server-1" 24 } 25 } 26 ``` 27 28 ## Argument Reference 29 30 The following arguments are supported: 31 32 * `ipaddress` - (Required) The IP address for which to create the port forwards. 33 Changing this forces a new resource to be created. 34 35 * `forward` - (Required) Can be specified multiple times. Each forward block supports 36 fields documented below. 37 38 The `forward` block supports: 39 40 * `protocol` - (Required) The name of the protocol to allow. Valid options are: 41 `tcp` and `udp`. 42 43 * `private_port` - (Required) The private port to forward to. 44 45 * `public_port` - (Required) The public port to forward from. 46 47 * `virtual_machine` - (Required) The name of the virtual machine to forward to. 48 49 ## Attributes Reference 50 51 The following attributes are exported: 52 53 * `ipaddress` - The IP address for which the port forwards are created.