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:
15
main.tf
15
main.tf
@@ -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"
|
||||
}
|
||||
|
||||
@@ -71,12 +72,12 @@ resource "hcloud_firewall" "vps" {
|
||||
destination_ips = ["0.0.0.0/0", "::/0"]
|
||||
description = "ICMP outbound"
|
||||
}
|
||||
rule {
|
||||
direction = "in"
|
||||
protocol = "tcp"
|
||||
port = "22"
|
||||
destination_ips = ["0.0.0.0/0", "::/0"]
|
||||
description = "ssh outbound"
|
||||
rule {
|
||||
direction = "in"
|
||||
protocol = "tcp"
|
||||
port = "22"
|
||||
source_ips = length(var.allowed_ssh_ips) > 0 ? var.allowed_ssh_ips : ["0.0.0.0/0", "::/0"]
|
||||
description = "SSH inbound"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user