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
3
data.nix
3
data.nix
@ -102,7 +102,8 @@ rec {
|
|||||||
"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];
|
subnets = with myData.subnets; [tailscale.cidr vno1.cidr];
|
||||||
tcp = [ 139 445 ];
|
tcp = [
|
||||||
udp = [ 137 138 ];
|
139 # smbd
|
||||||
}];
|
445 # smbd
|
||||||
|
5357 # wsdd
|
||||||
|
];
|
||||||
|
udp = [3702]; # wsdd
|
||||||
|
}
|
||||||
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user