Fix Samba
This commit is contained in:
parent
fa56b31737
commit
4e8423c4eb
1 changed files with 6 additions and 0 deletions
|
|
@ -95,6 +95,10 @@
|
||||||
openssh = { enable = true; openFirewall = true; permitRootLogin = "no"; passwordAuthentication = false; };
|
openssh = { enable = true; openFirewall = true; permitRootLogin = "no"; passwordAuthentication = false; };
|
||||||
plex = { enable = true; openFirewall = true; group = "users"; };
|
plex = { enable = true; openFirewall = true; group = "users"; };
|
||||||
power-profiles-daemon.enable = true;
|
power-profiles-daemon.enable = true;
|
||||||
|
samba-wsdd = {
|
||||||
|
enable = true;
|
||||||
|
discovery = true;
|
||||||
|
};
|
||||||
samba = {
|
samba = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableNmbd = true;
|
enableNmbd = true;
|
||||||
|
|
@ -203,12 +207,14 @@
|
||||||
allowedTCPPorts = [
|
allowedTCPPorts = [
|
||||||
445 # SAMBA
|
445 # SAMBA
|
||||||
139 # SAMBA
|
139 # SAMBA
|
||||||
|
5357 # SAMBA-WSDD
|
||||||
8384 # SYNCTHING
|
8384 # SYNCTHING
|
||||||
8385 # SYNCTHING
|
8385 # SYNCTHING
|
||||||
];
|
];
|
||||||
allowedUDPPorts = [
|
allowedUDPPorts = [
|
||||||
137 # SYNCTHING
|
137 # SYNCTHING
|
||||||
138 # SYNCTHING
|
138 # SYNCTHING
|
||||||
|
3702 # SAMBA-WSDD
|
||||||
];
|
];
|
||||||
extraCommands = ''iptables -t raw -A OUTPUT -p udp -m udp --dport 137 -j CT --helper netbios-ns'';
|
extraCommands = ''iptables -t raw -A OUTPUT -p udp -m udp --dport 137 -j CT --helper netbios-ns'';
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue