github.com/nathanielks/terraform@v0.6.1-0.20170509030759-13e1a62319dc/website/source/docs/providers/profitbricks/r/profitbricks_firewall.html.markdown (about)

     1  ---
     2  layout: "profitbricks"
     3  page_title: "ProfitBricks: profitbricks_firewall"
     4  sidebar_current: "docs-profitbricks-resource-firewall"
     5  description: |-
     6    Creates and manages Firewall Rules.
     7  ---
     8  
     9  # profitbricks\_firewall
    10  
    11  Manages a Firewall Rules on ProfitBricks
    12  
    13  ## Example Usage
    14  
    15  ```hcl
    16  resource "profitbricks_firewall" "example" {
    17    datacenter_id    = "${profitbricks_datacenter.example.id}"
    18    server_id        = "${profitbricks_server.example.id}"
    19    nic_id           = "${profitbricks_server.example.primary_nic}"
    20    protocol         = "TCP"
    21    name             = "test"
    22    port_range_start = 1
    23    port_range_end   = 2
    24  }
    25  ```
    26  
    27  ####Argument reference
    28  
    29  * `datacenter_id` - (Required)[string]
    30  * `server_id` - (Required)[string]
    31  * `nic_id` - (Required)[string]
    32  * `protocol` - (Required)[string] The protocol for the rule: TCP, UDP, ICMP, ANY.
    33  * `name` - (Optional)[string] The name of the firewall rule.
    34  * `source_mac` - (Optional)[string] Only traffic originating from the respective MAC address is allowed. Valid format: aa:bb:cc:dd:ee:ff.
    35  * `source_ip` - (Optional)[string] Only traffic originating from the respective IPv4 address is allowed.
    36  * `target_ip` - (Optional)[string] Only traffic directed to the respective IP address of the NIC is allowed.
    37  * `port_range_start` - (Optional)[string] Defines the start range of the allowed port (from 1 to 65534) if protocol TCP or UDP is chosen.
    38  * `port_range_end` - (Optional)[string] Defines the end range of the allowed port (from 1 to 65534) if the protocol TCP or UDP is chosen.
    39  * `icmp_type` - (Optional)[string] Defines the allowed type (from 0 to 254) if the protocol ICMP is chosen.
    40  * `icmp_code` - (Optional)[string] Defines the allowed code (from 0 to 254) if protocol ICMP is chosen.
    41