Skip to contentSkip to conversation

Redirecting Pakets

DISCUSSION nemesis 1 participant 1 message Jan 28, 2009

lore
Share & tools
lore

nemesis

author
#0 lore 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 !