From 522eda764490fadec33d946cdaff878c530d1121 Mon Sep 17 00:00:00 2001 From: Miguel Palhas Date: Fri, 21 Aug 2026 10:21:39 +0100 Subject: [PATCH] fix(smb): restrict hosts allow to wg subnet 10.10/16 Co-Authored-By: Claude Fable 5 --- hosts/yolo/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hosts/yolo/default.nix b/hosts/yolo/default.nix index a10a914..70f1aaa 100644 --- a/hosts/yolo/default.nix +++ b/hosts/yolo/default.nix @@ -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 = {