hosts allow/deny question

Gerald Carter gcarter at valinux.com
Fri Aug 25 12:14:50 GMT 2000


Robert Dahlem wrote:
> 
> Ben,
> 
> On Thu, 24 Aug 2000 12:09:54 +0200, dqpr10 at canal-plus.fr wrote:
> 
> >I would like to do something like this at Samba level:
> >
> >       hosts allow = subnet1/mask1 subnet2/mask2 etc
> >       hosts deny = *
> >
> >But this doesn't seem to work (machine that are not in subnet1 and
> >not in subnet2 still have access)
> 
> Try "hosts deny 0.0.0.0/0 EXCEPT subnet1/mask1 subnet2/mask2".

IIRC its seems like there may be a bug that smbd must 
be restarted in order to see changes to the hosts allow/deny
option if set globally.  I need to go back and check this out.





Cheers, jerry
----------------------------------------------------------------------
   /\  Gerald (Jerry) Carter                     Professional Services
 \/    http://www.valinux.com  VA Linux Systems    gcarter at valinux.com
       http://www.samba.org       SAMBA Team           jerry at samba.org
       http://www.eng.auburn.edu/~cartegw

       "...a hundred billion castaways looking for a home."
                                - Sting "Message in a Bottle" ( 1979 )




More information about the samba mailing list