From owner-freebsd-questions@FreeBSD.ORG Mon Dec 22 22:19:33 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D95801065670 for ; Mon, 22 Dec 2008 22:19:33 +0000 (UTC) (envelope-from sonic2000gr@gmail.com) Received: from ik-out-1112.google.com (ik-out-1112.google.com [66.249.90.177]) by mx1.freebsd.org (Postfix) with ESMTP id 6503C8FC1A for ; Mon, 22 Dec 2008 22:19:33 +0000 (UTC) (envelope-from sonic2000gr@gmail.com) Received: by ik-out-1112.google.com with SMTP id c21so522799ika.3 for ; Mon, 22 Dec 2008 14:19:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=3nqYu6avVIM1a4RLndIDHynehnYI9GoX43kAasT3qN0=; b=PtgOBAwvybjK6ecVNrMPEV5rrIl/FKFeXOMTkZrgQobSVdmzurCLeyYrz16m6bJGJA d3Yknuh3py/utoqNdq4ycK08PdKh/H6BDuiLRsmnUIPT3Wqj4hIts23vBPwaRejlD3Kz mtUR2sKft/zK9ioV9Q/yaQYol7gcYFoNqWGe0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=WarcHIn+0phpfafuE/9lqfZMj/tK8fmBH7NkV5wEE2tgF5Z0Ma/3QV2Xz2r8BaGnI3 GeinB2MSbHF5JpJ0XHBVFxn+etr4+wN/xufasq6QN8wpf6m+D94WY6hXMzIYTxPUctTv kar1HqtypqPcNoW0FqtHh48dfFOeIFnOllXVs= Received: by 10.210.29.17 with SMTP id c17mr6692158ebc.128.1229984372011; Mon, 22 Dec 2008 14:19:32 -0800 (PST) Received: from atlantis.dyndns.org (athedsl-04701.home.otenet.gr [87.202.18.129]) by mx.google.com with ESMTPS id k5sm24129395nfh.52.2008.12.22.14.19.29 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 22 Dec 2008 14:19:30 -0800 (PST) Message-ID: <49501270.6020603@gmail.com> Date: Tue, 23 Dec 2008 00:19:28 +0200 From: Manolis Kiagias User-Agent: Thunderbird 2.0.0.17 (X11/20081011) MIME-Version: 1.0 To: Nerius Landys References: <560f92640812221349y683a7cbhce8ae0f22a8bedf0@mail.gmail.com> In-Reply-To: <560f92640812221349y683a7cbhce8ae0f22a8bedf0@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Wireless router? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Dec 2008 22:19:34 -0000 Nerius Landys wrote: > I have a PC with FreeBSD set up as a router (NAT). The PC has several > network cards and I'm grouping the internal-facing network cards as a > bridge (promiscuous mode for the interfaces). Everything works well. > > Now I'd like to extend my wired network to include wireless. I really > have no experience with wireless networks. I have a couple of > computers that are wireless-ready (a laptop and a Playstation 3 that I > won in a raffle). Is it possible to somehow add some hardware to my > FreeBSD router PC to make it into a wireless router? What kind of > hardware would I install? What is it called? The PC only has PCI > slots, can you recommend a brand and model of "wireless server > equiptment" if such a thing exists? Would a normal wireless card > suffice? What model should I get? Yes, a supported Wireless net card would suffice. It can be configured to work in "Access Point" mode, essentially what a cheap wireless router would. Instructions in section 32.3.5 here: http://www.freebsd.org/doc/en/books/handbook/network-wireless.html While I haven't used FreeBSD in this mode, from my experience atheros-based (ath(4)) cards work well. I have no less than three Dlink DWL-G520 cards and never had any problems. This is a rather older model now, newer atheros cards may need a newer HAL than the one currently in the source tree (e.g. the Aspire One uses a newer atheros, and needs a custom kernel with some of the original files replaced. I believe -CURRENT has the newer HAL though). I recently also got a Linksys WMP 54G that is based on a Ralink chipset (ral(4)). This also works nicely. > I would prefer to set up static > internal IPs for my wireless network at home, would this be possible? > Sure. I am using static IPs in all my wireless clients. > Or is DHCP the way to go (I hesitate at the thought of configuring a > DHCP server). > > Configuring a DHCP server is very easy. I've only used it with wired ethernet though. Have a read at this: http://www.freebsd.org/doc/en/books/handbook/network-dhcp.html > Another way to go is to hook up a standalone wireless router appliance > to my FreeBSD machine's network interface (one of the interfaces). I > already have such a device, I think it's made by Linksys. But then, I > would be NAT'ing both through the FreeBSD machine and through the > wireless router. So it would be a double-NAT so to speak. Is there > anything wrong with that approach? > I've used something similar and it worked. Don't know about possible drawbacks, cause it was only a toy for me. My setup was something like this: Wireless standalone router (built in NAT) --> FreeBSD system as wireless client of the router + wired ethernet card --> FreeBSD NAT using pf / ipfw --> Wired internal ethernet (with DHCP server) --> Wired client(s) So I guess your approach is also possible. > So in a nutshell, I have a wired FreeBSD router with multiple ethernet > jacks at home, and I want to extend it to include wireless network. > Any suggestions would be appreciated. Thanks. > Probably multiple solutions exist, start up by buying a cheap but supported wireless card.