From owner-freebsd-net@FreeBSD.ORG Tue Aug 5 00:01:36 2008 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 BA9BC106566B; Tue, 5 Aug 2008 00:01:36 +0000 (UTC) (envelope-from sam@freebsd.org) Received: from ebb.errno.com (ebb.errno.com [69.12.149.25]) by mx1.freebsd.org (Postfix) with ESMTP id 8EC3F8FC13; Tue, 5 Aug 2008 00:01:36 +0000 (UTC) (envelope-from sam@freebsd.org) Received: from trouble.errno.com (trouble.errno.com [10.0.0.248]) (authenticated bits=0) by ebb.errno.com (8.13.6/8.12.6) with ESMTP id m7501ZpY045639 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 4 Aug 2008 17:01:35 -0700 (PDT) (envelope-from sam@freebsd.org) Message-ID: <4897985F.2030903@freebsd.org> Date: Mon, 04 Aug 2008 17:01:35 -0700 From: Sam Leffler Organization: FreeBSD Project User-Agent: Thunderbird 2.0.0.9 (X11/20071125) MIME-Version: 1.0 To: Andrew Thompson References: <6b8e8f4f0808041513x2537c723vd575f0760cf53e02@mail.gmail.com> <20080804225840.GC6737@citylink.fud.org.nz> In-Reply-To: <20080804225840.GC6737@citylink.fud.org.nz> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-DCC-sonic.net-Metrics: ebb.errno.com; whitelist Cc: freebsd-net@freebsd.org, David Cornejo Subject: Re: bridging wireless station 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: Tue, 05 Aug 2008 00:01:36 -0000 Andrew Thompson wrote: > On Mon, Aug 04, 2008 at 12:13:09PM -1000, David Cornejo wrote: > >> hi, >> >> i would like to bridge a wireless client to ethernet (in 8-CURRENT) - >> the last bug in the if_bridge man page says this is a no-no. >> > > The bridge man page needs to be updated as its possible to do this now. > > >> the question is whether this could be worked around - don't need the >> highest performance, so maybe netgraph or even a userland daemon would >> work. i don't have any ability to do anything at the access point end >> so some of the tunneling protocols are out >> > > The system supports wdslegacy and dwds modes. lecacy takes a static > bssid address to forward the traffic to, this mode can only be encrypted > with wep. > > dwds is a unique feature where the card connects as a standard station > (with any crypto, such as wpa), and then is set into wds mode. This > isnt hooked into the system scripts at all and needs to be finished off. > > Have a look at tools/tools/net80211/scripts/setup.wds* and try some > scenarios out. > A nit: dwds probably needs to be integrated with hostapd as there's some work involved that's best in a long-running application and I can't imagine anyone using it w/o some form of security. Having hostapd handle this would also simplify configuration. The integration work is straightforward and would be a good project for someone trying to learn about the wireless facilities. Sam