From owner-freebsd-net@freebsd.org Thu Oct 15 12:14:53 2020 Return-Path: Delivered-To: freebsd-net@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id BA2EE43CB97 for ; Thu, 15 Oct 2020 12:14:53 +0000 (UTC) (envelope-from david@schlachter.ca) Received: from mail-qt1-x82f.google.com (mail-qt1-x82f.google.com [IPv6:2607:f8b0:4864:20::82f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CBpBP0mmCz4QMb for ; Thu, 15 Oct 2020 12:14:52 +0000 (UTC) (envelope-from david@schlachter.ca) Received: by mail-qt1-x82f.google.com with SMTP id j62so1473881qtd.0 for ; Thu, 15 Oct 2020 05:14:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=schlachter-ca.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=ObAT11WWsmK67mLiTJnL7ns8sBo0DDfVsgN+MdNJDHw=; b=A6z/pnur+26Crj+TNTgPofL13AsGOfs9oJ11fVO51jxsb5Lj3nnhYGFc11Jw0Fyqae GzOvUS8sVGuzAYAv/tz1pshuKjOqgYH/sEGSuIhgTrw8oyJivEx2LWm19Bnu7woHJ3dC p2qN7p4jZ58IE5QMd9ezGa3ORsvGkTO2YlZEl/AW8jb8fWaFbogD+aS3+IjISkfbYqNQ VSjcRXUAmx1GRO0yGAXP27dfZGdkHNp255UAoW7vQ6dfGRsUz9BxHb/xtOnucd9EQLnC gYgFUYunuQU6eHKllC1kbGFwz/oO7txIalIuluB2CKey/OebJlnRhymJ7Ev8r1xjzzAr z68Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=ObAT11WWsmK67mLiTJnL7ns8sBo0DDfVsgN+MdNJDHw=; b=bxdjt+RwUDNO8K6Z9nfflzoLTozX3+hFDVmYj280iWvN68QIMpcYIAed3LUs7kcpsK ISlFsN1Mhox4yQKCPB8TrpyAhOgLvLNMFlWuROYNFpuNc5sdC23m/1ghvfcuWAgjPQ9g qyzsqRLiKIGEpDTPq1H77ra8KyAyDGvFYGDYvzHjWunWDp1B+5t5HkVOsBWbPQxzjkC1 sG5/j5jNVQ6hJ+qjx1l0AJb6aBdSM5PPZZfXBCcoA9NCunasYnZXDPHC6DGBT6tQKbcN FD9nis2uorAkDY/u/1rsgm2yoAYUCpVfQVt6uDDo+OmDx6w/1FfI4GQ3m5NJyyOdOdNp P9xw== X-Gm-Message-State: AOAM531QB88tIyjNck5fZlBC0XuHzsUBY+OSSJ5DkEekjLusH6YuUwF9 G9/21UcOsQbZq0kgL2GRvl94ECH5sfA9pi+WI54l0vYvka0qG63a X-Google-Smtp-Source: ABdhPJz0wIQIUU3ZIJLfdxWdlk4kPuL2sPwNQYplEccWAeNoTg77+GCThT9/lzKk71wo02j2OXXgAoeHTFYGbZlbmnE= X-Received: by 2002:ac8:1af1:: with SMTP id h46mr3608312qtk.371.1602764091944; Thu, 15 Oct 2020 05:14:51 -0700 (PDT) MIME-Version: 1.0 References: <20201015060214.GA6590@r314251-amd64> In-Reply-To: <20201015060214.GA6590@r314251-amd64> From: David Schlachter Date: Thu, 15 Oct 2020 08:14:14 -0400 Message-ID: Subject: Re: How to connect to a Wifi AP w/o much information from its provider To: Matthias Apitz , freebsd-wireless@freebsd.org, freebsd-net@freebsd.org X-Rspamd-Queue-Id: 4CBpBP0mmCz4QMb X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=schlachter-ca.20150623.gappssmtp.com header.s=20150623 header.b=A6z/pnur; dmarc=none; spf=pass (mx1.freebsd.org: domain of david@schlachter.ca designates 2607:f8b0:4864:20::82f as permitted sender) smtp.mailfrom=david@schlachter.ca X-Spamd-Result: default: False [-2.56 / 15.00]; RCVD_TLS_ALL(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[schlachter-ca.20150623.gappssmtp.com:s=20150623]; FREEFALL_USER(0.00)[david]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-net@freebsd.org]; DMARC_NA(0.00)[schlachter.ca]; NEURAL_HAM_LONG(-0.99)[-0.992]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[schlachter-ca.20150623.gappssmtp.com:+]; NEURAL_HAM_SHORT(-0.04)[-0.042]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::82f:from]; NEURAL_HAM_MEDIUM(-1.03)[-1.026]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-net] Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.33 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Oct 2020 12:14:53 -0000 Hi Matthias, If each student has a unique login and password for the WiFi network, the network probably uses WPA-802.1X (WPA-Enterprise). A variety of Extensible Authentication Protocol (EAP) modes are used with WPA-802.1X, and you can see them all described in `man 5 wpa_supplicant.conf`. However, your entry in wpa_supplicant.conf will have be similar to this one that I use to connect to a university WiFi network: network=3D{ ssid=3D"UniversitySSID" identity=3D"MyLogin" password=3D"MyPassword" key_mgmt=3DWPA-EAP eap=3DTTLS phase2=3D"auth=3DMSCHAPV2" } I'm not sure how to determine the exact parameters from the log output you gave, but hopefully this can get you started. Best, David Le jeu. 15 oct. 2020, =C3=A0 02 h 02, Matthias Apitz a = =C3=A9crit : > > Hello, > > The school of my son offers Wifi to the pupil. The SSID is "Schueler" > and each of the kids has a login and password assigned from the school. > Not more > information. An iPhone connects out of the box by just asking for the > two values (login/password). With our wpa_supplicant I couldn't get how t= o > set accepted values. > > I have here what the ifconfig command on my laptops says about the AP > values: > > > # ifconfig -v wlan0 list ap | egrep 'SSID/MESH|Schueler' > > Schueler 20:a6:cd:04:d8:63 6 54M -73:-96 100 EPS > SSID RATES DSPARMS<6> TIM<050400010000> > ERP<0x0> RSN HTCAP param 0x17 mcsset[0-15] extcap 0x0 txbf 0x0 antenna 0x0> HTINFO 0,0,0,0 basicmcs[]> ???<7f080400080000000040> WME cwmin 4 cwmax 10 txop 0] BK[aifsn 7 cwmin 4 cwmax 10 txop 0] VO[aifsn 2 > cwmin 3 cwmax 4 txop 94] VI[aifsn 2 cwmin 2 cwmax 3 txop 47]> > VEN > Schueler 48:4a:e9:fd:dd:c3 1 54M -88:-96 100 EPS > SSID RATES DSPARMS<1> ERP<0x0> RSN mc:AES-CCMP uc:AES-CCMP km:8021X-UNSPEC> HTCAP mcsset[0-15] extcap 0x0 txbf 0x0 antenna 0x0> HTINFO basicmcs[]> ???<7f080400080000000040> WME cwmax 10 txop 0] BK[aifsn 7 cwmin 4 cwmax 10 txop 0] VO[aifsn 2 cwmin 3 > cwmax 4 txop 94] VI[aifsn 2 cwmin 2 cwmax 3 txop 47]> > Schueler 20:a6:cd:04:d8:73 64 54M -68:-96 100 EP > SSID RATES DSPARMS<64> TIM<050400010000> > RSN HTCAP mcsset[0-31] extcap 0x0 txbf 0x0 antenna 0x0> HTINFO basicmcs[]> ???<7f080400080000000040> VHTCAP 0xffaa rx_highest 0 tx_mcs_map 0xffaa tx_highest 0> VHTOPMODE freq1_idx 58 freq2_idx 0 basic_mcs_set 0x0000> WME cwmin 4 cwmax 10 txop 0] BK[aifsn 7 cwmin 4 cwmax 10 txop 0] VO[aifsn 2 > cwmin 3 cwmax 4 txop 94] VI[aifsn 2 cwmin 2 cwmax 3 txop 47]> > VEN > Schueler e8:26:89:45:38:33 36 54M -91:-96 100 EP > SSID RATES DSPARMS<36> TIM<050400010000> > RSN HTCAP mcsset[0-31] extcap 0x0 txbf 0x0 antenna 0x0> HTINFO basicmcs[]> ???<7f080400080000000040> VHTCAP 0xffaa rx_highest 0 tx_mcs_map 0xffaa tx_highest 0> VHTOPMODE freq1_idx 42 freq2_idx 0 basic_mcs_set 0x0000> WME cwmin 4 cwmax 10 txop 0] BK[aifsn 7 cwmin 4 cwmax 10 txop 0] VO[aifsn 2 > cwmin 3 cwmax 4 txop 94] VI[aifsn 2 cwmin 2 cwmax 3 txop 47]> > VEN > Schueler 48:4a:e9:fd:dd:d3 124 54M -90:-96 100 EP > SSID RATES DSPARMS<124> TIM<050400010000> > RSN HTCAP mcsset[0-31] extcap 0x0 txbf 0x0 antenna 0x0> HTINFO basicmcs[]> ???<7f080400080000000040> VHTCAP 0xffaa rx_highest 0 tx_mcs_map 0xffaa tx_highest 0> VHTOPMODE freq1_idx 122 freq2_idx 0 basic_mcs_set 0x0000> WME cwmin 4 cwmax 10 txop 0] BK[aifsn 7 cwmin 4 cwmax 10 txop 0] VO[aifsn 2 > cwmin 3 cwmax 4 txop 94] VI[aifsn 2 cwmin 2 cwmax 3 txop 47]> > VEN > Schueler 48:4a:e9:6f:40:c3 11 54M -92:-96 100 EPS > SSID RATES DSPARMS<11> ERP<0x0> RSN mc:AES-CCMP uc:AES-CCMP km:8021X-UNSPEC> HTCAP mcsset[0-15] extcap 0x0 txbf 0x0 antenna 0x0> HTINFO basicmcs[]> ???<7f080400080000000040> WME cwmax 10 txop 0] BK[aifsn 7 cwmin 4 cwmax 10 txop 0] VO[aifsn 2 cwmin 3 > cwmax 4 txop 94] VI[aifsn 2 cwmin 2 cwmax 3 txop 47]> > Schueler e8:26:89:45:38:23 1 54M -85:-96 100 EPS > SSID RATES DSPARMS<1> ERP<0x0> RSN mc:AES-CCMP uc:AES-CCMP km:8021X-UNSPEC> HTCAP mcsset[0-15] extcap 0x0 txbf 0x0 antenna 0x0> HTINFO basicmcs[]> ???<7f080400080000000040> WME cwmax 10 txop 0] BK[aifsn 7 cwmin 4 cwmax 10 txop 0] VO[aifsn 2 cwmin 3 > cwmax 4 txop 94] VI[aifsn 2 cwmin 2 cwmax 3 txop 47]> > Schueler 48:4a:e9:6d:b8:c3 1 54M -91:-96 100 EPS > SSID RATES DSPARMS<1> ERP<0x0> RSN mc:AES-CCMP uc:AES-CCMP km:8021X-UNSPEC> HTCAP mcsset[0-15] extcap 0x0 txbf 0x0 antenna 0x0> HTINFO basicmcs[]> ???<7f080400080000000040> WME cwmax 10 txop 0] BK[aifsn 7 cwmin 4 cwmax 10 txop 0] VO[aifsn 2 cwmin 3 > cwmax 4 txop 94] VI[aifsn 2 cwmin 2 cwmax 3 txop 47]> > > Has someone an idea how to make a wpa_supplicant.conf entry for this > SSID? > > Thanks > > matthias > > -- > Matthias Apitz, =E2=9C=89 guru@unixarea.de, http://www.unixarea.de/ > +49-176-38902045 > Public GnuPG key: http://www.unixarea.de/key.pub > =D0=91=D0=B5=D0=B7 =D0=BA=D0=BD=D0=B8=D0=B3=D0=B8 =D0=BD=D0=B5=D1=82 =D0= =B7=D0=BD=D0=B0=D0=BD=D0=B8=D1=8F, =D0=B1=D0=B5=D0=B7 =D0=B7=D0=BD=D0=B0=D0= =BD=D0=B8=D1=8F =D0=BD=D0=B5=D1=82 =D0=BA=D0=BE=D0=BC=D0=BC=D1=83=D0=BD=D0= =B8=D0=B7=D0=BC=D0=B0 (=D0=92=D0=BBa=D0=B4=D0=B8=D0=BC=D0=B8=D1=80 =D0=98= =D0=BB=D1=8C=D0=B8=D1=87 =D0=9B=D0=B5=D0=BD=D0=B8=D0=BD) > Without books no knowledge - without knowledge no communism (Vladimir > Ilyich Lenin) > Sin libros no hay saber - sin saber no hay comunismo. (Vladimir Ilich > Lenin) > _______________________________________________ > freebsd-wireless@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-wireless > To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@freebsd.or= g > " >