Logging nat translations
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
Hello,
Quoted 10 lines · Carlos Sülz
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.
Have a look at ulogd2 which is able to log every connection tracking event in a file or in a database.
Some links:
http://netfilter.org/projects/ulogd/index.html
http://software.inl.fr/trac/wiki/ulogd2/user
BR,
Signature · 3 lines
Eric Leblond INL: http://www.inl.fr/ NuFW: http://www.nufw.org/
Quoted 14 lines · Eric Leblond
Hello,
Quoted 10 lines · Carlos Sülz
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.
Quoted 6 lines
Have a look at ulogd2 which is able to log every connection tracking event in a file or in a database.
Some links:
http://netfilter.org/projects/ulogd/index.html
http://software.inl.fr/trac/wiki/ulogd2/user
You can also get them via the command line tool `conntrack':
# conntrack -E --src-nat
or
# conntrack -E --dst-nat
or even:
# conntrack -E --dst-nat 1.2.3.4
to filter only destination NAT to 1.2.3.4.
Signature · 1 line
"Los honestos son inadaptados sociales" -- Les Luthiers