From owner-freebsd-net@freebsd.org Thu Oct 15 07:05:18 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 A82E3435349 for ; Thu, 15 Oct 2020 07:05:18 +0000 (UTC) (envelope-from freebsd@grem.de) Received: from mail.evolve.de (mail.evolve.de [213.239.217.29]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (Client CN "mail.evolve.de", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CBgK93bP0z45l9 for ; Thu, 15 Oct 2020 07:05:17 +0000 (UTC) (envelope-from freebsd@grem.de) Received: by mail.evolve.de (OpenSMTPD) with ESMTP id 09f2ae61; Thu, 15 Oct 2020 07:05:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=grem.de; h=date:from:to:cc :subject:message-id:in-reply-to:references:mime-version :content-type:content-transfer-encoding; s=20180501; bh=oaVUdQ9e Pc+UomnsIp2F5IihdoA=; b=BCS9GKTNEoPdrMmboqMhPEu4nIwfi1GIzBH16nvB 67g/DZgA7/aOzscmgu1Zn7mhvXE9E3vvgHdJz+RI00ceG+GYcRGRj0SC0jd4mo9D mLAHKj4xVoUhV5S83yaQhAx+qyex7wTZj7GY7e7k5X/PEgyD+0dUrcPJgbuTY/Y+ nx4p+YSRDrK1G68bDDXCTGS6RMm5XeoT6wm6SzHM9sWDXD2OLvf3mFFzDZShhEHa wij53JTXp5mteoPI0ODHbiQoRkjtdoXAH18rqLKe3MqCPCQxpHtJl59r2eo+wlyw wstd/W/t2Hcke5NFv00TSt1Ghiu806rDVL/2LVTbIhgjPA== DomainKey-Signature: a=rsa-sha1; c=nofws; d=grem.de; h=date:from:to:cc :subject:message-id:in-reply-to:references:mime-version :content-type:content-transfer-encoding; q=dns; s=20180501; b=qt Mx//jbndsHp8JJNvmyuTG2S0DV5LfjYzhAlOZoNDt+GIRhc8oOKuF9H66QSVp4MW r2kftEx+XsZBqTnzjbLQpA9jqVdl+foIfqH4R/7uzwRpLvA58PBT18cD3dj/hclA QumY34Uhhl4oLAsu9n9n5aWoNxcxQQl7MYdL+iy4ernnEHlktcrX+B6P2HS6rvuV imMEolH6OrLqrPJ7weBoAmSU4Y7ik+sHzsUQvdfFEGurrg0yryQXt8LAcWsIXi2R 4/W6bKoQ2inHBIMi/csMFd4HWIl/j2BJwnBEZs6BHf8bLkdXEUfGonMrCtl3mITr DTXLD09YnoHNJtiM7mfA== Received: by mail.evolve.de (OpenSMTPD) with ESMTPSA id 2bf85d5a (TLSv1.2:ECDHE-RSA-CHACHA20-POLY1305:256:NO); Thu, 15 Oct 2020 07:05:11 +0000 (UTC) Date: Thu, 15 Oct 2020 09:04:29 +0200 From: Michael Gmelin To: Matthias Apitz Cc: freebsd-net@freebsd.org Subject: Re: How to connect to a Wifi AP w/o much information from its provider Message-ID: <20201015090429.1191304b@bsd64.grem.de> In-Reply-To: <20201015060214.GA6590@r314251-amd64> References: <20201015060214.GA6590@r314251-amd64> X-Face: $wrgCtfdVw_H9WAY?S&9+/F"!41z'L$uo*WzT8miX?kZ~W~Lr5W7v?j0Sde\mwB&/ypo^}> +a'4xMc^^KroE~+v^&^#[B">soBo1y6(TW6#UZiC]o>C6`ej+i Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAJFBMVEWJBwe5BQDl LASZU0/LTEWEfHbyj0Txi32+sKrp1Mv944X8/fm1rS+cAAAACXBIWXMAAAsTAAAL EwEAmpwYAAAAB3RJTUUH3wESCxwC7OBhbgAAACFpVFh0Q29tbWVudAAAAAAAQ3Jl YXRlZCB3aXRoIFRoZSBHSU1QbbCXAAAAAghJREFUOMu11DFvEzEUAGCfEhBVFzuq AKkLd0O6VrIQsLXVSZXoWE5N1K3DobBBA9fQpRWc8OkWouaIjedWKiyREOKs+3PY fvalCNjgLVHeF7/3bMtBzV8C/VsQ8tecEgCcDgrzjekwKZ7TwsJZd/ywEKwwP+ZM 8P3drTsAwWn2mpWuDDuYiK1bFs6De0KUUFw0tWxm+D4AIhuuvZqtyWYeO7jQ4Aea 7jUqI+ixhQoHex4WshEvSXdood7stlv4oSuFOC4tqGcr0NjEqXgV4mMJO38nld4+ xKNxRDon7khyKVqY7YR4d+Cg0OMrkWXZOM7YDkEfKiilCn1qYv4mighZiynuHHOA Wq9QJq+BIES7lMFUtcikMnkDGHUoncA+uHgrP0ctIEqfwLHzeSo+eUA66AqzwN6n 2ZHJhw6Qh/PoyC/QENyEyC/AyNjq74Bs+3UH0xYwzDUC4B97HgLocg1QLYgDDO1v f3UX9Y307Ew4AHh67YAFFsxEpkXwpXY3eIgMhAAE3R19L919nNnuD2wlPcDE3UeT L2ytEICQib9BXgS2fU8PrD82ToYO1OEmMSnYTjSqSv9wdC0tPYC+rQRQD9ESnldF CyqfmiYW+tlALt8gH2xrMdC/youbjzPXEun+/ReXsMCDyve3dZc09fn2Oas8oXGc Jj6/fOeK5UmSMPmf/jL+GD8BEj0k/Fn6IO4AAAAASUVORK5CYII= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4CBgK93bP0z45l9 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=grem.de header.s=20180501 header.b=BCS9GKTN; dmarc=none; spf=pass (mx1.freebsd.org: domain of freebsd@grem.de designates 213.239.217.29 as permitted sender) smtp.mailfrom=freebsd@grem.de X-Spamd-Result: default: False [-3.10 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[grem.de:s=20180501]; NEURAL_HAM_MEDIUM(-1.07)[-1.068]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:213.239.217.29/32]; NEURAL_HAM_LONG(-0.99)[-0.992]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[grem.de]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[grem.de:+]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-0.54)[-0.541]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:24940, ipnet:213.239.192.0/18, country:DE]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-net] 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 07:05:18 -0000 On Thu, 15 Oct 2020 08:02:14 +0200 Matthias Apitz wrote: > 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 to 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' > > ... > > Has someone an idea how to make a wpa_supplicant.conf entry for this > SSID? > Hi Matthias, I'm not subscribed to wireless@, so only posting on net@. It seems like these networks don't use WPA, so I assume they use a captive portal[0] instead. iPhone and mac have agents to pick those up automatically (CaptiveNetworkAgent). Which would mean, that you would connect without WPA and simply enter a website like http://neverssl.com into the browser (or a random IP address like http://10.1.1.1), which should then bring up the captive webpage, which should allow your son to enter the credentials (pretty much like you would do on hotel wifi). Cheers, Michael [0]https://en.wikipedia.org/wiki/Captive_portal -- Michael Gmelin