[Samba] Block samba hosts by domain

Erick Ocrospoma zipper1790 at gmail.com
Fri Nov 11 06:40:50 UTC 2016


On 10 November 2016 at 15:52, Rowland Penny via samba <samba at lists.samba.org
> wrote:

> On Thu, 10 Nov 2016 12:37:57 -0800
> Linda W via samba <samba at lists.samba.org> wrote:
>
> > Erick Ocrospoma via samba wrote:
> > > On 10 November 2016 at 07:51, Vinicius Bones Silva via samba <
> > > samba at lists.samba.org> wrote:
> > >
> > >
> > >> PROBABLY its a problem with your reverse dns resolution.
> > >>
> > > ​Hi,
> > >
> > > DNS resolution seems to work fine.​
> > >
> > ----
> >     Vinicius didn't ask about DNS resolution, exactly,  but
> > *reverse* DNS resolution -- i.e. looking up a name from an address.
> >
> >     At best, nslookup is the wrong tool:
> > > [root at server0 ~]# nslookup 172.25.0.100
> > > Server:         172.25.0.254
> > > Address:        172.25.0.254#53
> > >
> > ---
> >     as the above shows: not only does nslookup on the ip not
> > return the name, but it returns the IP for a different machine!
> >
>
> well, yes it does return the IP of a different machine, it first
> returns the ip address of the server returning the result.
>
> if you continue reading the result, you will see this:
> Address: 172.25.0.100
>
> and the reverse lookup returns:
>
> name = desktop.example.com.
>
> So the DNS is working.
>
> I have never tried to do this, but might this way work ? :
>
> hosts allow = 172.25.0. %M.example.com
>
> Rowland
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/options/samba
>


​Thanks for your comments. I tried this but same result, it is not allowing
that domain, what is more it is blocking access from any host to that
share.​


-- 


Erick.


-------------------------------------------
IRC     :   zerick
Blog    : http://zerick.me
About :  http://about.me/zerick
Linux User ID :  549567


More information about the samba mailing list