π ~1 min read
Table of contents
Symptom & Impact
Pods cannot reach services and cluster nodes show connection errors.

Environment & Reproduction
Seen on Ubuntu 24.04 nodes where UFW defaults deny forwarding.

Root Cause Analysis
Firewall policy blocks CNI bridge traffic and Kubernetes control-plane ports.

Quick Triage
Check sudo ufw status verbose and sudo iptables -S FORWARD.

Step-by-Step Diagnosis
Validate required ports and inspect dropped packets with sudo journalctl -u ufw -n 80.

Solution – Primary Fix
Set DEFAULT_FORWARD_POLICY=”ACCEPT” in /etc/default/ufw, allow Kubernetes ports, then run sudo ufw reload.
Still having issues? Our IT Solutions & Services team can diagnose and resolve this for you. Get in touch for a free consultation.

Solution – Alternative Approaches
Temporarily disable UFW for isolation testing using sudo ufw disable.

Verification & Acceptance Criteria
kubectl get nodes is Ready and pod-to-service communication succeeds.

Rollback Plan
Restore prior /etc/default/ufw and rule set from backup.

Prevention & Hardening
Document required cluster ports and codify firewall rules in provisioning.

Related Errors & Cross-Refs
Related: CoreDNS timeouts and failed CNI setup.
Related tutorial: View the step-by-step tutorial for Ubuntu 24.04 LTS.
View all Ubuntu 24.04 LTS tutorials on the Tutorials Hub β
Browse all common problems & solutions on the Tutorials Hub.

References & Further Reading
Kubernetes networking prerequisites and UFW documentation.

Need Expert Help?
If you cannot resolve this yourself, our team offers hands-on Server Management, Managed IT Services, and flexible Support Plans. Contact us today β we respond within one business day.