Skip to content

Instantly share code, notes, and snippets.

@r00tw33d
Created December 28, 2009 04:51
Show Gist options
  • Save r00tw33d/264538 to your computer and use it in GitHub Desktop.
Save r00tw33d/264538 to your computer and use it in GitHub Desktop.
#!/bin/bash
# ban_ip.sh
#
# Uso (como root):
# ./ban_ip direccion_IP
# Ejemplo:
# ./ban_ip 200.213.34.65
# Notas: Es necesario darle permisos de ejecución
# chmod +x ban_ip.sh
./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