updates / experimental TC setup
This commit is contained in:
@@ -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";
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user