From: Pablo Neira Ayuso <pablo@netfilter.org>
To: Jan Engelhardt <jengelh@medozas.de>
Cc: Richard Feng <rfeng@wurldtech.com>,
"netfilter@vger.kernel.org" <netfilter@vger.kernel.org>
Subject: Re: conntrack-tools 0.9.14 can not block the connection
Date: Fri, 07 May 2010 21:14:35 +0200 [thread overview]
Message-ID: <4BE4669B.4030904@netfilter.org> (raw)
In-Reply-To: <4BE46649.1040703@netfilter.org>
Pablo Neira Ayuso wrote:
> Jan Engelhardt wrote:
>> On Friday 2010-05-07 18:17, Richard Feng wrote:
>>
>>>> >From the documentation (from conntrack-tools.netfilter.org),
>>>>> somewhere it says that "have to set
>>>>> /proc/sys/net/ipv4/netfilter/ip_conntrack_tcp_be_liberal to
>>>>> zero".There is simply no 'netfilter' folder under my folder
>>>>> '/proc/sys/net/ipv4'. Is this the problem? How could I fix it?
>>> So 'conntrack -D' can not really cut current connections? It can
>>> only delete entry from the state table? I just want to make sure -
>> >from the document
>>> "http://conntrack-tools.netfilter.org/manual.html#conntrack". It
>>> clearly said "Delete on entry, this can be used to block traffic
>>> (you have to set
>>> /proc/sys/net/ipv4/netfilter/ip_conntrack_tcp_be_liberal to zero)".
>> The documentation seems to be off here. If you only delete a ct
>> entry, the next packet (even if a TCP ACK or something) will make
>> a new ct with NEW as a ctstate.
>>
>> To really have a TCP/SCTP connection blocked after deletion of the ct
>> entry, you have to only allow NEW ctstates with the initla TCP/SCTP
>> packet (SYN/INIT).
>
> Yes, you need a well-formed stateful rule-set "to cut" the connection
> (at least you have to add a rule to block traffic in INVALID stats).
With "stats" I meant "state", and liberal tracking must be disabled as said.
next prev parent reply other threads:[~2010-05-07 19:14 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-06 23:51 conntrack-tools 0.9.14 can not block the connection Richard Feng
2010-05-07 7:55 ` Jan Engelhardt
2010-05-07 8:49 ` Rob Sterenborg
2010-05-07 9:50 ` Jan Engelhardt
2010-05-07 16:17 ` Richard Feng
2010-05-07 16:27 ` Jan Engelhardt
2010-05-07 19:13 ` Pablo Neira Ayuso
2010-05-07 19:14 ` Pablo Neira Ayuso [this message]
2010-05-07 19:46 ` Jan Engelhardt
2010-05-07 20:13 ` Pascal Hambourg
2010-05-08 20:33 ` Jozsef Kadlecsik
2010-05-08 20:39 ` Jan Engelhardt
2010-05-10 11:11 ` Pascal Hambourg
2010-05-09 23:16 ` Pablo Neira Ayuso
2010-05-07 9:57 ` Pascal Hambourg
2010-05-07 16:22 ` Richard Feng
2010-05-07 18:51 ` Pascal Hambourg
2010-05-07 19:04 ` Richard Feng
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=4BE4669B.4030904@netfilter.org \
--to=pablo@netfilter.org \
--cc=jengelh@medozas.de \
--cc=netfilter@vger.kernel.org \
--cc=rfeng@wurldtech.com \
/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.