update hetzner forewall

This commit is contained in:
vincent 2022-08-27 09:37:25 +02:00
parent 4266840d66
commit 2c2ff954e8

View File

@ -18,15 +18,17 @@ resource "hcloud_firewall" "HomeLab" {
"::/0"
]
}
# torrent UDH port
rule {
direction ="in"
protocol = "tcp"
protocol = "udp"
port = "6881"
source_ips = [
"0.0.0.0/0",
"::/0"
]
}
# wireguard port
rule {
direction ="in"
protocol = "udp"
@ -37,6 +39,17 @@ resource "hcloud_firewall" "HomeLab" {
]
}
# torrent listen port
rule {
direction ="in"
protocol = "tcp"
port = "50000"
source_ips = [
"0.0.0.0/0",
"::/0"
]
}
rule {
direction ="in"
protocol = "icmp"
@ -45,13 +58,13 @@ resource "hcloud_firewall" "HomeLab" {
"::/0"
]
}
rule {
direction = "in"
protocol = "tcp"
port = "22"
source_ips = [
"0.0.0.0/0",
"::/0"
]
}
# rule {
# direction = "in"
# protocol = "tcp"
# port = "22"
# source_ips = [
# "0.0.0.0/0",
# "::/0"
# ]
#}
}