Interview Prep/Networking/MTU, routing, packet loss and latency

A Linux box acting as router doesn't forward packets between its interfaces.

BeginnerTroubleshootingMTU, routing, packet loss and latency
Answer

Likely causes → IP forwarding disabled, FORWARD chain policy DROP, or missing NAT for return traffic. On AWS also source/destination check is enabled.

Diagnose →

sysctl net.ipv4.ip_forward
sudo iptables -L FORWARD -v -n
aws ec2 describe-instance-attribute --instance-id i-123 --attribute sourceDestCheck

Fix → sysctl -w net.ipv4.ip_forward=1 (persist in /etc/sysctl.d/), allow forwarding, add MASQUERADE if needed, disable source/dest check.

Prevent → Configure routers via code with all four pieces together.

All Networking questions Roadmap: Networking for DevOps

More on MTU, routing, packet loss and latency