* Logging packets with original address
@ 2004-03-03 9:10 prabha
2004-03-03 9:53 ` Antony Stone
0 siblings, 1 reply; 2+ messages in thread
From: prabha @ 2004-03-03 9:10 UTC (permalink / raw)
To: netfilter@lists.netfilter.org
Hi
I want to log some packets in the INPUT and FORWARD chains, but with
the
original address of the packets. (ie) with the destination address
before any DNAT
rule has been applied on the packet in the PREROUTING chain.
When the packet comes to the INPUT / FORWARD chains, it will be
after any
DNAT has been applied. I do not want the NATted address to be present in
the logs, but the original address as the received interface saw it. Is
this possible?
Regards
Prabha
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: Logging packets with original address
2004-03-03 9:10 Logging packets with original address prabha
@ 2004-03-03 9:53 ` Antony Stone
0 siblings, 0 replies; 2+ messages in thread
From: Antony Stone @ 2004-03-03 9:53 UTC (permalink / raw)
To: netfilter@lists.netfilter.org
On Wednesday 03 March 2004 9:10 am, prabha wrote:
> Hi
> I want to log some packets in the INPUT and FORWARD chains, but with
> the original address of the packets. (ie) with the destination address
> before any DNAT rule has been applied on the packet in the PREROUTING chain.
You cannot do this because packets pass through the INPUT chain after they
pass through PREROUTING.
> When the packet comes to the INPUT / FORWARD chains, it will be
> after any DNAT has been applied.
Correct.
> I do not want the NATted address to be present in the logs, but the original
> address as the received interface saw it. Is this possible?
Put the LOG rule in the PREROUTING chain.
Regards,
Antony.
--
What is this talk of "software release"?
Our software evolves and matures until it is capable of escape, leaving a
bloody trail of designers and quality assurance people in its wake.
Please reply to the list;
please don't CC me.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-03-03 9:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-03 9:10 Logging packets with original address prabha
2004-03-03 9:53 ` Antony Stone
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.