From: Robert Nichols <rnicholsNOSPAM@comcast.net>
To: netfilter@lists.netfilter.org
Subject: Re: block + kill connections
Date: Sun, 08 Jan 2006 20:47:16 -0600 [thread overview]
Message-ID: <dpsirl$7a0$1@sea.gmane.org> (raw)
In-Reply-To: <200601081720.11675.rob0@gmx.co.uk>
/dev/rob0 wrote:
> On Sunday 2006-January-08 16:18, I wrote:
>
>>On Sunday 2006-January-08 16:04, Robert Nichols wrote:
>>
>>>>iptables -I INPUT -s 1.2.3.4 -j DROP
>>>
>>>That will prevent communication by blocking any further incoming
>>>packets, but won't do anything to tear down the connection. See
>
>
> Yes, you're right, sorry. I read too quickly. You're saying this:
>
>
>>... or simply that a blocked connection has not yet
>>timed out of conntrack or netstat listings.
>
>
> ... and you're right, the REJECT will tell the other end that the
> connection is terminated. But I doubt that the local side will show
> anything different in conntrack or netstat, unless a corresponding
> REJECT rule was used in OUTPUT.
What typically happens is that as soon as the local side transmits
any packet on the half-closed connection, the far end responds with
its own TCP RESET, and the "--tcp-flags ! FIN,RST NONE" matcher in
my suggested rule allows any packet with a RST or FIN flag to get
through.
--
Bob Nichols Yes, "NOSPAM" is really part of my email address.
next prev parent reply other threads:[~2006-01-09 2:47 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
2006-01-08 22:18 ` /dev/rob0
2006-01-08 23:20 ` /dev/rob0
2006-01-09 2:47 ` Robert Nichols [this message]
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='dpsirl$7a0$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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox