From: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2005@gmx.net>
To: lartc@vger.kernel.org
Subject: [LARTC] Re: [Ebtables-user] brouting on interfaces without IP
Date: Tue, 18 Oct 2005 00:03:23 +0000 [thread overview]
Message-ID: <43543BCB.7030604@gmx.net> (raw)
In-Reply-To: <1129569944.3394.1.camel@localhost.localdomain>
Bart De Schuymer schrieb:
> Op do, 13-10-2005 te 23:55 +0200, schreef Carl-Daniel Hailfinger:
>
>> However, once I insert the ebtables rule to actually do the
>> redirection, all packets I want to redirect get dropped. This
>> happens regardless of where I try to broute the packets. I tried
>> DROPping them in BROUTING, REDIRECTing them in PREROUTING, DNATing
>> them to the MAC of eth0 in PREROUTING, but each time the packets
>> never leave eth0.
>> [...]
>> bridge:~ # ebtables -t nat -L --Lx
>> ebtables -t nat -N ifacefilter-int ebtables -t nat -N proxy
>> ebtables -t nat -A PREROUTING -i bridgeint -j ifacefilter-int
>> ebtables -t nat -A ifacefilter-int -p IPv4 --ip-src 192.168.0.0/24
>> --ip-proto tcp --ip-dport 80 -j proxy
>> ebtables -t nat -A proxy -j mark --set-mark 0x1 --mark-target
>> CONTINUE
>
>> ebtables -t nat -A proxy -j dnat --to-dst 00:11:22:33:44:55
>> --dnat-target ACCEPT
>
>
> Make this 00:01:02:03:04:05, or just use -j redirect
Sorry if I was unclear, but -j redirect doesn't work. Same for --to-dst
00:01:02:03:04:05. That's why I tried to use the MAC of eth0 in --to-dst.
Regards,
Carl-Daniel
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
next prev parent reply other threads:[~2005-10-18 0:03 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-17 17:25 [LARTC] Re: [Ebtables-user] brouting on interfaces without IP Bart De Schuymer
2005-10-18 0:03 ` Carl-Daniel Hailfinger [this message]
2005-10-18 18:03 ` Bart De Schuymer
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=43543BCB.7030604@gmx.net \
--to=c-d.hailfinger.devel.2005@gmx.net \
--cc=lartc@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.