Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Jun 2014 11:40:45 -0700
From:      Adrian Chadd <adrian@freebsd.org>
To:        Harm Weites <harm@weites.com>
Cc:        "freebsd-wireless@freebsd.org" <freebsd-wireless@freebsd.org>
Subject:   Re: Trouble setting up multi SSID and 802.1X
Message-ID:  <CAJ-Vmo=fA6_iDXMbb7wOeoK_ea4gHzjhK3vWVEg-HOvPWvNg0g@mail.gmail.com>
In-Reply-To: <538E144C.1080400@weites.com>
References:  <538E144C.1080400@weites.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Is hat in one config file? Or two hostapd config files?



-a


On 3 June 2014 11:30, Harm Weites <harm@weites.com> 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"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ-Vmo=fA6_iDXMbb7wOeoK_ea4gHzjhK3vWVEg-HOvPWvNg0g>