Hi all
I have configured Samba on a P166 16M Ram computer running SuSE5.3 with
Samba1.9.18p10.
In our departmental network, there are computers with the following IP
addresses:
192.168.6.161 to 192.168.6.170 and 192.168.6.174 to 192.168.6.179
subnet mask is 255.255.255.0
Any IP addresses outside these ranges are computers belong to other
departments.
Below is the [global] section extracted from my smb.conf:
[global]
workgroup = MY-DEPARTMENT
guest account = nobody
keep alive = 30
os level = 2
security = user
; interfaces = 192.168.1.1/255.255.255.0
socket options = TCP_NODELAY
hosts allow = 192.168.6.174
bind interfaces only = Yes
I am currently using 192.168.6.174 to connect to Samba. Certainly I
would like to allow access from any computers inside my department
but restrict access to those from other departments.
How can I do that? Shall I list all valid IP addresses in the "hosts
allow" row? I am afraid there is no enough space to list all of them.
Are there any other ways to do it more smartly?
Any suggestions will be appreciated.
Oscar