From owner-freebsd-questions@FreeBSD.ORG Wed Dec 11 16:02:58 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9968E39C for ; Wed, 11 Dec 2013 16:02:58 +0000 (UTC) Received: from land.berklix.org (land.berklix.org [144.76.10.75]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 20F9E1916 for ; Wed, 11 Dec 2013 16:02:57 +0000 (UTC) Received: from mart.js.berklix.net (pD9FBF3F5.dip0.t-ipconnect.de [217.251.243.245]) (authenticated bits=128) by land.berklix.org (8.14.5/8.14.5) with ESMTP id rBBG2iPh016237; Wed, 11 Dec 2013 16:02:45 GMT (envelope-from jhs@berklix.com) Received: from fire.js.berklix.net (fire.js.berklix.net [192.168.91.41]) by mart.js.berklix.net (8.14.3/8.14.3) with ESMTP id rBBG2ZCj003563; Wed, 11 Dec 2013 17:02:35 +0100 (CET) (envelope-from jhs@berklix.com) Received: from fire.js.berklix.net (localhost.js.berklix.net [127.0.0.1]) by fire.js.berklix.net (8.14.4/8.14.4) with ESMTP id rBBG2NL1024526; Wed, 11 Dec 2013 17:02:29 +0100 (CET) (envelope-from jhs@fire.js.berklix.net) Message-Id: <201312111602.rBBG2NL1024526@fire.js.berklix.net> To: Martin McCormick Subject: Re: Starting the wpa_supplicant Daemon from rc.conf From: "Julian H. Stacey" Organization: http://berklix.com BSD Unix Linux Consultancy, Munich Germany User-agent: EXMH on FreeBSD http://berklix.com/free/ X-URL: http://www.berklix.com In-reply-to: Your message "Tue, 10 Dec 2013 15:56:35 CST." <201312102156.rBALuZ6a000955@x.it.okstate.edu> Date: Wed, 11 Dec 2013 17:02:23 +0100 Sender: jhs@berklix.com Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Dec 2013 16:02:58 -0000 Martin McCormick wrote freebsd-questions@freebsd.org: > We are using 802.1x on our wired network and the wpa_supplicant > on this system works like it should to authenticate with the > network if manually called as in > > sudo ./etc/testwpa which is the name I gave the script that > calls wpa_supplicant and gives it the configuration file and > interface information to authenticate. > > The only thing that is not yet working is getting > wpa_supplicant to authenticate automatically upon reboot or > startup. I presently have the following in /etc/rc.conf: > > #wpa_supplicant > wpa_supplicant_enable="YES" What do you expect is looking for wpa_supplicant_enable ? wpa_supplicant_enable is not in 10-RC1 (or preceeding) /src/etc/defaults/rc.conf, It's not in any of src/ except src/contrib/wpa/wpa_supplicant/ where all occurences of string are C variables wpa_supplicant_enabled_network[s] It's not in current/ports/net/wpa_gui , just similar but longer C vars. It's not in ports/net-mgmt/wifimgr BTW What does `uname -a` says ? ie what release ? > wpa_supplicant_program="/usr/sbin/wpa_supplicant" > #executable > wpa_supplicant_flags="-B -c/etc/wpa_supplicant.conf -D wired -i le0" My rc.local calls wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf & your le0 looks wrong (IMHO *), I recall I found I needed not physical device driver name but instead : -i wlan0 > The test script doesn't daemonize so there is no -B flag. > We send: > > sudo wpa_supplicant -c /etc/wpa_supplicant.conf -D wired -i le0 > > We get messages saying that the authentication was successful and > the port opens. > > There are no log entries until I ran the sudo command in > the test so I don't think that wpa_supplicant is ever run by the > command in rc.conf. > > Thanks for all constructive ideas. > > Martin McCormick BTW I also kick off wpa_supplicant from attach in /usr/local/etc/devd/jhs.conf in case my first wlan dev is only plugged in after boot. (Whether that might fight with a prior wpa_supplicant started at boot if another wlan device already plugged in, I havent had time to consider) * I've only made few wlan connections myself, If you get stuck, ask specialist list: Cheers, Julian -- Julian Stacey, BSD Unix Linux C Sys Eng Consultant, Munich http://berklix.com Interleave replies below like a play script. Indent old text with "> ". Send plain text, not quoted-printable, HTML, base64, or multipart/alternative. Mailbox overflow 2013_12_10_21:00 - 2013_12_11_11:00 GMT. No reply: Resend.