1
1
How do I configure my wpa_supplicant (on FreeBSD) to match the windows params in the picture?
So far I have tried this in /etc/wpa_supplicant.conf :
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=wheel
ap_scan=2
update_config=1
network={
priority=1
ssid= SSID
proto=RSN
key_mgmt=WPA-EAP
eap=TLS
identity= IDENTITY
password= PASSWORD
}
Using wpa_cli
to control WPA supplicant configuration:
Editing wpa_supplicant.conf and then reconfigure
from the wpa_cli
prompt
Then:
> status
wpa_state=SCANNING <======== What does that mean?
ip_address=192.168.15.68
>
Also I realise that the network I am trying to join may be hidden.
After adding ap_scan=2
in the wpa_supplicant.conf
file, I am also getting this:
<2>Association request to the driver failed
wpa_state=ASSOCIATING
ip_address=192.168.15.68
Supplicant PAE state=DISCONNECTED
suppPortStatus=Unauthorized
EAP state=DISABLED
and then this indefinitely
<2>Association request to the driver failed
<2>Authentication with 00:00:00:00:00:00 timed out.
<2>Trying to associate with SSID <SSID>
<2>Association request to the driver failed
<2>Authentication with 00:00:00:00:00:00 timed out.
<2>Trying to associate with SSID <SSID>
<2>Association request to the driver failed
<2>Authentication with 00:00:00:00:00:00 timed out.
UPDATE 20131202 - THE QUESTION HAS EVOLVED INTO A DIFFERENT SET OF PARAMS THAT DO MAKE MORE SENSE.
It's using a three tiers environment
Root CA (offline)
Intermediate CA (offline)
2 Issuing CAs (online)
I have those in Base64 with a .CER extension
Now how does it fit in the wpa_supplicant.conf ?
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=wheel
ap_scan=2
update_config=1
network={
priority=1
mode=0
scan_ssid=1
ssid="SSID"
proto=RSN
key_mgmt=WPA-EAP
eap=PEAP
group=CCMP TKIP
pairwise=CCMP TKIP
phase1="peaplabel=1"
phase2="auth=MSCHAPV2"
identity="IDENTITY"
password="PASSWORD"
ca_cert= ????
}
This is new to me. Is there a log file that I can check? I have been also trying to use wpa_cli. I am trying to match the params in the MS Windows config to http://www.freebsd.org/doc/handbook/network-wireless.html
– zabumba – 2013-11-26T00:37:56.693I'm asking so we don't reinvent the wheel. I am assuming you spent some time reading up on how to set up wireless on FreeBSD and could not manage it. Please show us the exact commands you ran and explain how they failed. – terdon – 2013-11-26T00:40:11.777
Yes I have spent quite a few hours indeed. My question should have been ... how do I troubleshoot this issue? After a while I found out about wpa_cli. That should be of help. Terdon, honestly, I just don't know how to tackle this and where I can read for error messages... and how I can correct my params accordingly. – zabumba – 2013-11-26T00:47:58.350
Thanks, that's a step in the right direction but what file is that? You haven't even told us what the issue is, can you not see the wifi card? Not connect at all? Connect to LAN but no internet? What is the output of
– terdon – 2013-11-26T01:19:13.250iwconfig
? What is your WiFi card? Have a look through this and this (first 2 hits for "freeBSD wireless howto"), try their suggestions and update your Q with any results/problems.Terdon, You could have just recommended to fire a few commands instead of pointing at docs on the web. I have spent hours on those before you even mentioning it. I can use Google. And iwconfig is not a command I have in my environment. I wonder if you are really willing to help after all. – zabumba – 2013-11-26T16:47:12.887
1You're quite right, I have not been very polite here, my apologies. I just take issue with the (many) posters here who expect us to google for them. With your latest update, it is clear that you are not one of them and my annoyance was not only rude but misplaced (which is why I had upvoted you yesterday, after the 1st edit). However, do note that now we can see that i) your system recognizes your card, ii) you've edited
wpa_supplicant.conf
, iii) you've tried. None of this was evident in the 1st version of your post. Please add the exact commands and options you use also though. – terdon – 2013-11-26T17:02:52.823No worries. My initial question lacked of content indeed. I just didn't know where to start. When I discovered wpa_cli command, I was able to try more in a more consistent manner. I have tried all sorts of settings. The only info I have is that screenshot, and I am trying to map those params to the FreeBSD world. Just now I wonder if I need to add the BSSID to the config... but I don't have it. – zabumba – 2013-11-26T17:24:10.827
1You should also be aware that (while this Q is on-topic and welcome to stay here) there are not many BSD people on SU. I recommend that if you don't get an answer after a few days here, you ask for the Q to be migrated to [unix.se] where there are more Unix gurus. By the way, are you running this as root or a normal user? – terdon – 2013-11-26T17:32:36.333