config/net: re-enable the firewall now that SMTP is operational

This commit is contained in:
Colin 2022-05-08 00:15:50 +00:00
parent b67882f32d
commit 55b043c80d

View File

@ -3,11 +3,19 @@
{
networking.domain = "uninsane.org";
networking.firewall.enable = false;
# networking.firewall.enable = true;
# networking.firewall.allowedTCPPorts = [ 25 80 143 443 993 ];
# # DLNA ports: https://jellyfin.org/docs/general/networking/index.html
# networking.firewall.allowedUDPPorts = [ 1900 7359 ];
# networking.firewall.enable = false;
networking.firewall.enable = true;
networking.firewall.allowedTCPPorts = [
25 # SMTP
80 # HTTP
143 # IMAP
443 # HTTPS
465 # SMTPS (maybe not required?)
587 # SMTPS/submission (maybe not required?)
993 # IMAPS
];
# DLNA ports: https://jellyfin.org/docs/general/networking/index.html
networking.firewall.allowedUDPPorts = [ 1900 7359 ];
# we need to use externally-visible nameservers in order for VPNs to be able to resolve hosts.
networking.nameservers = [