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
|
sshPattern = "100.89.176.?"; # until we have more hosts
|
||||||
};
|
};
|
||||||
motiejus.cidrs = let
|
motiejus.cidrs = let
|
||||||
mHosts =
|
mHosts =
|
||||||
attrVals [
|
attrVals [
|
||||||
"mxp10.motiejus.jakst"
|
"mxp10.motiejus.jakst"
|
||||||
"fwmine.motiejus.jakst"
|
"fwmine.motiejus.jakst"
|
||||||
]
|
]
|
||||||
hosts;
|
hosts;
|
||||||
in builtins.catAttrs "jakstIP" mHosts;
|
in
|
||||||
|
builtins.catAttrs "jakstIP" mHosts;
|
||||||
|
|
||||||
vno1.cidr = "192.168.189.0/24";
|
vno1.cidr = "192.168.189.0/24";
|
||||||
};
|
};
|
||||||
|
@ -19,8 +19,8 @@
|
|||||||
# https://wiki.samba.org/index.php/Setting_up_Samba_as_a_Standalone_Server
|
# https://wiki.samba.org/index.php/Setting_up_Samba_as_a_Standalone_Server
|
||||||
enable = true;
|
enable = true;
|
||||||
securityType = "user";
|
securityType = "user";
|
||||||
enableNmbd = true;
|
enableNmbd = false;
|
||||||
enableWinbindd = true;
|
enableWinbindd = false;
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
map to guest = Bad User
|
map to guest = Bad User
|
||||||
log level = 1
|
log level = 1
|
||||||
@ -42,6 +42,8 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.samba-wsdd.enable = true;
|
||||||
|
|
||||||
users.users.jakstpub = {
|
users.users.jakstpub = {
|
||||||
description = "Jakstys Public";
|
description = "Jakstys Public";
|
||||||
home = "/var/empty";
|
home = "/var/empty";
|
||||||
@ -58,10 +60,16 @@
|
|||||||
unitConfig.Requires = requires;
|
unitConfig.Requires = requires;
|
||||||
};
|
};
|
||||||
|
|
||||||
mj.services.friendlyport.ports = [{
|
mj.services.friendlyport.ports = [
|
||||||
subnets = with myData.subnets; [tailscale.cidr vno1.cidr];
|
{
|
||||||
tcp = [ 139 445 ];
|
subnets = with myData.subnets; [tailscale.cidr vno1.cidr];
|
||||||
udp = [ 137 138 ];
|
tcp = [
|
||||||
}];
|
139 # smbd
|
||||||
|
445 # smbd
|
||||||
|
5357 # wsdd
|
||||||
|
];
|
||||||
|
udp = [3702]; # wsdd
|
||||||
|
}
|
||||||
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user