allow host syntax

David Collier-Brown davecb at Canada.Sun.COM
Fri Sep 18 14:41:00 GMT 1998


You asked:
| Is there anyway to specify a range of IP addresses such as
| 128.1.10.11 to 128.1.10.29 in this parameter ?
| I cannot find the man page for hosts_access(5) as mentioned in the
| smb.conf documentation.

	No, but you can use ranges written as, for eaxmple 
	192.168.2.10/24 (24 bits in network part) or
	192.168.2.10/255.255.255.0 (netmask format)
 
	This means you can accept/deny a range that starts from 0.

	As your range is from 11 (= 013 = 000 001 011) tp
	29 (=035 = 000 011 101), this is better done with
	domain names: you could allow mine.my-company.com
	and deny everyone-else.my-company.com.

--dave
-- 
David Collier-Brown,  | Cherish your enemies.  They're harder to
185 Ellerslie Ave.,   | come by than friends and more motivated.
Willowdale, Ontario   | davecb at canada.sun.com, hobbes.ss.org
N2M 1Y3. 416-223-8968 | http://java.science.yorku.ca/~davecb


More information about the samba mailing list