root@myserver:~# nano /usr/local/sbin/deleteipfromfail2ban.sh
#!/bin/bash
IP=$1
if [ "$IP" = "" ] ; then
echo "Syntax: deleteipfromfail2ban.sh
RETURNSTATUS=1
exit $RETURNSTATUS
fi
iptables -D fail2ban-ssh -s $IP -j DROP
################################################
Example of usage:
deleteipfromfail2ban.sh 10.1.1.25
No comments:
Post a Comment