Re: hosts.deny didn't block ip
On 23/12/11 13:20, Scott Ferguson wrote:
> 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
>
almost forgot....
If it still doesn't work - check that you have a new line at the end of
/etc/hosts.deny (same rule for /etc/hosts.allow) or the last entry is
ignored.
Cheers
--
Iceweasel/Firefox extensions for finding answers to Debian questions:-
https://addons.mozilla.org/en-US/firefox/collections/Scott_Ferguson/debian/
Reply to: