From: gmail <zhangjin2272@gmail.com>
To: Sven-Haegar Koch <haegar@sdinet.de>
Cc: netfilter <netfilter@vger.kernel.org>
Subject: Re: Re: ebtables does not forward net request, help please.
Date: Sun, 8 Jul 2012 15:23:57 +0800 [thread overview]
Message-ID: <201207081523496825740@gmail.com> (raw)
In-Reply-To: CAGHLOKDWC-99cXnSPezVxnbYyW9Y4_b9-o27ncYF8O7Rc9G1aA@mail.gmail.com
Thanks for your reply. Below ebtables rules are the entire content I used. Actually it will allow ARP query request to forward. What I confused about is that why the second forwarding will only happen after the client trigger a ARP request (query MAC of target host)?
--allow client A(00:11:22:33:44:55)
ebtables -t nat -F
ebtalbes -t broute -F
ebtables -t filter -F
ebtables -t filter -P FORWARD ACCEPT
ebtables -A FORWARD -s ! 00:11:22:33:44:55 -d ! 00:11:22:33:44:55 -j DROP
--deny any net request forwarding
ebtables -t nat -F
ebtables -t broute -F
ebtables -t filter -F
ebtables -t filter -P FORWARD DROP
2012/7/8 Sven-Haegar Koch <haegar@sdinet.de>
On Sun, 8 Jul 2012, gmail wrote:
> 5, Now again allow this specific mac to travel between eth0 and eth2.
> ebtable -A FORWARD -s ! 00:11:22:33:44:55 -d ! 00:11:22::33:44:55 -j DROP
> 6, Now again, using ping tool to check network connectivity. (eth0-eth2).
> The expected result is that network connection between eth0 and eth2 should be available. But unfortuntly sometimes the connectivity is not available. This happends about 2-3 times when I tried this for 10 times. This is a little strange to me. And the network is only available after the host send a ARP request through eth0, only then the network becomes available again.
> Please can anyone help about this? Thanks a lot.
Did you forget about the ARP queries from the other boxes asking for the
ip of the box with the mac 00:11:22:33:44:55?
They come from the query hosts mac and go to the broadcast
(ff:ff:ff:ff:ff:ff), asking for the mac of ip a.b.c.d. Those get dropped
with your above setup and never reaching your special host, so the other
hosts do not know to which mac to send the packets.
c'ya
sven-haegar
--
Three may keep a secret, if two of them are dead.
- Ben F.
--
Jin Zhang
next prev parent reply other threads:[~2012-07-08 7:23 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-08 3:29 ebtables does not forward net request, help please gmail
2012-07-08 5:20 ` Sven-Haegar Koch
[not found] ` <CAGHLOKDWC-99cXnSPezVxnbYyW9Y4_b9-o27ncYF8O7Rc9G1aA@mail.gmail.com>
2012-07-08 7:23 ` gmail [this message]
2012-07-09 14:53 ` is it possiable to filter multiple MAC address using -s/-d ? gmail
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=201207081523496825740@gmail.com \
--to=zhangjin2272@gmail.com \
--cc=haegar@sdinet.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).