github.com/danp/terraform@v0.9.5-0.20170426144147-39d740081351/website/source/docs/providers/oneandone/r/firewall_policy.html.markdown (about) 1 --- 2 layout: "oneandone" 3 page_title: "1&1: oneandone_firewall_policy" 4 sidebar_current: "docs-oneandone-resource-firewall-policy" 5 description: |- 6 Creates and manages 1&1 Firewall Policy. 7 --- 8 9 # oneandone\_server 10 11 Manages a Firewall Policy on 1&1 12 13 ## Example Usage 14 15 ```hcl 16 resource "oneandone_firewall_policy" "fw" { 17 name = "test_fw_011" 18 rules = [ 19 { 20 "protocol" = "TCP" 21 "port_from" = 80 22 "port_to" = 80 23 "source_ip" = "0.0.0.0" 24 }, 25 { 26 "protocol" = "ICMP" 27 "source_ip" = "0.0.0.0" 28 }, 29 { 30 "protocol" = "TCP" 31 "port_from" = 43 32 "port_to" = 43 33 "source_ip" = "0.0.0.0" 34 }, 35 { 36 "protocol" = "TCP" 37 "port_from" = 22 38 "port_to" = 22 39 "source_ip" = "0.0.0.0" 40 } 41 ] 42 } 43 ``` 44 45 ## Argument Reference 46 47 The following arguments are supported: 48 49 * `description` - (Optional) Description for the VPN 50 * `name` - (Required) The name of the VPN. 51 52 Firewall Policy Rules (`rules`) support the follwing: 53 54 * `protocol` - (Required) The protocol for the rule. Allowed values are `TCP`, `UDP`, `TCP/UDP`, `ICMP` and `IPSEC`. 55 * `port_from` - (Optional) Defines the start range of the allowed port 56 * `port_to` - (Optional) Defines the end range of the allowed port 57 * `source_ip` - (Optional) Only traffic directed to the respective IP address 58