Wireless Internet PEAP Authentication Using wpa_supplicant

McAgnel

Disciple
I was trying to configure ubuntu installed on my lappy Sony vaio(Vaio Queen :bleh:) to get it connected to a network protected with PEAP. It seemed to be a hard task when i tried to do with xsupplicant. After a long time of googling and configuring with the system, it seemed to work pretty fine. :D But the effort required is very much minimal as you will notice here with wpa_supplicant.

1. Install wpa_supplicant application

apt-get install wpa_supplicant

2. Edit /etc/wpa_supplicant/wpa_supplicant.conf to include something like:

network={

ssid="YOUR NETWORK NAME GOES HERE"

scan_ssid=1

key_mgmt=IEEE8021X

eap=PEAP

phase2="auth=MSCHAPV2"

identity="netid/username"

password="password"

}

Remember to remove any read/write permissions for other users and group users since the conf file contains your password in it.

3. Edit your /etc/network/interfaces file:



iface eth1 inet dhcp

wpa-driver wext

wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

where eth1 is your wireless card interface.

4. Restart the networking service

sudo /etc/init.d/networking restart

5. Connect to the internet

sudo ifup eth1

6. To disconnect

sudo ifdown eth1

It has been sometime since I last posted in TE :eek:hyeah:

ENSOI :hap2:
 
Guys,

please ignore step 1.

Incase you have multiple networks in different places then add a similar block as given in step 2 with the ID of the new network in the same file.

Eg,
network={
ssid="network1"
scan_ssid=1
key_mgmt=IEEE8021X
eap=PEAP
phase2="auth=MSCHAPV2"
identity="netid/username"
password="password"
}

network={
ssid="network2"
scan_ssid=1
key_mgmt=IEEE8021X
eap=PEAP
phase2="auth=MSCHAPV2"
identity="netid/username"
password="password"
}
 
Another update,

The device need not be disabled and enabled everytime you need to connect and disconnect.

One can use the dhclient to do the same :)

This can be used to log into some universities which uses PeaP authentication.
 
Back
Top