CertGrid CertGrid
Hands-on Lab·Certified Kubernetes Security Specialist

Restricting Node External Network Access

The node's listening ports are only a finding once you prove what answers on them. This guide probes two of them from another machine, finds one that authenticates and one that does not, closes the second with a single scoped rule, and puts it back.

System Hardening Guide 16 of 40 Advanced

Written against the versions above. The demonstration adds one nftables rule in a table of its own so kube-proxy's and Cilium's chains are untouched, and deletes that table afterwards. `ufw` is installed and inactive on these nodes.

The cka7001 cluster: one control plane and 1 schedulable worker, on Cilium.
Server NameIP AddressOSRolesCPURAMHDD
CKA7001192.168.0.51Ubuntu 26.04 LTSControl Plane Node (tainted NoSchedule)2 Core4 GB50 GB
CKA7001-NODE01192.168.0.52Ubuntu 26.04 LTSWorker Node2 Core4 GB50 GB

Before you start

  1. The surface, and what is guarding it

  2. Prove the exposure from another machine

  3. Close it at the host, and measure again

  4. Put it back, and say what the real fix is

Official sources