2025-04-16 21:09:17 +00:00
|
|
|
{
|
|
|
|
networking = {
|
|
|
|
firewall = {
|
|
|
|
enable = true;
|
2025-05-13 21:31:29 +02:00
|
|
|
allowedTCPPorts = [
|
|
|
|
80
|
|
|
|
443
|
|
|
|
];
|
2025-04-16 21:09:17 +00:00
|
|
|
trustedInterfaces = [ "tailscale0" ];
|
|
|
|
extraInputRules =
|
|
|
|
let
|
|
|
|
localIPv4Range = "192.168.10.0/24";
|
|
|
|
in
|
|
|
|
''
|
2025-05-31 15:38:42 +00:00
|
|
|
ip saddr ${localIPv4Range} accept
|
2025-04-16 21:09:17 +00:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
nftables.enable = true;
|
|
|
|
};
|
|
|
|
}
|