nix/nixos/hosts/framework-server/firewall.nix
2024-01-14 13:12:56 +09:00

25 lines
552 B
Nix

{ config, lib, pkgs, ... }: {
networking = {
firewall = {
enable = true;
allowedTCPPorts = [
80 # HTTP
443 # HTTPS
42420 # Vintage Story
25565 # Minecraft
1443 # Headscale DERP (tcp)
25 # Mailserver
143 # Mailserver
465 # Mailserver
587 # Mailserver
993 # Mailserver
4190 # Mailserver
4443 # Jitsi
];
allowedUDPPorts = [
3478 # Headscale DERP (udp)
10000 # Jitsi Meet (udp)
];
};
};
}