Hi all,
I ve task like block the refused connection IP's from /var/log/secure file


`cat /var/log/secure | grep "refused connect" | awk '{print $9}' |sed 's/::ffff://g' |grep 190.184.35.27 >/root/sample`
IP="/root/sample/"
`iptables -A INPUT -s $IP -j DROP`

When i run this script, i get an error like this
[root@localhost ~]# sh ipblock.sh
iptables v1.3.8: invalid mask `' specified
Try `iptables -h' or 'iptables --help' for more information.
[root@localhost ~]#

As soon as give me some idea.........

Thanks,
Hariharan V.