Skip to content

Instantly share code, notes, and snippets.

@bcomnes
Created October 25, 2015 00:38
Show Gist options
  • Select an option

  • Save bcomnes/e9a50301d7666031ea92 to your computer and use it in GitHub Desktop.

Select an option

Save bcomnes/e9a50301d7666031ea92 to your computer and use it in GitHub Desktop.
Shell script to block IPs thanks donpdonp
echo dropping $1
sudo iptables -I INPUT -s $1 -j DROP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment