Created
December 28, 2009 04:51
-
-
Save r00tw33d/264538 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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