All of lore.kernel.org
 help / color / mirror / Atom feed
From: Robert Nichols <rnicholsNOSPAM@comcast.net>
To: netfilter@lists.netfilter.org
Subject: Re: block + kill connections
Date: Sun, 08 Jan 2006 16:04:49 -0600	[thread overview]
Message-ID: <dps2a2$shp$1@sea.gmane.org> (raw)
In-Reply-To: <3b29fb790601081344me985167p9c06cf286126ffdb@mail.gmail.com>

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.



  parent reply	other threads:[~2006-01-08 22:04 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-08 21:44 block + kill connections bright true
2006-01-08 22:02 ` /dev/rob0
2006-01-08 22:04 ` Robert Nichols [this message]
2006-01-08 22:18   ` /dev/rob0
2006-01-08 23:20     ` /dev/rob0
2006-01-09  2:47       ` Robert Nichols
2006-01-08 23:14 ` R. DuFresne

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='dps2a2$shp$1@sea.gmane.org' \
    --to=rnicholsnospam@comcast.net \
    --cc=netfilter@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.