Hybrid cloud cluster monorepo with Ansible, K8s, NixOS, and Terraform. cute.haus
ansible terraform nix k8s
1

Configure Feed

Select the types of activity you want to include in your feed.

terraform/hetzner: import firewall

Aly Raffauf (Jun 8, 2026, 6:54 PM EDT) 318f35ff 7614f506

+67 -1
+67 -1
terraform/hetzner.tf
··· 1 + resource "hcloud_firewall" "solaceon" { 2 + name = "solaceon" 3 + 4 + rule { 5 + direction = "in" 6 + protocol = "tcp" 7 + port = "22" 8 + source_ips = ["0.0.0.0/0", "::/0"] 9 + } 10 + 11 + rule { 12 + direction = "in" 13 + protocol = "tcp" 14 + port = "80" 15 + source_ips = ["0.0.0.0/0", "::/0"] 16 + } 17 + 18 + rule { 19 + direction = "in" 20 + protocol = "tcp" 21 + port = "443" 22 + source_ips = ["0.0.0.0/0", "::/0"] 23 + } 24 + 25 + rule { 26 + direction = "in" 27 + protocol = "tcp" 28 + port = "2222" 29 + source_ips = ["0.0.0.0/0", "::/0"] 30 + } 31 + 32 + rule { 33 + direction = "in" 34 + protocol = "tcp" 35 + port = "23" 36 + source_ips = ["0.0.0.0/0", "::/0"] 37 + } 38 + 39 + rule { 40 + direction = "in" 41 + protocol = "tcp" 42 + port = "8282" 43 + source_ips = ["0.0.0.0/0", "::/0"] 44 + } 45 + 46 + rule { 47 + direction = "in" 48 + protocol = "tcp" 49 + port = "8383" 50 + source_ips = ["0.0.0.0/0", "::/0"] 51 + } 52 + 53 + rule { 54 + direction = "in" 55 + protocol = "udp" 56 + port = "41641" 57 + source_ips = ["0.0.0.0/0", "::/0"] 58 + } 59 + 60 + rule { 61 + direction = "in" 62 + protocol = "icmp" 63 + source_ips = ["0.0.0.0/0", "::/0"] 64 + } 65 + } 66 + 1 67 resource "hcloud_server" "solaceon" { 2 68 name = "solaceon" 3 69 server_type = "cx22" 4 70 image = "ubuntu-24.04" 5 71 location = "nbg1" 6 72 backups = true 7 - firewall_ids = [2127864] 73 + firewall_ids = [hcloud_firewall.solaceon.id] 8 74 }