1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Networks Linux wireless authentication help needed (wpa, but with some special settings)

Discussion in 'Hardware' started by Who_me_33, 24 Jul 2006.

  1. Who_me_33

    Who_me_33 What's a Dremel?

    Joined:
    26 Oct 2004
    Posts:
    422
    Likes Received:
    0
    As the topic states, at uni the wireless network is authenticated by wpa, with tkip data encryption. http://www.its.canterbury.ac.nz/web/wireless/winxp.shtml is the link to the windows setup guide, and I was wondering if anyone could tell me how to do the same in linux (I can connect fine under xp, its just a pain having to change os every time I need to use the net (I also use matlab on linux)). Any help would be much appreciated (even if its someone telling me thats its simply not possible)
    Thanks
    Nick
     
  2. severedhead

    severedhead What's a Dremel?

    Joined:
    19 Dec 2002
    Posts:
    1,479
    Likes Received:
    1
    With my lappy running SUSE I find that ndiswrapper (for Windows drivers) with the WPA supplicant connect fine to my network.
    A quick google should find a guide, I followed one on Wikipedia and was connected in about 5 mins.
     
  3. Bruno_me

    Bruno_me Fake-ad‎min

    Joined:
    30 Mar 2003
    Posts:
    1,136
    Likes Received:
    1
    wpa_supplicant

    It does connection management and wpa supplication. Ideally use something with the native hostap drivers, but lots of other chipsets work (see the page)
     
  4. Who_me_33

    Who_me_33 What's a Dremel?

    Joined:
    26 Oct 2004
    Posts:
    422
    Likes Received:
    0
    Ive got it built, and installed, but when i issue the command
    Code:
    wpa_supplicant -iwlan0 -c/home/Nick/wpa_suplicant.conf -d
    I get the following displayed
    Code:
    Initializing interface 'wlan0' conf '/home/Nick/wpa_suplicant.conf' driver 'default' ctrl_interface 'N/A'
    No driver interfaces build into wpa_supplicant.
    My .config file is as follows
    Code:
    CONFIG_DRIVER_NDISWRAPPER=y
    CONFIG_WIRELESS_EXTENSION=y
    CONFIG_IEEE8021X_EAPOL=y
    CONFIG_EAP_MD5=y
    CONFIG_EAP_MSCHAPV2=y
    CONFIG_EAP_TLS=y
    CONFIG_EAP_PEAP=y
    CONFIG_EAP_TTLS=y
    CONFIG_EAP_GTC=y
    CONFIG_EAP_OTP=y
    CONFIG_EAP_SIM=y
    CONFIG_EAP_AKA=y
    CONFIG_EAP_PSK=y
    CONFIG_EAP_PAX=y
    CONFIG_EAP_LEAP=y
    and my wpa_supplicant.conf is as follows


    Code:
    # WPA-PSK/TKIP
    
    ctrl_interface=/var/run/wpa_supplicant
    
    network={
    	ssid="UCwireless"
    	key_mgmt=WPA-PSK
    	eap=PEAP
    	phase2="auth=MSCHAPV2"
    	identity="myu.name"
    	password="myp.word"
    	proto=WPA
    	pairwise=TKIP
    	group=TKIP
    
    }
    
    Also with the wpa_supplicant.conf, im not sure its setup right for use with my network. Is it possible if someone checks my wpa_config, and compare it to my guide posted in post 1 (for connecting to the network using xp) and tell me any little (or major) bits ive got wrong. Im not sure about the server certificates at all, because it appears the windows way accepts a server certificate from the network, and the linux way requires one.
    Note, my wpa_supplicant is in /bin/wpa_supplicant, and im using the bcm4318 wlan chipset, using the ndiswrapper, ser up and working properly.
     
  5. Glider

    Glider /dev/null

    Joined:
    2 Aug 2005
    Posts:
    4,173
    Likes Received:
    21
    I tought I had replied this morning, but seems not... I don't personally use wpa, but I'll give my 2ct anyways...
    It seems to be missing an ctrl_interface.
    seems ok...
    I found this Dutch site (I speak dutch ;)) and it gives this as config:
    Code:
    ctrl_interface=/var/run/wpa_supplicant
    ctrl_interface_group=users
    network={
            ssid="UA-aes"
            scan_ssid=1
            key_mgmt=WPA-EAP
            eap=PEAP
            identity="uw-login"
            password="uw-paswoord"
            phase1="peaplabel=0"
            phase2="auth=MSCHAPV2"
    
    HTH

    EDIT: found this, it's similar, maybe you can adapt it :)
     
    Last edited: 27 Jul 2006
Tags:

Share This Page