2023-08-17 21:46:39 +05:00
|
|
|
{ config, ... }:
|
|
|
|
{
|
|
|
|
networking = {
|
|
|
|
hostName = "comfycamp";
|
|
|
|
|
|
|
|
dhcpcd.enable = true;
|
|
|
|
defaultGateway = "192.168.0.1";
|
2024-05-10 16:42:47 +05:00
|
|
|
nameservers = [ "127.0.0.1" ];
|
2023-08-17 21:46:39 +05:00
|
|
|
|
|
|
|
firewall = {
|
2023-08-19 13:36:18 +05:00
|
|
|
enable = true;
|
2023-08-19 16:59:21 +05:00
|
|
|
allowedTCPPorts = [
|
|
|
|
22 # SSH
|
|
|
|
80 # nginx
|
|
|
|
443 # nginx
|
|
|
|
25 # smtp inbound
|
|
|
|
465 # smtp submission
|
|
|
|
587 # smtp submission
|
|
|
|
143 # imap
|
|
|
|
993 # imap
|
2024-02-23 10:52:11 +05:00
|
|
|
|
|
|
|
# Prosody
|
|
|
|
5000 # File transfer proxy
|
|
|
|
5222 # Client connections
|
2024-02-23 15:26:05 +05:00
|
|
|
5223 # Client connections - tls
|
2024-02-23 10:52:11 +05:00
|
|
|
5269 # Server-to-server connections
|
2024-02-23 15:26:05 +05:00
|
|
|
5270 # Server-to-server connections - tls
|
2024-02-23 10:52:11 +05:00
|
|
|
5281 # HTTPS
|
|
|
|
|
2023-10-05 02:50:31 +05:00
|
|
|
6881 # torrents
|
2024-02-01 23:29:26 +05:00
|
|
|
16001 # yggdrasil tcp
|
|
|
|
16002 # yggdrasil tls
|
2024-07-25 18:48:03 +05:00
|
|
|
|
|
|
|
25565 # minecraft
|
2023-10-05 02:50:31 +05:00
|
|
|
];
|
|
|
|
allowedUDPPorts = [
|
2024-05-10 13:43:41 +05:00
|
|
|
53 # DNS
|
2023-10-05 02:50:31 +05:00
|
|
|
1900 # jellyfin
|
|
|
|
7359 # jellyfin
|
|
|
|
6881 # torrents
|
2024-05-10 12:04:02 +05:00
|
|
|
51820 # wireguard
|
2023-08-19 16:59:21 +05:00
|
|
|
];
|
2023-08-17 21:46:39 +05:00
|
|
|
};
|
|
|
|
|
|
|
|
wireless.enable = false;
|
|
|
|
};
|
|
|
|
}
|