Enable local firewall (ufw/nftables) on kai-server #112
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
kai-server has no local firewall in place. Every listening port is currently reachable from anything that can route to its IP. Mitigated externally today only by the router's NAT boundary, and even that gets bypassed by the DMZ-on config tracked in #109. Defense-in-depth would have kai-server reject anything it shouldn't be serving, regardless of what the router is doing upstream.
Plan
ss -tlnpandss -ulnpto inventory listening ports.ufw(simpler, fine for a single host) ornftables(more expressive, lower-level). Default toufwunless k3s already manages nftables chains we'd conflict with.Relationship to #109
Independent but complementary. #109 removes the over-broad DMZ exposure at the router. This issue adds host-level enforcement so the same mistake (or any future router misconfig) doesn't immediately expose every port again. Either one alone is an improvement; both together is correct.
Origin
Surfaced 2026-05-24 alongside the DMZ-off discovery during the router firmware upgrade prep.