Skip to content

Instantly share code, notes, and snippets.

@Ignition
Created April 12, 2011 16:55
Show Gist options
  • Save Ignition/915910 to your computer and use it in GitHub Desktop.
Save Ignition/915910 to your computer and use it in GitHub Desktop.
Blog-p1-i2
#!/bin/sh
./badlist.sh | while read ipaddr
do
iptables -I INPUT -s ${ipaddr} -j DROP
done
iptables-save > /etc/iptables.rules
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment