From 22e4e19a5b74e33661b4e524280ad956da001830 Mon Sep 17 00:00:00 2001 From: Astro Date: Fri, 10 Jun 2022 01:15:22 +0200 Subject: [PATCH] nixos-module/container/upstream/pppoe: add clamp-mss-to-pmtu for IPv6 --- nix/nixos-module/container/upstream/pppoe.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nix/nixos-module/container/upstream/pppoe.nix b/nix/nixos-module/container/upstream/pppoe.nix index cfa5c9f..424a99d 100644 --- a/nix/nixos-module/container/upstream/pppoe.nix +++ b/nix/nixos-module/container/upstream/pppoe.nix @@ -81,11 +81,13 @@ in lib.mkIf (pppoeInterfaces != {}) { }; }) {} (builtins.attrNames pppoeInterfaces); - # TODO: needed? networking.nat.extraCommands = '' iptables -A FORWARD \ -p tcp --tcp-flags SYN,RST SYN \ -j TCPMSS --clamp-mss-to-pmtu + ip6tables -A FORWARD \ + -p tcp --tcp-flags SYN,RST SYN \ + -j TCPMSS --clamp-mss-to-pmtu ''; }