[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: hosts.deny didn't block ip



On 15/12/11 20:56, perljpes@gmail.com wrote:
> After a manual entry in  /etc/hosts.deny
> 
> ip didn't blocked
> 
> ALL: 151.12.xxx.xxx
> 
> I wonder why?
> 
> I use denyhosts for automatic entries
> 
> Thank you in advance
> 
> Nikos
> 
> 
Check /etc/hosts.allow it has precedence over /etc/hosts.deny

As Raf (?) suggested - remove the xxx from the entry.
Wildcards (*) are supported by /etc/hosts.deny and tcp wrappers.

You can use:-
151.12.*.*
OR
151.12.???.???
OR
151.12.
to achieve the same match


Cheers

-- 
Iceweasel/Firefox extensions for finding answers to Debian questions:-
https://addons.mozilla.org/en-US/firefox/collections/Scott_Ferguson/debian/


Reply to: