From owner-freebsd-questions@FreeBSD.ORG Sun Aug 28 04:05:44 2011 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 A305F1065672 for ; Sun, 28 Aug 2011 04:05:44 +0000 (UTC) (envelope-from cyberleo@cyberleo.net) Received: from paka.cyberleo.net (paka.cyberleo.net [66.219.31.21]) by mx1.freebsd.org (Postfix) with ESMTP id 7E52E8FC08 for ; Sun, 28 Aug 2011 04:05:44 +0000 (UTC) Received: from [172.16.44.4] (den.cyberleo.net [66.253.36.39]) by paka.cyberleo.net (Postfix) with ESMTPSA id 2F0B528405; Sat, 27 Aug 2011 23:48:16 -0400 (EDT) Message-ID: <4E59BA7F.305@cyberleo.net> Date: Sat, 27 Aug 2011 22:48:15 -0500 From: CyberLeo Kitsana User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110822 Lightning/1.0b3pre Thunderbird/3.1.10 MIME-Version: 1.0 To: Paul Beard References: <51754C95-3688-4B33-BD98-7DED5F28DC0E@gmail.com> In-Reply-To: <51754C95-3688-4B33-BD98-7DED5F28DC0E@gmail.com> X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: FreeBSD Questions Subject: Re: wireless access point in FreeBSD 8.2p2 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: Sun, 28 Aug 2011 04:05:44 -0000 On 08/27/2011 11:21 AM, Paul Beard wrote: > I seem to be missing something, possibly from reading too many HOWTOs. What I am trying to do is get a system with a wireless card to stand in as a wireless AP should my aging LinkSys base station develop a tragic smoke leak. > > It's an ath0-based card and the following steps suggest it should work (it has HOSTAP capabilities and offering robust encryption). I just finished something almost exactly like this a little while ago. > But various permutations of rc.conf, hostap.conf and many iterations of /etc/rc.c/netif restart leave me with two ifconfig entries, one of the ath0 interface and one for wlan0. None of the examples show this so I suspect it's wrong. The IP address is pingable from the host it's installed in but not from anywhere else. And I can see the AP from another system and attach to it but it doesn't route any traffic. > > > > redacted results of ifconfig: > ath0: flags=8843 metric 0 mtu 2290 > ether 00:0d:88:93:21:3a > media: IEEE 802.11 Wireless Ethernet autoselect mode 11g > status: running > > wlan0: flags=8843 metric 0 mtu 1500 > ether 00:0d:88:93:21:3a > inet 192.168.0.26 netmask 0xffffff00 broadcast 192.168.0.255 > inet6 fe80::20d:88ff:fe93:213a%wlan0 prefixlen 64 scopeid 0x7 > nd6 options=3 > media: IEEE 802.11 Wireless Ethernet autoselect mode 11g > status: running > ssid lower channel 8 (2447 MHz 11g) bssid 00:0d:88:93:21:3a > regdomain FCC indoor ecm authmode AUTO privacy OFF txpower 27 > scanvalid 60 protmode CTS wme burst dtimperiod 1 -dfs This looks correct so far, for an unsecured wireless access point. The wlan0 device is the interface you will use for communicating; the ath0 device exists solely as a target for wlan0 creation. Things to keep in mind: tcpdump(1) is your friend; it seems cryptic and obtuse at first glance, but it will help immensely wlan0 itself will not assign v4 addresses to clients; you need a DHCP server for that The hostap machine must be explicitly told to route packets, by setting gateway_enable="YES" in rc.conf and adding the appropriate routes If you're intending this to be a home gateway, you will likely also need NAT. > Yes, I am trying it without any encryption until I see some packets being passed. Good idea. Hope this helps! -- Fuzzy love, -CyberLeo Technical Administrator CyberLeo.Net Webhosting http://www.CyberLeo.Net Furry Peace! - http://wwww.fur.com/peace/