From owner-freebsd-wireless@FreeBSD.ORG Tue Jun 3 18:40:46 2014 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B3B01A77 for ; Tue, 3 Jun 2014 18:40:46 +0000 (UTC) Received: from mail-qa0-x22b.google.com (mail-qa0-x22b.google.com [IPv6:2607:f8b0:400d:c00::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 746E12940 for ; Tue, 3 Jun 2014 18:40:46 +0000 (UTC) Received: by mail-qa0-f43.google.com with SMTP id m5so5610361qaj.30 for ; Tue, 03 Jun 2014 11:40:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=ZKbUkoOfr5CBYQ4ZcqiGzahsetYORa4StSHR5A4kUQI=; b=KEofk/QQuRpBcXoR7E1A1mJHh0VDAYN0mDEhKFtjFy38uNfi5CaxGdUeFolOTnPwkC JDkV1L+/Wri3GexXRB/LkE9JGn6tHCjsL2HqMOc4NKVeTWJT+0aNRxQWSd+XBrAqSVSf lYDHIfZb1HximnoRDktgm8ZSzL2/LmDPHUN7Q40Z1JY2OIaysPufUHFuXC2/WgFiJ/4Q +M7Jo2y3CiToz4IqGFtrYXraC1qHxdgx/kTunkqav00XwIwzrEAier5zTKuYmIX+tTnf URJFs+LuZPHKVvutL4OHV4Xm5wQtC+MvF+3aSubnu/+BDVwNA7dRZQem0r1qrcq3PngM M9Eg== MIME-Version: 1.0 X-Received: by 10.224.135.66 with SMTP id m2mr65874308qat.55.1401820845564; Tue, 03 Jun 2014 11:40:45 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.224.43.134 with HTTP; Tue, 3 Jun 2014 11:40:45 -0700 (PDT) In-Reply-To: <538E144C.1080400@weites.com> References: <538E144C.1080400@weites.com> Date: Tue, 3 Jun 2014 11:40:45 -0700 X-Google-Sender-Auth: SoUxfHgaKCt51pEPddkFJP75H4Q Message-ID: Subject: Re: Trouble setting up multi SSID and 802.1X From: Adrian Chadd To: Harm Weites Content-Type: text/plain; charset=UTF-8 Cc: "freebsd-wireless@freebsd.org" X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Jun 2014 18:40:46 -0000 Is hat in one config file? Or two hostapd config files? -a On 3 June 2014 11:30, Harm Weites wrote: > Hi, > > While trying to setup an AP with two SSID's I ran into some issues. > > Environment: > TP-Link 1043ND (MIPS) > ath0 ether 00:19:e0:66:66:68 > wlan0 ether 02:ab:cd:ef:12:30 > wlan1 ether 00:19:e0:66:66:68 > > Both wlan0 and wlan1 have been created with wlandev ath0 and wlanmode > hostap. The goal is to have one guest wifi network, locked down using pf > and having a proper wifi network using radius for personal use (thus, > without pf). > > This is the hostapd config: > > # > ctrl_interface=/var/run/hostapd > hw_mode=g > > bss=wlan0 > interface=wlan0 > driver=bsd > ssid=gasten > wpa=3 > wpa_key_mgmt=WPA-PSK > wpa_passphrase=comegetsome > wpa_pairwise=CCMP > > bss=wlan1 > driver=bsd > ssid=prive > wpa=1 > wpa_key_mgmt=WPA-EAP > wpa_pairwise=TKIP > wpa_group_rekey=300 > wpa_gmk_rekey=640 > ieee8021x=1 > auth_algs=1 > eapol_key_index_workaround=1 > own_ip_addr=127.0.0.1 > nas_identifier=wifi.example.com > auth_server_addr=10.65.0.130 > auth_server_port=1812 > auth_server_shared_secret=secret > acct_server_addr=10.65.0.130 > acct_server_port=1813 > acct_server_shared_secret=secret > # > > Now, hostapd complains about the following: > > Configuration file: /etc/hostapd.conf > Using interface wlan0 with hwaddr 02:ab:cd:ef:12:30 and ssid "gasten" > Failed to add BSS (BSSID=02:ab:cd:ef:12:31) > wlan0: Unable to setup interface. > Failed to remove BSS interface wlan0 > > Thats it for having multiple (2) SSID's. > > Now, the 2nd issue: radius. For this, I've disabled the passphrase'd > SSID to have just one (working) SSID. > > I haven't given the backend much attention just yet, but I'm seeing the > following error after trying to associate: > > wlan0: STA a8:16:b2:54:9c:ef IEEE 802.11: associated > wlan0: CTRL-EVENT-EAP-STARTED a8:16:b2:54:9c:ef > wlan0: CTRL-EVENT-EAP-PROPOSED-METHOD vendor=0 method=1 > wlan0: STA a8:16:b2:54:9c:ef IEEE 802.11: disassociated > ioctl[SIOCS80211, op=20, val=0, arg_len=7]: No such file or directory > ioctl[SIOCS80211, op=20, val=0, arg_len=7]: No such file or directory > > This is using an Android device, with PEAP. I haven't got a clue yet on > which mode I should be using, or how to configure that but since I'm > seeing a 'No such file or directory' I'm afraid something needs to be > resolved before diving into the final configuration (if this was about > cert/key files, shouldn't it just explicitly say it's missing just > that?). Attached to this message is some debug output from hostapd from > the connection attempt. > > Regards, > Harm > _______________________________________________ > freebsd-wireless@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-wireless > To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@freebsd.org"