At 10:31 AM +0100 12/28/09, Marcel Gmür sent 
email regarding Re: [Denyhosts-user] unban an ip 
with denyhosts:
>Hello
>
>2009/12/28  <[email protected]>:
>>  Unfortunately, now I can't unban him.
>>  I go to /etc/hosts.deny, delete the entry, but a few seconds later denyhosts
>>  rebanns him.
>
>
>I made the following script to unban someone:
>
>#!/bin/bash
>
>rcdenyhosts stop
>cd /var/lib/denyhosts
>sed -i "/$1/d" *
>cd /etc
>sed -i "/$1/d" hosts.deny
>rcdenyhosts start

Just to make sure I'm doing this correctly.. If I 
save this as "unban.sh' I call it as:

unban.sh 12.34.56.78

and the IP 12.34.56.78 will be unbanned, correct?


------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Denyhosts-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/denyhosts-user

Reply via email to