From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robert Nichols Subject: Re: block + kill connections Date: Sun, 08 Jan 2006 16:04:49 -0600 Message-ID: References: <3b29fb790601081344me985167p9c06cf286126ffdb@mail.gmail.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <3b29fb790601081344me985167p9c06cf286126ffdb@mail.gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-bounces@lists.netfilter.org Errors-To: netfilter-bounces@lists.netfilter.org Content-Type: text/plain; charset="us-ascii"; format="flowed" To: netfilter@lists.netfilter.org bright true wrote: > Hello , > > How to block plus kill all currently opened connections from specific ip address > > on all ports . > > i tryed using : > > iptables -I INPUT -s 1.2.3.4 -j DROP > > but seems to be it doesn't kill the active connections , it works only for new > > incoming connections That will prevent communication by blocking any further incoming packets, but won't do anything to tear down the connection. See if something like this works better: iptables -I INPUT -s 1.2.3.4 -p tcp --tcp-flags ! FIN,RST NONE -j REJECT --reject-with tcp-reset -- Bob Nichols Yes, "NOSPAM" is really part of my email address.