source instead of destination ips
Some checks failed
Deployment / deploy-docker (push) Failing after 10s
Some checks failed
Deployment / deploy-docker (push) Failing after 10s
This commit is contained in:
7
main.tf
7
main.tf
@@ -57,11 +57,12 @@ resource "hcloud_firewall" "vps" {
|
|||||||
description = "All TCP outbound"
|
description = "All TCP outbound"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
rule {
|
rule {
|
||||||
direction = "out"
|
direction = "out"
|
||||||
protocol = "udp"
|
protocol = "udp"
|
||||||
port = "1-65535"
|
port = "1-65535"
|
||||||
source_ips = ["0.0.0.0/0", "::/0"]
|
destination_ips = ["0.0.0.0/0", "::/0"]
|
||||||
description = "All UDP outbound"
|
description = "All UDP outbound"
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -75,8 +76,8 @@ resource "hcloud_firewall" "vps" {
|
|||||||
direction = "in"
|
direction = "in"
|
||||||
protocol = "tcp"
|
protocol = "tcp"
|
||||||
port = "22"
|
port = "22"
|
||||||
destination_ips = ["0.0.0.0/0", "::/0"]
|
source_ips = length(var.allowed_ssh_ips) > 0 ? var.allowed_ssh_ips : ["0.0.0.0/0", "::/0"]
|
||||||
description = "ssh outbound"
|
description = "SSH inbound"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user