iptables -t filter -I INPUT -s ${IPAddress} -j DROP
#iptables -t filter -I INPUT -d ${IPAddress} -j DROP
iptables -t filter -I FORWARD -s ${IPAddress} -j DROP
iptables -t filter -I FORWARD -d ${IPAddress} -j DROP
#iptables -t filter -I OUTPUT -s ${IPAddress} -j DROP
iptables -t filter -I OUTPUT -d ${IPAddress} -j DROP
This should rather abruptly take care of it for you. The two lines that I commented out should arguable not be needed but I put them there just in case and to serve as a reminder.
Grant. . . .
bright true wrote:
Hello ,
i want to know the right way of blocking an ip and drop the current Established
connections from that ip
Thanks