source instead of destination ips
Some checks failed
Deployment / deploy-docker (push) Failing after 10s

This commit is contained in:
Melchior Reimers
2026-02-04 20:08:47 +01:00
parent d9f510f361
commit d47916eff2

View File

@@ -57,11 +57,12 @@ resource "hcloud_firewall" "vps" {
description = "All TCP outbound"
}
rule {
direction = "out"
protocol = "udp"
port = "1-65535"
source_ips = ["0.0.0.0/0", "::/0"]
destination_ips = ["0.0.0.0/0", "::/0"]
description = "All UDP outbound"
}
@@ -75,8 +76,8 @@ resource "hcloud_firewall" "vps" {
direction = "in"
protocol = "tcp"
port = "22"
destination_ips = ["0.0.0.0/0", "::/0"]
description = "ssh outbound"
source_ips = length(var.allowed_ssh_ips) > 0 ? var.allowed_ssh_ips : ["0.0.0.0/0", "::/0"]
description = "SSH inbound"
}
}