Solved Host-based access controls with Windows 11 Home folder sharing


ajgringo619

Member
Local time
12:28 AM
Posts
20
OS
Windows 11
Coming from a Linux background, I was able to block certain hosts from accessing NFS shares. Is this possible with Windows 11 Home folder sharing? All of the guest VMs are Linux-based (using Hyper-V).
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom
    CPU
    Intel Core i5-13400F
    Motherboard
    PRIME B760M-A
    Memory
    32 GB
    Graphics Card(s)
    Nvidia 4060
    Sound Card
    On-board
    Monitor(s) Displays
    (2) Acer XD270H B
    Screen Resolution
    1920x1080
    Hard Drives
    (1) M2 1TB
    PSU
    600W
    Case
    Tower
    Cooling
    (3) Case fans
    Keyboard
    Standard
    Mouse
    Standard
    Internet Speed
    250 Mbps
    Browser
    Vivaldi
Can you expand on what your trying to do. I am reading this as you want to block specific hosts (VMs) from specific shares (or all shares on a given host)?
 

My Computer

System One

  • OS
    Windows 11
Can you expand on what your trying to do. I am reading this as you want to block specific hosts (VMs) from specific shares (or all shares on a given host)?
Exactly. Since I'm very familiar with NFS, I would prefer using an NFS server solution. Do you know if this is possible via WSL?
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom
    CPU
    Intel Core i5-13400F
    Motherboard
    PRIME B760M-A
    Memory
    32 GB
    Graphics Card(s)
    Nvidia 4060
    Sound Card
    On-board
    Monitor(s) Displays
    (2) Acer XD270H B
    Screen Resolution
    1920x1080
    Hard Drives
    (1) M2 1TB
    PSU
    600W
    Case
    Tower
    Cooling
    (3) Case fans
    Keyboard
    Standard
    Mouse
    Standard
    Internet Speed
    250 Mbps
    Browser
    Vivaldi
Exactly. Since I'm very familiar with NFS, I would prefer using an NFS server solution. Do you know if this is possible via WSL?

Rights to shares can easily be administered thru the GUI.
If you want to block a system, use the Hosts file.
I am not sure for the Home version though.
 

My Computers

System One System Two

  • OS
    Win11 All /Debian/Arch
    Computer type
    Laptop
    Manufacturer/Model
    ASUSTeK COMPUTER INC. TUF Gaming FX705GM
    CPU
    2.20 gigahertz Intel i7-8750H Hyper-threaded 12 cores
    Motherboard
    ASUSTeK COMPUTER INC. FX705GM 1.0
    Memory
    24428 Megabytes
    Graphics Card(s)
    Intel(R) UHD Graphics 630 / NVIDIA GeForce GTX 1060
    Sound Card
    Intel(R) Display Audio / Realtek(R) Audio
    Monitor(s) Displays
    Integrated Monitor (17.3"vis)
    Screen Resolution
    FHD 1920X1080 16:9
    Hard Drives
    2 SSD SATA/NVM Express 1.3
    WDS500G2B0A-00SM50 500.1 GB
    WDCSDAPNUW-1002 256 GB
    PSU
    19V DC 6.32 A 120 W
    Cooling
    Dual Fans
    Mouse
    MS Bluetooth
    Internet Speed
    Fiber 1GB Cox -us & ADSL Bouygues -fr
    Browser
    Edge Canary- Firefox Nightly
    Antivirus
    Windows Defender
    Other Info
    VMs of Windows 11 stable/Beta/Dev/Canary
    VM of XeroLinux- Arch based & Debian 12
  • Operating System
    Windows 11 Insider Canary
    Computer type
    Laptop
    Manufacturer/Model
    ASUS X751BP
    CPU
    AMD Dual Core A6-9220
    Motherboard
    ASUS
    Memory
    8 GB
    Graphics card(s)
    AMD Radeon R5 M420
    Sound Card
    Realtek
    Monitor(s) Displays
    17.3
    Screen Resolution
    1600X900 16:9
    Hard Drives
    1TB 5400RPM
Rights to shares can easily be administered thru the GUI.
If you want to block a system, use the Hosts file.
I am not sure for the Home version though.
I think I've been overthinking this, making the situation unnecessarily complicated. What I have currently setup is (4) shared folders in my home directory, 2 of which I would like to block access to all systems except one. Not even sure how I would do this with NFS, to be honest.

I will post a follow-up after I've decided exactly what I'm trying to accomplish here.
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom
    CPU
    Intel Core i5-13400F
    Motherboard
    PRIME B760M-A
    Memory
    32 GB
    Graphics Card(s)
    Nvidia 4060
    Sound Card
    On-board
    Monitor(s) Displays
    (2) Acer XD270H B
    Screen Resolution
    1920x1080
    Hard Drives
    (1) M2 1TB
    PSU
    600W
    Case
    Tower
    Cooling
    (3) Case fans
    Keyboard
    Standard
    Mouse
    Standard
    Internet Speed
    250 Mbps
    Browser
    Vivaldi
If we're talking about SMB shares then the answer is no you can not block a given host per share. SMB authn/z is user/group based.

If you'd rather do NFS I believe it is possible via WSL 2.0
Systemd is available Systemd support is now available in WSL!

You will also need to modify the network mode of WSL, normally it runs in NAT but can be setup for local LAN access
 

My Computer

System One

  • OS
    Windows 11

Latest Support Threads

Back
Top Bottom