From owner-freebsd-questions@freebsd.org Wed Aug 3 23:47:35 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 05434BAE2E3 for ; Wed, 3 Aug 2016 23:47:35 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "wonkity.com", Issuer "wonkity.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id C693D1D98 for ; Wed, 3 Aug 2016 23:47:34 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.15.2/8.15.2) with ESMTPS id u73NlV1Q017481 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 3 Aug 2016 17:47:31 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.15.2/8.15.2/Submit) with ESMTP id u73NlVNe017476; Wed, 3 Aug 2016 17:47:31 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Wed, 3 Aug 2016 17:47:31 -0600 (MDT) From: Warren Block To: Ben Woods cc: "mexas@bris.ac.uk" , "freebsd-questions@freebsd.org" Subject: Re: wireless hints: AP, username, password - does not work In-Reply-To: Message-ID: References: <201608022211.u72MBIxR079329@mech-as222.men.bris.ac.uk> User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (wonkity.com [127.0.0.1]); Wed, 03 Aug 2016 17:47:31 -0600 (MDT) 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: Wed, 03 Aug 2016 23:47:35 -0000 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.