Fix firewall ports
This commit is contained in:
parent
c8fd884cc7
commit
15a96c6883
1 changed files with 16 additions and 0 deletions
|
|
@ -191,6 +191,22 @@
|
|||
};
|
||||
};
|
||||
|
||||
networking.firewall = {
|
||||
enable = true;
|
||||
allowPing = true;
|
||||
allowedTCPPorts = [
|
||||
445 # SAMBA
|
||||
139 # SAMBA
|
||||
8384 # SYNCTHING
|
||||
8385 # SYNCTHING
|
||||
];
|
||||
allowedUDPPorts = [
|
||||
137 # SYNCTHING
|
||||
138 # SYNCTHING
|
||||
];
|
||||
extraCommands = ''iptables -t raw -A OUTPUT -p udp -m udp --dport 137 -j CT --helper netbios-ns'';
|
||||
};
|
||||
|
||||
virtualisation = {
|
||||
docker.enable = true;
|
||||
kvmgt.enable = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue