Motiejus Jakštys 2023-09-12 23:10:59 +03:00
parent e45573c8a6
commit 53ce3910aa
2 changed files with 20 additions and 11 deletions

View File

@ -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";
};

View File

@ -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
}
];
};
}