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.
More on MTU, routing, packet loss and latency
SSH connects, but the session freezes as soon as you run `ls` in a big directory or `cat` a large file.IntermediateHTTPS to a site over the VPN hangs after `Client hello`, while HTTP works.Intermediate`ping: local error: message too long, mtu=1500`BeginnerPods on different nodes can ping each other, but HTTP responses larger than ~1.4 KB never arrive.Advanced`mtr` shows 30% loss at hop 6, but 0% at the final destination.Beginner`mtr` shows loss starting at hop 4 and continuing to the destination at 8–10%.Intermediate