allow host syntax
davecb at Canada.Sun.COM
Fri Sep 18 14:41:00 GMT 1998
| Is there anyway to specify a range of IP addresses such as
| 18.104.22.168 to 22.214.171.124 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.
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