nix/nixos/hosts/framework-server/firewall.nix

31 lines
645 B
Nix
Raw Normal View History

2024-03-01 04:24:48 +01:00
{ ... }: {
2024-01-12 04:09:42 +01:00
networking = {
firewall = {
enable = true;
allowedTCPPorts = [
2024-03-22 03:37:18 +01:00
53 # DNS
2024-01-12 04:09:42 +01:00
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
2024-03-01 04:24:48 +01:00
5696 # dsm-kmip server
2024-03-22 03:37:18 +01:00
3389 # RDP
2024-03-25 01:46:12 +01:00
4443 # Jitsi
2024-01-12 04:09:42 +01:00
];
allowedUDPPorts = [
2024-03-22 03:37:18 +01:00
53 # DNS (udp)
2024-01-12 04:09:42 +01:00
10000 # Jitsi Meet (udp)
2024-03-30 07:27:21 +01:00
15636 # Enshrouded
2024-03-30 07:33:00 +01:00
15637 # Enshrouded
2024-01-12 04:09:42 +01:00
];
};
};
2023-12-19 13:27:26 +01:00
}