Re: Drop the Current Established Connections

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux