From owner-freebsd-wireless@FreeBSD.ORG Wed May 20 16:31:20 2015 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C5B87221 for ; Wed, 20 May 2015 16:31:20 +0000 (UTC) Received: from mail-ig0-x22b.google.com (mail-ig0-x22b.google.com [IPv6:2607:f8b0:4001:c05::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8DFC21108 for ; Wed, 20 May 2015 16:31:20 +0000 (UTC) Received: by igbhj9 with SMTP id hj9so66075923igb.1 for ; Wed, 20 May 2015 09:31:20 -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=w+aT5hT+xQOTtvanesA3SAZMmI6vnpzeFKcnNdKSsZs=; b=E2iIBC4Q39010iKw7AuQxrbnIvQDjI68p9jmcAIH1PneRw77EjWnn/qPGXLY9b6XBS A+RgkrDUNIjWZZg3wnapWaWY5uDZGWPxrLOxtK6GuToXXE5WscdjhYxL9yWGhBak9XM1 Tdk41Wv0NHfuJZhZ3vGLkPn4qqjxYMR61oLQLRGjEvRNR5jnnf8Glp7ExTpiTvYoWfZQ t3Dvzui55xbKTILk615hcMx9DJX0Eki2p/qNjTaA4QM2Yf/SF83lwKy9AJVm61nItTOZ SqENBiZaCWelp6AiKmm5pPNH8AgZp5f5LmmikC3gDZs6IGBf6AHdS0mpQ2Kt+t8mmJOx 1YQw== MIME-Version: 1.0 X-Received: by 10.50.79.232 with SMTP id m8mr28969760igx.6.1432139480094; Wed, 20 May 2015 09:31:20 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.36.38.133 with HTTP; Wed, 20 May 2015 09:31:20 -0700 (PDT) In-Reply-To: <555CB658.6040103@gmail.com> References: <01e701d08d75$fed02bd0$fc708370$@gmail.com> <003c01d08dbe$6018b900$204a2b00$@gmail.com> <555CB658.6040103@gmail.com> Date: Wed, 20 May 2015 09:31:20 -0700 X-Google-Sender-Auth: wAGffP1TWTxObtx-xnbAbpOUGKg Message-ID: Subject: Re: hostapd + freeradius can't connect From: Adrian Chadd To: Johann Cc: "freebsd-wireless@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.20 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: Wed, 20 May 2015 16:31:20 -0000 Hm, what do I use for the username/password field in wpa_supplicant? -a On 20 May 2015 at 09:29, Johann wrote: > On 2015/05/16 08:03 AM, Adrian Chadd wrote: >> >> Hi, >> Has this ever worked? > > > Yes. > > I got it working in April 2012 on FreeBSD 8 and 9. I've used a FreeRadius > server and a FreeBSD client with wpa_supplicant to test it. > > At that stage you had to enable the eap_server when you compile hostapd > > # echo HOSTAPD_CFLAGS+=-DEAP_SERVER >> /etc/src.conf > # cd /usr/src/usr.sbin/wpa/hostapd > # make > # make install > > but Bernhard Schmidt fixed it so that EAP_SERVER was enabled by default. > > > Here is the configs that I used: > > rc.conf > hostname="AP-vlan" > wlans_ath0="wlan0" > create_args_wlan0="wlanmode hostap country ZA" > ifconfig_wlan0="146.64.5.5/24 mode 11g channel 6" > defaultrouter="146.64.5.1" > hostapd_enable="YES" > cloned_interfaces="bridge0" > ifconfig_bridge0="addm sis0 addm wlan0 up" > ifconfig_sis0="up" > > > hostapd.conf > interface=wlan0 > ctrl_interface=/var/run/hostapd > ctrl_interface_group=wheel > ssid=testAP > hw_mode=g > channel=6 > > wpa=1 > wpa_pairwise=CCMP TKIP > wpa_key_mgmt=WPA-EAP > wpa_pairwise=TKIP CCMP > rsn_pairwise=CCMP > > Hope it helps > > Regards > Johann > > _______________________________________________ > 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"