From: "Andrew Hall" Subject: Conntrack clarification Date: Mon, 6 Aug 2007 10:17:19 +1000 Message-ID: <46b6688e.02098c0a.4f65.ffffae18@mx.google.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Return-path: Content-Language: en-au List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-devel-bounces@lists.netfilter.org Errors-To: netfilter-devel-bounces@lists.netfilter.org List-Id: netfilter-devel.vger.kernel.org I've been playing with the conntrack tool and trying to use it to forcibly remove established and related entries from the conntrack table. The main reason I'm doing this is I want the ability to forcibly terminate a TCP session after the access rules have been removed that allow this connection to be established in the first place (at the moment an SSH session - for example - remains active until the session has been closed by the client), I can't forcibly shut the session down because I have general "established and related" rules that allow the connection to remain open. The problem I've found with the conntrack tool (using 'conntrack -F' to flush the entries) is that even though the entry "appears" to get removed for the TCP session, the entry gets re-added immediately by the session which is still open. This is kind of counter-intuitive as once the entry is removed I had assumed this meant the session was no longer known to be "established" and therefore the next packet should be unrelated and dropped? Is this correct or is there something wrong with the tool? kernel: 2.6.22.1 libnetfilter_conntrack.so.1.2.0 libnfnetlink.so.0.2.0 conntrack v0.9.5 Thanks, Andrew.