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

38 lines
869 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;
2024-10-24 05:45:59 +02:00
allowedTCPPorts = [
53 # DNS
80 # HTTP
443 # HTTPS
];
2024-10-22 15:02:14 +02:00
interfaces = {
wireguard0 = {
allowedTCPPorts = [
# 53 # DNS
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 = [
# 53 # DNS (udp)
10000 # Jitsi Meet (udp)
# 15636 # Enshrouded - Game
# 15637 # Enshrouded - Query Port
];
};
2024-10-22 13:29:36 +02:00
};
2024-01-12 04:09:42 +01:00
};
};
2023-12-19 13:27:26 +01:00
}