Linux Netfilter discussions
 help / color / mirror / Atom feed
From: "Craig Bernstein" <cbernstein@cbernstein.com>
To: netfilter@lists.netfilter.org
Subject: Logging NAT Translations
Date: Fri, 18 May 2007 20:15:32 -0700	[thread overview]
Message-ID: <ae1f24730705182015j533102bah985e9ad0e905cd2a@mail.gmail.com> (raw)

I can't believe this isn't a FAQ; I apologize if I missed something in
my searches.

Is there a way to log connections along with all of their NAT translation data?

I am using a Debian (Sarge) system to SNAT guest users from private
address space to the Internet, and I need to keep a record that
includes both their internal and external addresses.

Simply logging before the SNAT rule leaves out the external address,
leaving me only with the original RFC1918 source address.
/proc/net/ip_conntrack has the information I need, but no way to send
it to the log it at the beginning and/or end of the session.

There HAS to be an easy way to do this!  Right?

Thank you...

-- 
...Craig


             reply	other threads:[~2007-05-19  3:15 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-19  3:15 Craig Bernstein [this message]
2007-05-20 19:23 ` Logging NAT Translations Petr Pisar
2007-05-22 20:09 ` Jan Engelhardt
2007-06-06  2:10   ` Craig Bernstein
2007-06-06  6:01     ` Jan Engelhardt
2007-06-06  7:15       ` Craig Bernstein
2007-06-07  8:09         ` Jan Engelhardt
2007-06-07 22:36           ` Pascal Hambourg
  -- strict thread matches above, loose matches on Subject: below --
2008-08-28 14:10 Logging nat translations Carlos Sülz
2008-08-28 17:17 ` Eric Leblond
2008-08-29 10:50   ` Pablo Neira Ayuso

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=ae1f24730705182015j533102bah985e9ad0e905cd2a@mail.gmail.com \
    --to=cbernstein@cbernstein.com \
    --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