All of lore.kernel.org
 help / color / mirror / Atom feed
From: nemesis <nemesis.edsa@gmx.de>
To: netfilter@vger.kernel.org
Subject: Redirecting Pakets
Date: Wed, 28 Jan 2009 19:27:21 +0100	[thread overview]
Message-ID: <4980A389.2090000@gmx.de> (raw)

Hi,

I want to redirect pakets for several ip-adresses to other ip-adresses 
on a bridge.
I know that a bridge is working one layer below iptables, but I think it 
should be possible to hand those pakets to iptables.

I tried it like this:

ebtables -t broute -A BROUTING -p IPv4 -j redirect --redirect-target ACCEPT

and then the iptables rule:

iptables -t nat -A PREROUTING -p tcp -d [DESTINATION-IP-OLD] -j DNAT 
--to-destination [DESTINATTION-IP-NEW]

but it won't work.

Can somebody help me with this problem ?


THX !

                 reply	other threads:[~2009-01-28 18:27 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=4980A389.2090000@gmx.de \
    --to=nemesis.edsa@gmx.de \
    --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.