2023-08-17 21:46:39 +05:00
|
|
|
{ config, ... }:
|
|
|
|
{
|
|
|
|
networking = {
|
|
|
|
hostName = "comfycamp";
|
|
|
|
|
|
|
|
dhcpcd.enable = true;
|
|
|
|
defaultGateway = "192.168.0.1";
|
|
|
|
nameservers = [ "1.1.1.1" ];
|
|
|
|
|
|
|
|
firewall = {
|
2023-08-19 13:36:18 +05:00
|
|
|
enable = true;
|
2023-08-19 16:59:21 +05:00
|
|
|
allowedTCPPorts = [
|
|
|
|
22 # SSH
|
2023-11-19 17:00:43 +05:00
|
|
|
53 # adguard
|
2023-08-19 16:59:21 +05:00
|
|
|
80 # nginx
|
|
|
|
443 # nginx
|
|
|
|
25 # smtp inbound
|
|
|
|
465 # smtp submission
|
|
|
|
587 # smtp submission
|
|
|
|
143 # imap
|
|
|
|
993 # imap
|
2023-11-19 23:05:51 +05:00
|
|
|
5280 # prosody http
|
|
|
|
5281 # prosody https
|
2023-10-05 02:50:31 +05:00
|
|
|
6881 # torrents
|
2023-11-19 17:00:43 +05:00
|
|
|
55010 # adguard
|
2023-10-05 02:50:31 +05:00
|
|
|
];
|
|
|
|
allowedUDPPorts = [
|
2023-11-19 17:00:43 +05:00
|
|
|
53 # adguard
|
2023-10-05 02:50:31 +05:00
|
|
|
1900 # jellyfin
|
|
|
|
7359 # jellyfin
|
|
|
|
6881 # torrents
|
2023-08-19 16:59:21 +05:00
|
|
|
];
|
2023-08-17 21:46:39 +05:00
|
|
|
};
|
|
|
|
|
|
|
|
wireless.enable = false;
|
|
|
|
};
|
|
|
|
}
|