Iptables editing?

Can one edit the iptables and then paste a bunch of IP's to it to block them access from your servers? Reason I ask is we have been banning those that attempt to Brute Force our servers multiple times via the IP tables command. Sometimes this is a rather time consuming task, of editing the line each time in putty, to the next IP we want to ban. If there was a way to edit the iptables like I pico edit the APF deny hosts area, that would be very nice. Also if there is a way, can you please tell me where it would be as well. Locate IPTables, brings up a tonne of things.

The command I currently use to ban by IPtables: iptables -A INPUT -p ALL -s 69.172.180.39 -j DROP

Sample of IP block I want to ban; (copied from deny hosts, so all bad people)
220.176.196.52
211.214.161.151
202.159.228.131
65.105.210.216
220.70.167.67
205.252.89.78

One other question, when you type locate "whatever" in putty, sometimes it returns mega items. Is there a way to make it list it in pages that I can scroll through much like the dir /p command in dos?

 

 

 

 

Top