You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently using the following permissive firewall configuration to ensure my k3s cluster functions properly. However, I'm concerned about the security risks of having all incoming and outgoing traffic allowed on all ports. Could you advise on the minimum set of ports that should be opened for a k3s cluster to operate securely and efficiently? Here's the current configuration on hetzner cloud:
resource "hcloud_firewall" "k8s_firewall" {name = "k8s-firewall"# Allow all incoming TCP traffic on all portsrule {description = "Allow all incoming TCP traffic"direction = "in"protocol = "tcp"port = "1-65535"source_ips = ["0.0.0.0/0", "::/0"]}# Allow all incoming UDP traffic on all portsrule {description = "Allow all incoming UDP traffic"direction = "in"protocol = "udp"port = "1-65535"source_ips = ["0.0.0.0/0", "::/0"]}# Allow all outgoing TCP traffic on all portsrule {description = "Allow all outgoing TCP traffic"direction = "out"protocol = "tcp"port = "1-65535"destination_ips = ["0.0.0.0/0", "::/0"]}# Allow all outgoing UDP traffic on all portsrule {description = "Allow all outgoing UDP traffic"direction = "out"protocol = "udp"port = "1-65535"destination_ips = ["0.0.0.0/0", "::/0"]}}
What would be the recommended minimal port configuration to enhance security while maintaining functionality?
This discussion was converted from issue #11156 on October 23, 2024 18:34.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm currently using the following permissive firewall configuration to ensure my k3s cluster functions properly. However, I'm concerned about the security risks of having all incoming and outgoing traffic allowed on all ports. Could you advise on the minimum set of ports that should be opened for a k3s cluster to operate securely and efficiently? Here's the current configuration on hetzner cloud:
What would be the recommended minimal port configuration to enhance security while maintaining functionality?
Beta Was this translation helpful? Give feedback.
All reactions