diff options
| author | Jakub Stachurski <jakub@wilkuu.nl> | 2026-07-30 21:58:26 +0200 |
|---|---|---|
| committer | Jakub Stachurski <jakub@wilkuu.nl> | 2026-07-30 21:58:26 +0200 |
| commit | 869cecc8a0dd9f5af2e36c89ddabe54f25bc2ebc (patch) | |
| tree | 6db251dbe2b3ee774dd7e07f679193c104a5cd97 /hosts/tacitus | |
| parent | 8da770badb7fe21df138e770c8d1a8b6c4604882 (diff) | |
Get inventory to manage monitoring connections
This makes it so you can define the monitoring in the inventory and
tacitus will automatically, pick it up.
Diffstat (limited to 'hosts/tacitus')
| -rw-r--r-- | hosts/tacitus/network.nix | 26 |
1 files changed, 10 insertions, 16 deletions
diff --git a/hosts/tacitus/network.nix b/hosts/tacitus/network.nix index 513d89c..9b3beef 100644 --- a/hosts/tacitus/network.nix +++ b/hosts/tacitus/network.nix @@ -48,27 +48,21 @@ in ]; }; }; - networking = { - useNetworkd = true; - nftables.enable = true; - useDHCP = true; - firewall = { - # check enable = true; - checkReversePath = false; + + wilkuu.firewall = { + enable = true; + defaultLayer = "internal"; + layers.internal = { allowedTCPPorts = baseTCP; allowedUDPPorts = baseUDP; allowedUDPPortRanges = baseUDPRanges; allowedTCPPortRanges = baseTCPRanges; - # TODO: Figure out how to do FW that allows only on the internal ip range - #interfaces = { - # "wg-home" = { - # allowedTCPPorts = secureTCP; - # allowedUDPPorts = secureUDP; - # allowedUDPPortRanges = secureUDPRanges; - # allowedTCPPortRanges = secureTCPRanges; - # }; - #}; }; }; + networking = { + useNetworkd = true; + nftables.enable = true; + useDHCP = true; + }; } |
