Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Antony Stone <Antony@Soft-Solutions.co.uk>
To: "netfilter@lists.netfilter.org" <netfilter@lists.netfilter.org>
Subject: Re: Logging packets with original address
Date: Wed, 3 Mar 2004 09:53:24 +0000	[thread overview]
Message-ID: <200403030953.24832.Antony@Soft-Solutions.co.uk> (raw)
In-Reply-To: <4045A0F1.F7366A69@multitech.co.in>

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.



      reply	other threads:[~2004-03-03  9:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-03  9:10 Logging packets with original address prabha
2004-03-03  9:53 ` Antony Stone [this message]

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=200403030953.24832.Antony@Soft-Solutions.co.uk \
    --to=antony@soft-solutions.co.uk \
    --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