From 67133cfc011ff2cd2bb5c7aea6c5ebb76ace2e74 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Sat, 29 Jun 2024 08:24:14 +0530 Subject: kay: bump mtu size BSNL recently upgraded their BNGs, bumping the mtu to 1492. this can be seen on the pppd log. other users also reported this, so this is likely not a "misconfiguration" https://broadband.forum/threads/what-is-the-best-mtu-size-for-bsnl-ftth-connections.226751/ --- os/kay/modules/hurricane.nix | 2 +- os/kay/modules/wireguard.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'os/kay') diff --git a/os/kay/modules/hurricane.nix b/os/kay/modules/hurricane.nix index 9e22bf5..9aaf1d1 100644 --- a/os/kay/modules/hurricane.nix +++ b/os/kay/modules/hurricane.nix @@ -24,7 +24,7 @@ in ttl = 225; }; interfaces.${iface} = { - mtu = 1440; # 1460(ppp0) - 20 + mtu = 1472; # 1492(ppp0) - 20 ipv6.addresses = [ { address = clinet; diff --git a/os/kay/modules/wireguard.nix b/os/kay/modules/wireguard.nix index 578a86a..82eb96f 100644 --- a/os/kay/modules/wireguard.nix +++ b/os/kay/modules/wireguard.nix @@ -26,7 +26,7 @@ in wireguard.interfaces.${wgInterface} = { ips = [ "10.0.1.1/${toString prefix}" ]; listenPort = port; - mtu = 1380; # 1460 (ppp0) - 80 + mtu = 1412; # 1492 (ppp0) - 80 privateKeyFile = config.sops.secrets."misc/wireguard".path; peers = [ -- cgit v1.2.3