User Tools

Site Tools


public:wireless_lan_using_linux

This is an old revision of the document!


Old Version using WEP

Setup of the UNIBZ Wireless LAN for Linux WPA

Security used within the WLAN Network: WPA1/WPA2 + PEAP + MSCHAPv2

Pre-requisites

  • Drivers for your Wireless Adapter and Requirements, installed and configured.
  1. Intel PRO/Wireless 2100 802.11b (Centrino) http://ipw2100.sourceforge.net/
  2. Intel PRO/Wireless 2200 802.11g and 2915 802.11ag (Centrino) http://ipw2200.sourceforge.net/
  3. Intersil PrismII driver with HostAP mode http://hostap.epitest.fi/
  4. Atheros MADWiFi driver (most cards with 802.11a or 108 Mb/s) http://madwifi.org/
  • Linux Software for the Authentication: wpa_supplicant. It is a WPA Supplicant with support for WPA and WPA2 (IEEE 802.11i/RSN)

Other Wireless LAN resources for Linux can be found here http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/

Installing wpa_supplicant

1. apt-get install wpa_supplicant

2. Configure /etc/wpa_supplicant.conf

less /etc/wpa_supplicant.conf

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
eapol_version=1
ap_scan=1
fast_reauth=1

network={
        disabled=0
        ssid="ScientificNetworkSouthTyrol"
        proto=WPA
        key_mgmt=WPA-EAP
        auth_alg=OPEN
        eap=PEAP
        identity="unibzlogin@unibz.it"
        password="unibzpassword"
        ca_cert="/etc/ssl/certs/Thawte_Premium_Server_CA.pem"
        phase1="peaplabel=0 peapver=0"
        phase2="auth=MSCHAPV2"
        priority=10
}

3. Bring Interface (eth1/wlan, etc.) up

sudo ifconfig eth1 up

4. Start wpa_supplicant

 sudo wpa_supplicant -D wext -i eth1 -c /etc/wpa_supplicant.conf

5. Get an IP Address

 sudo dhclient3 eth1

Using NetworkManager

Configuration for wired authentication 802.1x

 vi /etc/wpasupplicant/wpa_supplicant.conf
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
eapol_version=1
ap_scan=0
fast_reauth=1

network={
        eap=PEAP
        eapol_flags=0
        phase1="peaplabel=0"
        phase2="auth=MSCHAPV2"
        priority=10
        key_mgmt=IEEE8021X
        auth_alg=OPEN
}
/data/www/wiki.inf.unibz.it/data/attic/public/wireless_lan_using_linux.1166174627.txt.gz · Last modified: 2019/01/16 10:03 (external edit)