Red Hat Bugzilla – Bug 67896
smb.conf's "hosts allow" should allow /yy for a netmask
Last modified: 2007-04-18 12:43:51 EDT
Description of Problem:
samba should recognize /yy parameters as network mask.
Version-Release number of selected component (if applicable):
Change a working smb.conf "hosts allow" directive to the xxx.xxx.xxx.xxx/yy
format, and run smbclient -L BIGSERVER (locally, from BIGSERVER).
Works ok with: "hosts allow = 192.168.0.0/255.255.255.0 127.0.0.0/255.0.0.0"
... but not with: "hosts allow = 192.168.0.0/24 127.0.0.0/8"
I mark this as an enhancement because, although "man smb.conf" says that it
recognizes ip/mask pairs, the example is written as "220.127.116.11/255.255.255.0"
Depending on the smb.conf configuration, you may get a "Not listening for
calling name" or simply a "Connection failed".
I suggest you make that suggestion on a samba mailing list - one such address is