Hi All,
I ve the following Script which is used to Block the refused connect IP's......
`cat /var/log/secure | grep "refused connect" |awk '{print $9}'|sed 's/::ffff://g'|uniq -c | sort -nr |head -8 | awk '{print $2}' >/root/BlockedIP`
for IP in `cat /root/BlockedIP`;
iptables -A INPUT -s $IP -j DROP
This code show only IP's in BlockedIP file.
In this script i need to add "geoiplookup".
what i want mean i wannna to show the country name in BlockedIP file.
How to use the geoiplookup command...?
Plz any one guid me to complete the script.

Hariharan V