From owner-freebsd-questions@freebsd.org Thu Aug 4 14:59:05 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 0E407BAFB4D for ; Thu, 4 Aug 2016 14:59:05 +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 C13C6168C for ; Thu, 4 Aug 2016 14:59:04 +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 u74Ex2C5051362 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 4 Aug 2016 08:59:02 -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 u74Ex1uC051359; Thu, 4 Aug 2016 08:59:01 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Thu, 4 Aug 2016 08:59:01 -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 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (wonkity.com [127.0.0.1]); Thu, 04 Aug 2016 08:59:02 -0600 (MDT) Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8BIT 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 14:59:05 -0000 On Thu, 4 Aug 2016, Ben Woods wrote: > 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!? :) It's shown in passing in the WEP section: https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-wireless.html#network-wireless-wep WEP is sadly, still in use in the wild, so we can't repurpose that section and stop mentioning it. The whole wireless section badly needs a rewrite and reorganization. It occurs to me that we need a "WiFi for Travel" section after the quick start. That would have sections on how to deal with identifying which obsolete, insecure protocol is being used and configuring the system to use it. I will add that to my ever-growing list of doc things that need to be done. From owner-freebsd-questions@freebsd.org Thu Aug 4 15:33:55 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 8B576BAF478 for ; Thu, 4 Aug 2016 15:33:55 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from mail-wm0-x234.google.com (mail-wm0-x234.google.com [IPv6:2a00:1450:400c:c09::234]) (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 1732A1275 for ; Thu, 4 Aug 2016 15:33:54 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: by mail-wm0-x234.google.com with SMTP id o80so383290499wme.1 for ; Thu, 04 Aug 2016 08:33:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bris-ac-uk.20150623.gappssmtp.com; s=20150623; h=date:from:message-id:to:subject:cc:reply-to:in-reply-to; bh=4hycqthUBGLpkgcTPky2+9U1NJPd5L1vP2ARZ1MVbOo=; b=F24bax7wS1lKOk/DHV2c4SHtgyqqhamBK1q3eovtNav9NWthQwqpN7pcYQnkLhZCNi S/wKQXyGjsemKppd62pF5kcr5FA6rNV3lhVryCL/SzOSAKPKJbtXZJvGW9OP6hd7CNhh 7lmn4R9gci7tA+26BDSASEkKbcs+403ieDgF8JwyHcs2DCobphplF1WgIZ49/lc7hz/z rjn66QN6IiQwsVRPT1zC4ZuxZ96a7XI0R4a4/97bAYCJWGtEiVWhLXinvSMHrAU9swE9 n+GdFaJYpqXM0uDAOFuxXC2rnFu6tQ+wTAdFkfvYnZEZKZWjYaNU9xQwcMnAQgmUBC7/ UJjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:message-id:to:subject:cc:reply-to :in-reply-to; bh=4hycqthUBGLpkgcTPky2+9U1NJPd5L1vP2ARZ1MVbOo=; b=eJ1q8hEdarFLWlk9ENEGtdIjHegg2BktFAbKe+vEx7eWNTaUl0HbZtrF8B3d3FhcKq BJrfGZa7Fv8GX+W8+jRHfGF355tL7+h7e1LyupbFZWgZ6Y/3qqY+E9MRGONqdeNVObCT JTAPNQwmai2gnmi9LoR0MXZNl6sJ/F8fVlJYsogmxC81eGyXnMxxU8ZkqfvRJBdyTo2u TxlJxELx69IzsTv9dkQQoKfXZ/hLpJ1HmOGFnGccQlCrccmWvUBd1hJOCBK4QHfOXPhk xQk2IkiBphpRZ+DNm8qfwfgXhRu+oW92IbRfFIEsvYwEgtBAysa0z5fBiP2u49EuktZ4 FFUQ== X-Gm-Message-State: AEkooutFLO3xJbXhK5H3RRPlfkHu4MEqCCoBipwb/9yPGJTGcO2roxNQH/T1sq8drUP9T7TM X-Received: by 10.28.166.1 with SMTP id p1mr54816385wme.85.1470324833088; Thu, 04 Aug 2016 08:33:53 -0700 (PDT) Received: from mech-as222.men.bris.ac.uk (mech-as222.men.bris.ac.uk. [137.222.170.4]) by smtp.gmail.com with ESMTPSA id e10sm13388706wjc.21.2016.08.04.08.33.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 04 Aug 2016 08:33:52 -0700 (PDT) Received: from mech-as222.men.bris.ac.uk (localhost [127.0.0.1]) by mech-as222.men.bris.ac.uk (8.15.2/8.15.2) with ESMTP id u74FXp7P087698; Thu, 4 Aug 2016 16:33:51 +0100 (BST) (envelope-from mexas@mech-as222.men.bris.ac.uk) Received: (from mexas@localhost) by mech-as222.men.bris.ac.uk (8.15.2/8.15.2/Submit) id u74FXpDi087697; Thu, 4 Aug 2016 16:33:51 +0100 (BST) (envelope-from mexas) Date: Thu, 4 Aug 2016 16:33:51 +0100 (BST) From: Anton Shterenlikht Message-Id: <201608041533.u74FXpDi087697@mech-as222.men.bris.ac.uk> To: wblock@wonkity.com, woodsb02@gmail.com Subject: Re: wireless hints: AP, username, password - does not work Cc: freebsd-questions@freebsd.org, mexas@bris.ac.uk Reply-To: mexas@bris.ac.uk In-Reply-To: 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 15:33:55 -0000 >From wblock@wonkity.com Thu Aug 4 16:28:02 2016 >occurs to me that we need a "WiFi for Travel" section after the quick I'd appreciate such section very much! Anton