Interview Prep/Linux/Networking, SSH and remote access

Large file uploads through a VPN tunnel hang while small requests work. You're asked to fix it on the Linux router. What do you do?

AdvancedScenarioNetworking, SSH and remote access
Answer

Situation read → Classic MTU/PMTUD problem; tunnel overhead shrinks the usable MTU.

What I'd do →

  1. Confirm: ping -M do -s 1472 remote fails, a smaller size works.
  2. Clamp TCP MSS on the router:
sudo nft add rule inet filter forward tcp flags syn tcp option maxseg size set rt mtu
  1. Or lower the tunnel interface MTU (e.g. 1400) and make sure ICMP "fragmentation needed" isn't blocked.

Why → Big packets exceed the tunnel MTU and get dropped silently when ICMP is filtered.

Interview tip → "Small works, big hangs" should immediately make you think MTU.

All Linux questions Roadmap: Linux

More on Networking, SSH and remote access