Linux Netfilter discussions
 help / color / mirror / Atom feed
* Logging NAT Translations
@ 2007-05-19  3:15 Craig Bernstein
  2007-05-20 19:23 ` Petr Pisar
  2007-05-22 20:09 ` Jan Engelhardt
  0 siblings, 2 replies; 11+ messages in thread
From: Craig Bernstein @ 2007-05-19  3:15 UTC (permalink / raw)
  To: netfilter

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


^ permalink raw reply	[flat|nested] 11+ messages in thread
* Logging nat translations
@ 2008-08-28 14:10 Carlos Sülz
  2008-08-28 17:17 ` Eric Leblond
  0 siblings, 1 reply; 11+ messages in thread
From: Carlos Sülz @ 2008-08-28 14:10 UTC (permalink / raw)
  To: netfilter

Hi NF people, I've a question related a Logging issue.-

I'm already making a log with my conntrack session, but I need to log 
the "nated-IP" because auditoring.-

I mean...
the "-j LOG" parameter log the SRC-IP and the DST-IP (src is the IP 
before nat and the dst is... well, U know it.)
I need something like SRC= 10.x.x.x, NAT=200.x.x.x , DST=201.x.x.x
If there is a way to get this, please let me know.

PS: I'm doing NAT with a pool of 3 groups of 200 IPs

thanks in advance.

CS

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2008-08-29 10:50 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-19  3:15 Logging NAT Translations Craig Bernstein
2007-05-20 19:23 ` 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox