tailscale/cmd/containerboot
David Bond 5f390d4845
cmd/containerboot: clamp MSS to PMTU for proxy group pods (#19686) (#19900)
Single-pod ingress/egress proxies already called ClampMSSToPMTU when
setting up forwarding rules, but the proxy group (HA) code paths in
egressservices.go and ingressservices.go did not. This caused TCP
connections through proxy group pods to suffer from MSS/MTU mismatch
issues in environments where path MTU discovery is not working.

Add ClampMSSToPMTU calls in the egress sync loop (alongside the existing
EnsureSNATForDst call) and in addDNATRuleForSvc (alongside the existing
EnsureDNATRuleForSvc call), mirroring what the single-pod forwarding
rules already do.

Also add MSS clamping assertions to TestSyncIngressConfigs and track
ClampMSSToPMTU calls in FakeNetfilterRunner.

Fixes issue #19812 https://github.com/tailscale/tailscale/issues/19812.
Tracking internal ticket TSS-86326.




(cherry picked from commit 4b8115bb2c)

Signed-off-by: Jay Tung <ltung@crusoeenergy.com>
Co-authored-by: dragondscv <dragondscv@gmail.com>
Co-authored-by: Jay Tung <ltung@crusoeenergy.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-28 13:22:46 +01:00
..
egressservices_test.go cmd/{containerboot,k8s-operator}: don't return pointers to maps (#19593) 2026-04-30 16:11:00 +01:00
egressservices.go cmd/containerboot: clamp MSS to PMTU for proxy group pods (#19686) (#19900) 2026-05-28 13:22:46 +01:00
forwarding.go all: use Go 1.26 things, run most gofix modernizers 2026-03-06 13:32:03 -08:00
ingressservices_test.go cmd/containerboot: clamp MSS to PMTU for proxy group pods (#19686) (#19900) 2026-05-28 13:22:46 +01:00
ingressservices.go cmd/containerboot: clamp MSS to PMTU for proxy group pods (#19686) (#19900) 2026-05-28 13:22:46 +01:00
kube_test.go cmd/containerboot,cmd/k8s-proxy,kube: add authkey renewal to k8s-proxy (#19221) 2026-04-15 16:13:46 +01:00
kube.go cmd/containerboot,cmd/k8s-proxy,kube: add authkey renewal to k8s-proxy (#19221) 2026-04-15 16:13:46 +01:00
main_test.go all: migrate code off Notify.NetMap to Notify.SelfChange 2026-05-01 06:51:40 -07:00
main.go all: migrate code off Notify.NetMap to Notify.SelfChange 2026-05-01 06:51:40 -07:00
serve_test.go cmd/containerboot,kube: enable autoadvertisement of Tailscale services on containerboot (#18527) 2026-02-20 15:52:34 -08:00
serve.go cmd/containerboot,kube: enable autoadvertisement of Tailscale services on containerboot (#18527) 2026-02-20 15:52:34 -08:00
settings_test.go cmd/containerboot: handle v6 pod ips that are missing square brackets (#18519) 2026-02-03 11:16:59 +00:00
settings.go cmd/vet: add subtestnames analyzer; fix all existing violations 2026-04-05 15:52:51 -07:00
tailscaled.go cmd/containerboot,kube: enable autoadvertisement of Tailscale services on containerboot (#18527) 2026-02-20 15:52:34 -08:00
test_tailscale.sh cmd/containerboot: make a tests table, add more tests. 2022-11-10 09:14:27 -08:00
test_tailscaled.sh cmd/containerboot: avoid leaking bash scripts after test runs 2023-09-21 13:17:48 -07:00