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" "::/0"
] ]
} }
# torrent UDH port
rule { rule {
direction ="in" direction ="in"
protocol = "tcp" protocol = "udp"
port = "6881" port = "6881"
source_ips = [ source_ips = [
"0.0.0.0/0", "0.0.0.0/0",
"::/0" "::/0"
] ]
} }
# wireguard port
rule { rule {
direction ="in" direction ="in"
protocol = "udp" 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 { rule {
direction ="in" direction ="in"
protocol = "icmp" protocol = "icmp"
@ -45,13 +58,13 @@ resource "hcloud_firewall" "HomeLab" {
"::/0" "::/0"
] ]
} }
rule { # rule {
direction = "in" # direction = "in"
protocol = "tcp" # protocol = "tcp"
port = "22" # port = "22"
source_ips = [ # source_ips = [
"0.0.0.0/0", # "0.0.0.0/0",
"::/0" # "::/0"
] # ]
} #}
} }