Skip to content

Clarification on hosts allow subnet in smb.conf example #51

@HistoryJunkie

Description

@HistoryJunkie

Hi Brandon,

Thanks for putting together this guide — it’s been really helpful!

I ran into an issue that took a bit to troubleshoot, and I wanted to suggest a small clarification to help others avoid the same confusion.

In your example smb.conf, you include the line:

hosts allow = 10.0.0.0/24

Since your guide is written with your own 10.x.x.x network in mind, I initially assumed I just needed to swap the first octets to match my IP layout and used:

hosts allow = 192.0.0.0/24

However, that range doesn’t include 192.168.0.x, which is where my devices are. As a result, all connections were denied, even though Samba was otherwise configured correctly. Updating it to:

hosts allow = 192.168.0.0/24

immediately resolved the problem.

Suggestion: It might help future readers if you include a quick note next to that line explaining that the CIDR block must match the user's actual LAN subnet (e.g., 192.168.1.0/24, 10.0.0.0/24, etc.), rather than just copying your example verbatim.

Thanks again for the guide — it’s solid overall, and this small clarification could make it even more beginner-friendly.

Best regards,
Tim

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions