- Buy a WLAN Router supported by OpenWrt.
- With the original firmware configure the router as you like - configure everything (internet access ets.) especially (802.1X aka RADIUS) authentication with an IP of 127.0.0.1 and password testing123.
- Install OpenWrt and then do the following at its command line:
ipkg install nas
nvram set wl0_akm=wpa
ipkg install freeradius-mod-eap-tls
ipkg install freeradius-democerts
vi /etc/freeradius/eap.conf
Change line 22: md5 > tls
Comment line 60, 61
Uncomment line 122, 123, 124, 130, 133, 135, 136, 147, 157, 178
vi /etc/freeradius/radiusd.conf
Uncomment line 660, 1629, 1735
ln -s /etc/init.d/radiusd /etc/init.d/S99radiusd
ipkg install ntpclient
ipkg install vsftpd
ln -s /usr/lib /usr/libexec
nvram commit
reboot
The SFTP server is for easy exchange of the certificates. You can choose anything else. Use a SFTP client on your computer and download /etc/freeradius/certs/cert-clt.p12 (Password: whatever) and /etc/freeradius/certs/demoCA/cacert.pem. Import these two files into the appropriate places. For example for Mac OS X: Macintosh HD > Utilities > Keychain Access > File menu > Import and then AirPort menu > Other > WPA Enterprise > OK. Mac OS X will use the correct EAP type and the EAP-TLS certifactes automatically, so it is just: OK.
A complete test will fail, because the server certificate is out of date. Anyway you will have to replace everything in /etc/freeradius/certs/ with your own PKI data. See the various HowTos on the net for this step.
This is just a small lousy howto. There are better ways but this is a start. Just bought that router because I knew I could have EAP-TLS internal but I found no HowTo and it took a bit of time to figure out.
Question 1
Has anyone suceed with EAP-TLS with WEP (and not WPA)?
I /etc/init.d/radiusd stop and killall nas. Then start nas myself with 802.1X for WEP as said in the documentation as background process because OpenWrt's scripts have no support for it yet, then start radiusd -X. So far it works, my client finds the access point and starts a EAP-TLS session sucessfully with FreeRadius. Everything is fine: connected and usable.
But no re-keying happens. Played with the time parameters, nothing. Quite useless especially for insecure WEP...but I need WEP. Any idea?
Question 2
Could some one, please, add WEP+RADIUS support in /etc/init.d/S41wpa?
(Last edited by traud on 22 Aug 2006, 11:58)
