hosts.deny script

Steven J Lamb redhattedsheep at adiis.net
Fri Jan 27 03:11:31 UTC 2006


gethostip works much better only gives the ip address given the right 
option, works no matter the input
----- Original Message ----- 
From: "jdow" <jdow at earthlink.net>
To: "For users of Fedora Core releases" <fedora-list at redhat.com>
Sent: Thursday, January 26, 2006 5:40 PM
Subject: Re: hosts.deny script


> From: "Steven J Lamb" <redhattedsheep at adiis.net>
>
>>I am trying to create a script to block people using hosts.deny. I realize 
>>that I should just block everyone and then open access for those whom I 
>>know I trust but because of the nature of our network this is not 
>>possible. basically I check log files for login attempts every five 
>>minutes and block those that attempt to log in more than 3 times that day. 
>>this is all working great but my problem is this. I sometimes get log 
>>entries with the symbolic address instead of the ip. how do I convert 
>>these in a systematic way and not have a problem when I run IPs through 
>>it. I'm sure this is an easy task but I don't now what tool to use.
>>
>> thanks for your help
>>
>> Steven Lamb
>
> man host
>
> Maybe that would help.
> {^_^}
>
> -- 
> fedora-list mailing list
> fedora-list at redhat.com
> To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
> 




More information about the users mailing list