From owner-freebsd-net Wed May 9 8:42: 5 2001 Delivered-To: freebsd-net@freebsd.org Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by hub.freebsd.org (Postfix) with ESMTP id 0B94E37B422 for ; Wed, 9 May 2001 08:42:01 -0700 (PDT) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (robert@fledge.pr.watson.org [192.0.2.3]) by fledge.watson.org (8.11.3/8.11.3) with SMTP id f49Ffqf88176; Wed, 9 May 2001 11:41:52 -0400 (EDT) (envelope-from robert@fledge.watson.org) Date: Wed, 9 May 2001 11:41:51 -0400 (EDT) From: Robert Watson X-Sender: robert@fledge.watson.org To: Rob Harris Cc: freebsd-net@freebsd.org Subject: Re: Bridge over tun0 waters... In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org At least in FreeBSD 5.0-CURRENT, and quite possibly in RELENG_4, there's an if_tap driver, which serves a similar function to the if_tun driver. if_tap appears as /dev/tap*, and as tap* interfaces, and appears as an ethernet device. It is used by our VMware port to allow VMware to make use of a virtual interface which is then bridged as needed with other local ethernet devices. It would be easy to imagine a tunneling program that sat on /dev/tap0 on two machines, and linked them using UDP, then using the kernel bridging support (either the bridge support in ethernet.c, or using ng_bridge). Robert N M Watson FreeBSD Core Team, TrustedBSD Project robert@fledge.watson.org NAI Labs, Safeport Network Services On Wed, 9 May 2001, Rob Harris wrote: > > This message was posted Feb of '99. > I was wondering if anyone has made an efforts towards this yet. > (i.e. Wanna make sure I don't make a hack that's already made.) > Thanks. > --Rob > > > the bridges above will be not be doing any IP routing, just forwarding > > IP packets based on MAC addresses. you can do this with cisco's and > > i'd assume most other major bridge/router vendors. of course you may > > run into serious traffic jams if your bridging ethernet over a much > > slower line, like a 56k. > > in fact as many already said the most obvious solution seems to use > routing, not bridging. > > > i'm not sure if this can be done with freebsd however. Luigi's bridge > > code and ppp would be the place to look (Luigi will probably be able > > to answer this :). > > just because i am called... bridging in freebsd only works on > ethernet-type networks. Someone already asked me that i also > add support for 'tun' interfaces so that solutions like the one above > are possible. Shouldn't be that hard to implement, just isn't there > right now. > > cheers > luigi > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-net" in the body of the message > > --Rob > > +--------------------------------------------------------------------------+ > | Rob Harris 8037 Laurel Lakes Court, Laurel MD 301.598.0500 x2236 | > | Cidera, Inc. rharris@cidera.com fax: 301.598.0837 | > +--------------------------------------------------------------------------+ > "Don't rush me sonny. You rush a miracle man, you get rotten miracles." > --Miracle Max, The Princess Bride > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-net" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message