From: Julien Vehent <julien@linuxwall.info>
To: Fabio Marcone <fabio.marcone@duet.it>
Cc: netfilter@vger.kernel.org
Subject: Re: postrouting and mac address
Date: Tue, 21 Jul 2009 14:20:18 +0200 [thread overview]
Message-ID: <c7a3bdd5fcb7f7152ae1a453651aa9d1@localhost> (raw)
In-Reply-To: <4A65AF17.70002@duet.it>
On Tue, 21 Jul 2009 14:05:43 +0200, Fabio Marcone <fabio.marcone@duet.it>
wrote:
> Hi!
> I have a router linux and I need to filter packets in postrouting chain
> using source mac address. But... in postrouting chain, what is source
> mac address? mac address of effective source of the packet or router
> interface mac address ?
>
> Thanks in advance,
> Fabio
Hi Fabio,
I don't think you can filter packets in postrouting.
The only tables available in POSTROUTING are mangle and nat.
To filter packets in a router, I think you have to do it in the FORWARD
chain.
see: http://jengelh.medozas.de/images/nf-packet-flow.png
Julien
--
julien
http://jve.linuxwall.info/blog
next prev parent reply other threads:[~2009-07-21 12:20 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-21 12:05 postrouting and mac address Fabio Marcone
2009-07-21 12:20 ` Julien Vehent [this message]
2009-07-21 13:10 ` Fabio Marcone
2009-07-21 13:24 ` Fabio Marcone
2009-07-21 13:30 ` Pascal Hambourg
2009-07-21 13:36 ` Fabio Marcone
2009-07-21 13:53 ` Gáspár Lajos
2009-07-21 13:59 ` Pascal Hambourg
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=c7a3bdd5fcb7f7152ae1a453651aa9d1@localhost \
--to=julien@linuxwall.info \
--cc=fabio.marcone@duet.it \
--cc=netfilter@vger.kernel.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 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.