fix(smb): restrict hosts allow to wg subnet 10.10/16
CI / lint (push) Successful in 35s
CI / eval (push) Successful in 2m4s

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Miguel Palhas
2026-08-21 10:21:39 +01:00
co-authored by Claude Fable 5
parent 25ca90f134
commit 522eda7644
+3 -3
View File
@@ -60,8 +60,8 @@
# Exposes /home/naps62 to arrakis/konishi (custom.smbMounts on both, mounted
# at ~/yolo). Guest auth — the home dir holds SSH keys and credentials, so
# the only guard is `hosts allow` limiting clients to 10/8 (LAN + wireguard
# peers — desktops connect from wg addresses, 10.10.*).
# the only guard is `hosts allow` limiting clients to the wireguard subnet
# (desktops connect from wg addresses, 10.10.*).
# Clients address this VM as 10.7.10.2; keep that DHCP lease reserved.
samba = {
enable = true;
@@ -69,7 +69,7 @@
settings = {
global = {
"map to guest" = "bad user";
"hosts allow" = "10.0.0.0/8 127.0.0.1";
"hosts allow" = "10.10.0.0/16 127.0.0.1";
"hosts deny" = "ALL";
};
home = {