From 45b5b9a88244fd16936adcb158cb66673086a685 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Thu, 13 Feb 2025 21:46:30 +0100 Subject: nano: add useful settings/packages for routing --- system/nano.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'system') diff --git a/system/nano.nix b/system/nano.nix index bda0b0d4..5de5d887 100644 --- a/system/nano.nix +++ b/system/nano.nix @@ -52,6 +52,13 @@ in "tcp_lp" ]; boot.kernel.sysctl = { + "net.ipv6.conf.all.accept_ra" = 0; + "net.ipv6.conf.all.autoconf" = 0; + "net.ipv6.conf.all.use_tempaddr" = 0; + + "net.ipv6.conf.${wan}.accept_ra" = 2; + "net.ipv6.conf.${wan}.autoconf" = 1; + "net.ipv4.tcp_slow_start_after_idle" = 0; "net.ipv4.tcp_ecn" = 1; "net.ipv4.tcp_fastopen" = "0x3"; @@ -296,6 +303,9 @@ in tree lsof knot-dns + ethtool + tcpdump + conntrack-tools ]; programs.fish.enable = true; -- cgit 1.4.1