agares: use as router

This commit is contained in:
Tim Schubert 2023-10-14 14:01:06 +02:00
parent 572d813eed
commit b6d36100b7
Signed by: dadada
SSH key fingerprint: SHA256:bFAjFH3hR8zRBaJjzQDjc3o4jqoq5EZ87l+KXEjxIz0
13 changed files with 640 additions and 76 deletions

13
nixos/agares/firewall.nix Normal file
View file

@ -0,0 +1,13 @@
{ ... }:
{
networking = {
useDHCP = false;
nat.enable = false;
firewall.enable = false;
nftables = {
enable = true;
checkRuleset = true;
ruleset = builtins.readFile ./rules.nft;
};
};
}