mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-03-12 16:00:25 -04:00
1.3 KiB
1.3 KiB
layout, page_title, sidebar_current, description
| layout | page_title | sidebar_current | description |
|---|---|---|---|
| oneandone | 1&1: oneandone_firewall_policy | docs-oneandone-resource-firewall-policy | Creates and manages 1&1 Firewall Policy. |
oneandone_server
Manages a Firewall Policy on 1&1
Example Usage
resource "oneandone_firewall_policy" "fw" {
name = "test_fw_011"
rules = [
{
"protocol" = "TCP"
"port_from" = 80
"port_to" = 80
"source_ip" = "0.0.0.0"
},
{
"protocol" = "ICMP"
"source_ip" = "0.0.0.0"
},
{
"protocol" = "TCP"
"port_from" = 43
"port_to" = 43
"source_ip" = "0.0.0.0"
},
{
"protocol" = "TCP"
"port_from" = 22
"port_to" = 22
"source_ip" = "0.0.0.0"
}
]
}
Argument Reference
The following arguments are supported:
description- (Optional) Description for the VPNname- (Required) The name of the VPN.
Firewall Policy Rules (rules) support the follwing:
protocol- (Required) The protocol for the rule. Allowed values areTCP,UDP,TCP/UDP,ICMPandIPSEC.port_from- (Optional) Defines the start range of the allowed portport_to- (Optional) Defines the end range of the allowed portsource_ip- (Optional) Only traffic directed to the respective IP address