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 →
- Confirm:
ping -M do -s 1472 remotefails, a smaller size works. - Clamp TCP MSS on the router:
sudo nft add rule inet filter forward tcp flags syn tcp option maxseg size set rt mtu
- 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.
More on Networking, SSH and remote access
A key belonging to a departed engineer may be in `authorized_keys` on 300 servers. How do you rotate SSH keys across the fleet?IntermediateYou need to reach a database on a private subnet from your laptop through a bastion. How?BeginnerYour security team wants SSH hardened on all servers. What changes do you make?BeginnerA new server needs a static IP, gateway and DNS on RHEL 9. How do you configure it persistently?BeginnerYou're changing the network config of a remote server over SSH and could lose access. How do you protect yourself?IntermediateA web server should accept HTTP/HTTPS from anywhere but SSH only from the office. Configure the firewall.Beginner