From owner-freebsd-questions@freebsd.org Thu Aug 4 05:44:50 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 96117BAE205 for ; Thu, 4 Aug 2016 05:44:50 +0000 (UTC) (envelope-from woodsb02@gmail.com) Received: from mail-yb0-x22c.google.com (mail-yb0-x22c.google.com [IPv6:2607:f8b0:4002:c09::22c]) (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 533C5118A for ; Thu, 4 Aug 2016 05:44:50 +0000 (UTC) (envelope-from woodsb02@gmail.com) Received: by mail-yb0-x22c.google.com with SMTP id v8so2357324ybe.3 for ; Wed, 03 Aug 2016 22:44:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=wzT0UTehjm1yIzTH5KHv9Ra+OWJY9wKxwvg5h6V+III=; b=ndSaF+DroqAfV/uv4ISCirpDa6BywzrNGHJIp/MuFrM491B3xuARtnG6aRNiwObaNN bO0CrTn2YSepDSuQc5/MkSKsDvQ3iX1BRgNJBBPTtgYXSksv6zF84enoaYPoL5auZtgP wNBmnG1G0DmWxk2mA1NM6syDcx9Qhrp2YmUvdZOix4mLTh7iE86WHv9Q/DKIsjd5uNt6 iXMOSfeubGbAr4Hav9FyZIAYw8+ZKzVLMKf2/9BqbxvYuIeVmhhsSHLM5QbIfFKf/QFU 1S7m/mcEwzvwhwx1/ULuqM9TYpFmweMoc5HDof17sQa+K4EHN/n/dDdiOK55hGHC4amo GnVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=wzT0UTehjm1yIzTH5KHv9Ra+OWJY9wKxwvg5h6V+III=; b=IyJVN1v7z0oO2jD/L711FZGAGrG2mVsVcRS56XbYP9tyoyU53lxry5MW8HG4XSozYy LEnHHIV2UDetKpi4FBz9QGLgZT+UuANlYszMMAwkCZ7fp2ub4ONg02yMbMPa8PukbkQV Ty8nYPOt9XK09cTGswnGzkQT+pWnDdvePfvnam8Jz8/qPfIJY5KxN4IMNpBUKL/37BvY Asiazh+m9weNnW99cOsjP9OZBmdMzRyRf72GUtT7eUk/4d7nhKAravElDPWbiBIrp9kO pINiV5Kjnc5ET+K5pvSehM/fukhsy3gLZUeto2Vl6r2ccCyqz2villjNxYwB2H2O+0FK UHWg== X-Gm-Message-State: AEkoous8z3P5jeEf8WjtG76qjpd2CpCJUmOnKXLuDNO/1pzo0x09zi3xtjawMb7Z8JnzDqLc0f9zLKZmDRUeiA== X-Received: by 10.37.101.5 with SMTP id z5mr54506678ybb.65.1470289489443; Wed, 03 Aug 2016 22:44:49 -0700 (PDT) MIME-Version: 1.0 Received: by 10.37.199.65 with HTTP; Wed, 3 Aug 2016 22:44:48 -0700 (PDT) In-Reply-To: References: <201608022211.u72MBIxR079329@mech-as222.men.bris.ac.uk> From: Ben Woods Date: Thu, 4 Aug 2016 13:44:48 +0800 Message-ID: Subject: Re: wireless hints: AP, username, password - does not work To: Warren Block Cc: "mexas@bris.ac.uk" , "freebsd-questions@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Aug 2016 05:44:50 -0000 On 4 August 2016 at 07:47, Warren Block wrote: > On Wed, 3 Aug 2016, Ben Woods wrote: > > On FreeBSD, it is as you said. Assuming you have atheros, put the following >> in your /etc/rc.conf (replacing your_ssid_here with the wifi SSID): >> >> wlans_ath0="wlan0" >> ifconfig_wlan0="ssid *your_ssid_here* DHCP" >> >> >> Run: >> # service netif restart >> >> Once you are connected and have an IP address, open your browser and >> navigate to any webpage which DOESNT USE HTTPS. I commonly use >> www.distrowatch.com, but any others you know which don't use https will >> work. This is the part that tricks many people, as the captive portal will >> redirect all web traffic to the portal until authenticated, but https >> traffic will detect the server is not who they are supposed to be and >> fail. >> >> Once authenticated, you should get a connection. Note that if can be >> easier >> to connect with a mobile phone to confirm how it should work, and what the >> SSID is etc, and then replicate on your FreeBSD laptop. >> > > This can be done in /etc/wpa_supplicant.conf with just: > > network={ > ssid="horriblecaptiveportal" > key_mgmt="NONE" > } > > Then it is not necessary to change /etc/rc.conf. > TIL - thanks! Is it in the handbook!? :) -- From: Benjamin Woods woodsb02@gmail.com