rewrite networking modules

This commit is contained in:
Schrottkatze 2025-03-27 20:18:54 +01:00
commit 0bbb0aa204
No known key found for this signature in database
11 changed files with 69 additions and 71 deletions

40
modules/net/firewall.nix Normal file
View file

@ -0,0 +1,40 @@
{
config,
lib,
pkgs,
...
}: {
config = {
networking = {
firewall = {
enable = true;
allowedTCPPorts = [
# ssh
22
# http, https
80
443
# syncthing
22000
# mumble
64738
];
allowedUDPPorts = [
8080
# other
12333
# syncthing discovery
21027
# mumble
64738
];
};
};
};
}