I have found a script that will log all IPs that try to attack me with the Code Red worm. I want to be able to be able to set up a script that will let me input all of the IPs that I obtain and input them into a banlist of some kind. Something like this command, iptables -A INPUT -s XXX.XXX.XXX.XXX -j DROP. I want to be able to automatically input all of the IPs that I found and put them into the XXX.XXX.XXX.XXX field. Does anyone know of an easy way to do this?
I think this may take a bit because I know nothing about shell scripting and I am just learning the iptables commands.
I think this may take a bit because I know nothing about shell scripting and I am just learning the iptables commands.