From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pablo Neira Ayuso Subject: Re: How to log NAT translations Date: Tue, 21 Sep 2010 11:45:22 +0200 Message-ID: <4C987EB2.4000001@netfilter.org> References: <4C8FAFDF.9080201@dcc.ufba.br> <4C981789.3070004@dcc.ufba.br> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: netfilter-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" To: Jan Engelhardt Cc: Italo Valcy , netfilter@vger.kernel.org On 21/09/10 11:26, Jan Engelhardt wrote: > On Tuesday 2010-09-21 04:25, Italo Valcy wrote: > >> Actually, I wanna something more simple and specific than the command >> above. Using 'conntrack -E', I still have to parse the package events >> NEW, UPDATE and DESTROY if I wanna know the of a NAT > > So use `conntrack -Ee NEW` to limit the output :) > If that is still too much overhead, I'm sure you can directly use > libnetfilter_conntrack's library interface to get at these events. You can refine this a bit more with: `conntrack -Ee NEW --any-nat' It was introduced in conntrack-tools-0.9.15.