replace nmbd with wsdd
https://askubuntu.com/questions/661611/make-samba-share-visible-in-windows-network
This commit is contained in:
parent
e45573c8a6
commit
53ce3910aa
9
data.nix
9
data.nix
@ -96,13 +96,14 @@ rec {
|
||||
sshPattern = "100.89.176.?"; # until we have more hosts
|
||||
};
|
||||
motiejus.cidrs = let
|
||||
mHosts =
|
||||
mHosts =
|
||||
attrVals [
|
||||
"mxp10.motiejus.jakst"
|
||||
"fwmine.motiejus.jakst"
|
||||
"mxp10.motiejus.jakst"
|
||||
"fwmine.motiejus.jakst"
|
||||
]
|
||||
hosts;
|
||||
in builtins.catAttrs "jakstIP" mHosts;
|
||||
in
|
||||
builtins.catAttrs "jakstIP" mHosts;
|
||||
|
||||
vno1.cidr = "192.168.189.0/24";
|
||||
};
|
||||
|
@ -19,8 +19,8 @@
|
||||
# https://wiki.samba.org/index.php/Setting_up_Samba_as_a_Standalone_Server
|
||||
enable = true;
|
||||
securityType = "user";
|
||||
enableNmbd = true;
|
||||
enableWinbindd = true;
|
||||
enableNmbd = false;
|
||||
enableWinbindd = false;
|
||||
extraConfig = ''
|
||||
map to guest = Bad User
|
||||
log level = 1
|
||||
@ -42,6 +42,8 @@
|
||||
};
|
||||
};
|
||||
|
||||
services.samba-wsdd.enable = true;
|
||||
|
||||
users.users.jakstpub = {
|
||||
description = "Jakstys Public";
|
||||
home = "/var/empty";
|
||||
@ -58,10 +60,16 @@
|
||||
unitConfig.Requires = requires;
|
||||
};
|
||||
|
||||
mj.services.friendlyport.ports = [{
|
||||
subnets = with myData.subnets; [tailscale.cidr vno1.cidr];
|
||||
tcp = [ 139 445 ];
|
||||
udp = [ 137 138 ];
|
||||
}];
|
||||
mj.services.friendlyport.ports = [
|
||||
{
|
||||
subnets = with myData.subnets; [tailscale.cidr vno1.cidr];
|
||||
tcp = [
|
||||
139 # smbd
|
||||
445 # smbd
|
||||
5357 # wsdd
|
||||
];
|
||||
udp = [3702]; # wsdd
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user