From 2c2ff954e857cd29b4983766c15c80671e55517c Mon Sep 17 00:00:00 2001 From: vincent Date: Sat, 27 Aug 2022 09:37:25 +0200 Subject: [PATCH] update hetzner forewall --- infra/firewall.tf | 33 +++++++++++++++++++++++---------- 1 file changed, 23 insertions(+), 10 deletions(-) diff --git a/infra/firewall.tf b/infra/firewall.tf index 59c233a..365b67f 100644 --- a/infra/firewall.tf +++ b/infra/firewall.tf @@ -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" + # ] + #} }