updates / experimental TC setup

This commit is contained in:
2026-10-24 10:44:58 +02:00
parent 3c25fc5d41
commit d36b281a4d
48 changed files with 1147 additions and 718 deletions
+6 -2
View File
@@ -1,7 +1,11 @@
# roles/thin-client/network/firewall.nix
#
# Hardened firewall: deny all inbound except NetBird interface and ICMP.
{config, lib, ...}: let
{
config,
lib,
...
}: let
inherit (lib) mkIf;
cfg = config.az.tc;
in {
@@ -15,7 +19,7 @@ in {
# NetBird's WireGuard port (allowed by NetBird service itself,
# but make explicit here).
interfaces."wt0".allowedTCPPorts = []; # NetBird userspace daemon
interfaces."wt0".allowedTCPPorts = lib.mkIf cfg.features.netbird [22];
trustedInterfaces = ["lo"];
checkReversePath = "loose";
};