Starting the wpa_supplicant Daemon from rc.conf

Teske, Devin Devin.Teske at fisglobal.com
Wed Dec 11 18:05:52 UTC 2013


On Dec 11, 2013, at 9:47 AM, Julian H. Stacey wrote:

> "Teske, Devin" wrote:
>> On Dec 10, 2013, at 1:56 PM, Martin McCormick wrote:
>>> 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"
>>> wpa_supplicant_program="/usr/sbin/wpa_supplicant"	
>>> #executable
>>> wpa_supplicant_flags="-B -c/etc/wpa_supplicant.conf -D wired -i le0"
>>> 
>> 
>> What you actually want is:
>> 
>> ifconfig_le0="<normal stuff> WPA"
>> # Don't worry, the WPA will be stripped out when talking to ifconfig(8)
>> # NB: WPA can appear anywhere in the ifconfig_* value
> 
> Martin,
> I notice my rc.conf also has
> 	ifconfig_wlan0="WPA"
> Sorry I didnt mention it earlier, I didn't notice it, & my WLAN config is 
> a mess, a work in progress, (pending a new test net).
> 
> I also noticed that le0 looks wrong for a 2nd reason:
> man le says your le is an ethernet device, 
> my rc.conf has these snippets
>        wlans_urtwn0="wlan0"
>        wlans_run0="wlan0"
> # man urtwn & man run : ... wireless nets
> 	ifconfig_wlan0="DHCP"
> 	ifconfig_wlan0="WPA"
> 	wlandebug_wlan0="scan+auth+assoc"       # /etc/defaults/rc.conf
> Though may be misleading, as said, work in progress.
> 

Keep in mind though...

Martin is doing 802.1X over a wired connection. Your configuration appears
to be for 802.11 for wireless.

In /etc/network.subr, you can see the code that determines that
le0 is a wired connection and treats it differently. I do believe that adding the
"WPA" keyword to the ifconfig_le0 line is correct for an 802.1X wired connection.
-- 
Devin

_____________
The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you.


More information about the freebsd-questions mailing list