Date: Wed, 11 Dec 2013 17:02:23 +0100 From: "Julian H. Stacey" <jhs@berklix.com> To: Martin McCormick <martin@dc.cis.okstate.edu> Cc: freebsd-questions@freebsd.org Subject: Re: Starting the wpa_supplicant Daemon from rc.conf Message-ID: <201312111602.rBBG2NL1024526@fire.js.berklix.net> In-Reply-To: Your message "Tue, 10 Dec 2013 15:56:35 CST." <201312102156.rBALuZ6a000955@x.it.okstate.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
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: <freebsd-wireless@freebsd.org> 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201312111602.rBBG2NL1024526>