From owner-freebsd-net@FreeBSD.ORG Wed Oct 7 02:43:04 2009 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BBFE91065672 for ; Wed, 7 Oct 2009 02:43:04 +0000 (UTC) (envelope-from dhorn2000@gmail.com) Received: from mail-gx0-f214.google.com (mail-gx0-f214.google.com [209.85.217.214]) by mx1.freebsd.org (Postfix) with ESMTP id 7AF1A8FC0C for ; Wed, 7 Oct 2009 02:43:04 +0000 (UTC) Received: by gxk6 with SMTP id 6so3951230gxk.13 for ; Tue, 06 Oct 2009 19:43:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=1FdSg+9kzZhBKeYCkcIqqCzTUvBPxyLEXz6viTtN85o=; b=bYR2YU4RtYRKNPCaKoY84Zjy3BT6Hr33Oq89Mgvvfwh2p3h9n2vQezw6pJrNOxjXKu N+ovXujT+Tuto5dlzONh2tcDq81kwUvWWkVdwhsNOTnwDnFcBLiMHAf47pu7bDNJ/2zO VKZoyKOZhLSsyOc5he3RnGwj1ADQwj+melD50= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=XY+HnhCjFPXAw1SES+j+C/GngX+JlCzu1GNFloN2mJR60TyLuXrZn1qICA38FlK0k1 x6eLU7j69ZKaB6M125W66ZUoFUE3w516WJEbyhu3CMjPUEyAxWk8RW4VLUznqAekZx7i P/fph9qtC9WoXLhd+Sf6vbCSfTP3FbPpAIjBQ= MIME-Version: 1.0 Received: by 10.101.113.12 with SMTP id q12mr2350305anm.124.1254883383728; Tue, 06 Oct 2009 19:43:03 -0700 (PDT) Date: Tue, 6 Oct 2009 22:43:03 -0400 Message-ID: <25ff90d60910061943g75ab90bcs785659f2c2ec40f4@mail.gmail.com> From: David Horn To: freebsd-net@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: ezwlansetup sh script (8.0) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Oct 2009 02:43:04 -0000 I have recently been using my laptop wifi in several new locations and decided it was time to write a user friendly interactive shell script to manage the necessary configuration file entries that govern wlan connections in freebsd 8+, and to manage wpa_supplicant, etc. This is just a first draft (no warranties!), but I wanted to get some feedback before I continue. It still needs some formatting/style changes, and likely re-wording of some of the prompts. Please let me know if: a) It eats your cat or config files b) It works and/or you find it useful c) It sucks, and you find zero value since you have memorized wpa_supplicant.conf and do not need a user friendly front end d) ok for a start, but you really want feature abc e) there is already a duplication of effort going on somewhere else # Revision=0.1 (Alpha) Works, but not well tested yet # # Requires: FreeBSD 8+ # # Designed for the mainstream end-user workstation scenarios, # not for any of the server hostap, multi-bss, lagg, vlan, gateway, WDS, or # other setups which require static configuration # # Works with: # - WEP, WPA, WPA2, NONE Authentication - Station (STA) mode ONLY # - multiple Access-Point (BSS) profiles in wpa_supplicant.conf # - single wlanX interface per wireless nic # - multiple wireless nics (e.g. iwn0 and ath0) # - with/without existing /etc/rc.conf entries # - with/without existing /etc/wpa_supplicant entries # - demand-load wireless nic kernel module + add to loader.conf # - priority field per profile setting # - Hidden SSID per profile setting # - rescan and display sorted AP list (sorted by signal strength) # - Display scan results with detected authentication values # - Ad-Hoc (As a static rc.conf entry only) + switch ibss<->bss mode # # Broken with # - WPS # - WPA-EAP/802.1x - tbd # - IBSS with encryption (WEP/WPA static key) Full sh script (ezwlansetup.sh) is here: http://sites.google.com/site/freebsdattachments/home/ezwlansetup.sh ./ezwlansetup.sh --help for usage information ---Dave H