lundi 25 octobre 2010
FreeRadius 2.1.10: Tests pour OpenLDAP et wpa_supplicant sur Debian Lenny (méthode EAP-TTLS)
Par david techer, lundi 25 octobre 2010 à 00:19 :: Mon réseau et compagnie...

J'ai actuellement un domU qui tourne déjà prévu pour FreeRadius 2.1.8.
Avant de procéder à la mise à jour sur ce même domU, je me suis donc créé un nouveau domU pour tester la version 2.1.10, jugé stable (à en croire la release note de cette version)Intérêt EAP-TTLS et OpenLDAP?
Voir- http://fr.wikipedia.org/wiki/Extensible_Authentication_Protocol
- http://2003.jres.org/actes/paper.143.pdf
Architecture pour le test
FreeRadius
Installation sur melina-xen07
apt-get update apt-get install build-essential libldap2-dev libssl-dev openssl wget ftp://ftp.freeradius.org/pub/freeradius/freeradius-server-2.1.10.tar.bz2 tar xjf freeradius-server-2.1.10.tar.bz2 cd freeradius-server-2.1.10 tar xjf freeradius-server-2.1.10.tar.bz2 cd freeradius-server-2.1.10 ./configure --prefix=/opt/freeradius make make install echo "/opt/freeradius/lib" > /etc/ld.so.conf.d/freeradius.conf
Génération du certificat serveur
Suivre les instructions de/opt/freeradius/etc/raddb/certs/README ou voir sou Google avec tinyca et freeradius
Fichiers de configurations
Récupérez ceux de ce précédent billethttp://www.davidgis.fr/blog/index.php?2009/12/06/626--freeradius-217-openldap-partie-2-eap-ttls-fichiers-de-configurations (ATTENTION POUR LE MOT DE PASSE PAR RAPPORT AU CERTIFICAT fichiereap.conf pour private_key_password)
Configuration pour le belkin
Consultez le billet http://www.davidgis.fr/blog/index.php?2010/01/10/644-flasher-belkin-fd7130-avec-dd-wrt-et-freeradius-218Rapide test sur un poste client (wpa_supplicant)
Test couronné de succès!!! Sur le serveur (melina-xen07), on lance le serveur radius en mode debug/opt/freeradius/sbin/radiusd -XSur le poste client (bremko)
root@bremko:~# cat /etc/wpa_supplicant/wifi_belkin54g_03.conf
ctrl_interface=/var/run/wpa_supplicant
ap_scan=1
network={
ssid="belkin54g"
scan_ssid=1
key_mgmt=WPA-EAP
# eap=TTLS
#########################
# Authentification LDAP #
#########################
phase2="auth=PAP" # Necessaire sinon on tourne en boucle
identity="????" # utilisateur OpenLDAP
password="????" # Mot de passe OpenLDAP
###############
# Certificats #
###############
# Rappel: pas obligatoire avec EAP-TTLS
# client_cert="/etc/wpa_supplicant/certs/david.techer@davidgis.fr.pem"
# private_key="/etc/wpa_supplicant/certs/david.techer@davidgis.fr.pem"
# private_key_passwd="chocolat"
}
root@bremko:~# /usr/local/sbin/wpa_supplicant -P /var/run/wpa_supplicant.ath0.pid -i eth1 -Dwext -c /etc/wpa_supplicant/wifi_belkin54g_03.conf
Trying to associate with 00:30:bd:98:fa:ef (SSID='belkin54g' freq=2462 MHz)
Associated with 00:30:bd:98:fa:ef
CTRL-EVENT-EAP-STARTED EAP authentication started
CTRL-EVENT-EAP-PROPOSED-METHOD vendor=0 method=21
CTRL-EVENT-EAP-METHOD EAP vendor 0 method 21 (TTLS) selected
CTRL-EVENT-EAP-PEER-CERT depth=1 subject='/C=FR/ST=France/L=Avignon/O=Resau DavidGIS./emailAddress=info@davidgis.fr/CN=Certificate Authority Radius DavidGIS'
CTRL-EVENT-EAP-PEER-CERT depth=1 subject='/C=FR/ST=France/L=Avignon/O=Resau DavidGIS./emailAddress=info@davidgis.fr/CN=Certificate Authority Radius DavidGIS'
CTRL-EVENT-EAP-PEER-CERT depth=0 subject='/C=FR/ST=France/O=Resau DavidGIS./CN=Certificate Authority Radius DavidGIS/emailAddress=info@davidgis.fr'
CTRL-EVENT-EAP-SUCCESS EAP authentication completed successfully
WPA: Key negotiation completed with 00:30:bd:98:fa:ef [PTK=TKIP GTK=TKIP]
CTRL-EVENT-CONNECTED - Connection to 00:30:bd:98:fa:ef completed (auth) [id=0 id_str=]
