From owner-freebsd-net@FreeBSD.ORG Wed Jul 22 16:33:56 2009 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D9828106564A for ; Wed, 22 Jul 2009 16:33:56 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outW.internet-mail-service.net (outw.internet-mail-service.net [216.240.47.246]) by mx1.freebsd.org (Postfix) with ESMTP id C030A8FC08 for ; Wed, 22 Jul 2009 16:33:56 +0000 (UTC) (envelope-from julian@elischer.org) Received: from idiom.com (mx0.idiom.com [216.240.32.160]) by out.internet-mail-service.net (Postfix) with ESMTP id 93A68B3F80 for ; Wed, 22 Jul 2009 09:33:56 -0700 (PDT) X-Client-Authorized: MaGic Cook1e Received: from julian-mac.elischer.org (home.elischer.org [216.240.48.38]) by idiom.com (Postfix) with ESMTP id 17D702D6004 for ; Wed, 22 Jul 2009 09:33:56 -0700 (PDT) Message-ID: <4A673F75.8070003@elischer.org> Date: Wed, 22 Jul 2009 09:33:57 -0700 From: Julian Elischer User-Agent: Thunderbird 2.0.0.22 (Macintosh/20090605) MIME-Version: 1.0 To: freebsd-net@freebsd.org References: <20090722113956.GA1870@psconsult.nl> In-Reply-To: <20090722113956.GA1870@psconsult.nl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Bridging wlan to gif? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Jul 2009 16:33:57 -0000 Paul Schenkeveld wrote: > Hi, > > I'm trying to bridge a wlan interface to a gif tunnel on 8.0-BETA2. > Running tcpdump on wlan0 I see DHCP packets coming in as IP packets, > on gif0 however tcpdump shows ethernet headers prepended. Needless > to say things do not work as expected. > > What I try to accomplish is the following: > > +------+ +--------------+ +-------+ > | | .... |ath0 bge0|-----|Router | Gateway > | | |wlan0 gif0| +-------+ +----------+ > | | | \ / | | | gif0 | > | | | bridge0 | Internet | \ | > | | | | | | bridge0 | > +------+ +--------------+ +-------+ | \ | > Wifi Access point |Router |----|fxp0 fxp1|---- LAN X > client 8.0-BETA2 +-------+ +----------+ > nice diagram.... you can't bridge gif as it doesn't have a MAC header if yo want to bridge the wifi net and LAN X then tha tis another matter and you can probably do that., but you are goin gto have to use a different way to do it.. Might I suggest a netgraph bridge, where the tunnel is implemented as a tcp or UDP socket layer (optionally with ipsec). use a netgraph bridge node on each side, and connect them using ksocket nodes which are linked to each other. you might also find that you can use mpd as a good link between them. I've done this in the past but do not have working examples in front of me. > - The Wifi client must be part of LAN X and receive a DHCP address from > a DHCP server (not shown) on LAN X > - On the access point wlan0 and gif0 are bridged together > - On the gateway fxp1 and gif0 are bridged together > - Gif0 on the access point and gif0 on the gateway communicate correctly > when given IP addresses > > Regards, > > Paul Schenkeveld > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"