Ethernet Bridge development
 help / color / mirror / Atom feed
From: Simon Detheridge <simon@widgit.com>
To: bridge@lists.linux-foundation.org
Subject: Re: [Bridge] Bridging without forwarding? (not bonding)
Date: Mon, 5 Jan 2009 23:35:20 +0000 (GMT)	[thread overview]
Message-ID: <508029074.82151231198520512.JavaMail.root@ken> (raw)
In-Reply-To: <504349474.82131231198409158.JavaMail.root@ken>

I wrote:
> What I'm trying to do is use a combination of vtun tap tunnels and
> bridging, to make my servers feel like they're on a LAN together.

... snip ...

> Really what I want to do is forget about stp and just have each
> bridge interface send out packets over the correct tap interface based
> on what mac address is at the other end, but not bother to forward
> anything on, as it should never be necessary.

"Ross Vandegrift" <ross@kallisti.us> wrote:
> Based on your description, what you really want is broadcast GRE.
> Check out http://linux-ip.net/gl/ip-tunnels/node9.html for a basic
> description.

Unfortunately, Amazon will only route tcp/udp. Other protocols don't work, and as such it's not even possible to set up an ipsec-based VPN... VTun and OpenVPN seem to be the only solutions.

richardvoigt@gmail.com wrote:
> Leave the master-slave server tunnel separate from the bridges?  That
> connection is different from the others anyway, and making it
> independent of the bridges will break the loop.

That doesn't work. I set up a standard ptp tunnel between the master/slave, leaving the bridges just for the connections to the clients. When connecting a bunch of clients, I still wind up with a box that routes all packets over one tunnel. showstp tells me that one tunnel is blocked and the other is forwarding. Suprising. I thought stp would find the shortest route, but this takes three hops as packets can go client->master->different client->slave.

> Alternatively, you could use ebtables to drop all packets in the
> FORWARD chain.

Bingo. Switching off stp on all nodes, and saying "ebtables -P FORWARD DROP" makes everything work exactly how I want. I hadn't found ebtables until now. :-)

Thanks for the help... :-)
Simon

-- 
Simon Detheridge - CTO, Widgit Software
26 Queen Street, Cubbington, CV32 7NA - Tel: +44 (0)1926 333680

       reply	other threads:[~2009-01-05 23:35 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <504349474.82131231198409158.JavaMail.root@ken>
2009-01-05 23:35 ` Simon Detheridge [this message]
     [not found] <1789230353.79391231165863451.JavaMail.root@ken>
2009-01-05 14:31 ` [Bridge] Bridging without forwarding? (not bonding) Simon Detheridge
2009-01-05 15:01   ` richardvoigt
2009-01-05 22:31   ` Ross Vandegrift

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=508029074.82151231198520512.JavaMail.root@ken \
    --to=simon@widgit.com \
    --cc=bridge@lists.linux-foundation.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