From 3e4597b89c77efb695cf4db79e1fb9c84f3595d0 Mon Sep 17 00:00:00 2001 From: Lewis Buckley Date: Wed, 20 Aug 2025 12:24:18 +0100 Subject: [PATCH] Set net.ipv4.tcp_mtu_probing to 2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit > Forces every new TCP socket to begin at a > conservative MSS > (min(path MTU, 1024 bytes) – 40). > Immediately sends progressively larger probes > and raises the MSS as soon as they’re ACKed. This has been found to solve very slow deploys with Tailscale, Kamal and our internal Docker registry. --- install/config/config.sh | 4 ++-- migrations/1755244361.sh | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 migrations/1755244361.sh diff --git a/install/config/config.sh b/install/config/config.sh index 2f420e8d..a1db09ca 100644 --- a/install/config/config.sh +++ b/install/config/config.sh @@ -29,8 +29,8 @@ sudo sed -i 's|^\(auth\s\+\[default=die\]\s\+pam_faillock.so\)\s\+authfail.*$|\1 # Set Cloudflare as primary DNS (with Google as backup) sudo cp ~/.local/share/omarchy/default/systemd/resolved.conf /etc/systemd/ -# Solve common flakiness with SSH -echo "net.ipv4.tcp_mtu_probing=1" | sudo tee -a /etc/sysctl.d/99-sysctl.conf +# Solve common flakiness with SSH and Tailscale performance +echo "net.ipv4.tcp_mtu_probing=2" | sudo tee -a /etc/sysctl.d/99-sysctl.conf # Set common git aliases git config --global alias.co checkout diff --git a/migrations/1755244361.sh b/migrations/1755244361.sh new file mode 100644 index 00000000..32dedc8d --- /dev/null +++ b/migrations/1755244361.sh @@ -0,0 +1 @@ +sudo sed -i 's/^net.ipv4.tcp_mtu_probing=1/net.ipv4.tcp_mtu_probing=2/' /etc/sysctl.d/99-sysctl.conf