Skip to content

Instantly share code, notes, and snippets.

@vpnwall-services
Last active May 14, 2018 23:19
Show Gist options
  • Save vpnwall-services/9486ea7788491b66784a57559f6fe225 to your computer and use it in GitHub Desktop.
Save vpnwall-services/9486ea7788491b66784a57559f6fe225 to your computer and use it in GitHub Desktop.
[Block bad IP] Block abusing IP within Iptables #linux #shell #iptables #block
#!/bin/bash
#apt-get install dsniff cutter
echo -e "\nEnter IP you want to block :"
VAR=$1
if [ -z $VAR ]
then
clear
echo -e "\Please input IP and try again ..."
else
echo -e "\nOkay, lets do this ..."
cutter $VAR
iptables -I -s $VAR -j DROP
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment