Freya: open firewall for syncthing

This commit is contained in:
Filippo Berto 2023-06-05 09:32:26 +02:00
parent 16b97f1e3f
commit 3f4dbf3d9c
Signed by: bertof
GPG key ID: 9DBF7E6A1D2CE9ED

View file

@ -19,7 +19,26 @@
i18n.defaultLocale = "it_IT.UTF-8";
networking.hostName = "freya";
networking.firewall.allowedTCPPorts = [ 80 ];
# networking.firewall.allowedTCPPorts = [ 80 ];
networking.firewall = {
enable = true;
allowPing = true;
allowedTCPPorts = [
# 445 # SAMBA
# 139 # SAMBA
# 5357 # SAMBA-WSDD
# 8123 # HOME ASSISTANT
8384 # SYNCTHING
# 8385 # SYNCTHING
];
allowedUDPPorts = [
137 # SYNCTHING
138 # SYNCTHING
# 3702 # SAMBA-WSDD
];
# extraCommands =
# "iptables -t raw -A OUTPUT -p udp -m udp --dport 137 -j CT --helper netbios-ns";
};
programs = {
dconf.enable = true;