aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/digitalocean/firewall
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-08-04 15:40:30 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-08-04 15:40:30 +0200
commitdfd01a67adcb52f984bc3a9755a312cc60fc5a82 (patch)
tree4da7fef51b7c903cfdc363111b0217c093584643 /digitalocean/firewall
parents3_state -> aws/state (diff)
downloadinfra-terraform-dfd01a67adcb52f984bc3a9755a312cc60fc5a82.tar.gz
infra-terraform-dfd01a67adcb52f984bc3a9755a312cc60fc5a82.zip
digitalocean/firewall: open ports for UDP alsov0.0.4
Diffstat (limited to '')
-rw-r--r--digitalocean/firewall/main.tf10
1 files changed, 10 insertions, 0 deletions
diff --git a/digitalocean/firewall/main.tf b/digitalocean/firewall/main.tf
index 937a76a..b0a435a 100644
--- a/digitalocean/firewall/main.tf
+++ b/digitalocean/firewall/main.tf
@@ -21,6 +21,16 @@ resource "digitalocean_firewall" "this" {
}
}
+ dynamic "inbound_rule" {
+ for_each = var.open_ports
+
+ content {
+ protocol = "udp"
+ port_range = inbound_rule.value
+ source_addresses = ["0.0.0.0/0", "::/0"]
+ }
+ }
+
outbound_rule {
protocol = "tcp"
port_range = "1-65535"