Random ramblings of a random mind

WiPi, WiFi on RPI's


Nowadays everyone uses Raspberry PI's, which is awesome. Unfortunately not every IT department is helpful enough to provide people with the information needed to connect them to their (WiFi) networks.

Over the past few weeks, I needed to hook up RPI's to the WiFi network at the TU/e, which was way more difficult than need be since the IT department did not provide needed settings. Being quite dumb and thinking "why would I need this again" I forgot to backup my configuration; which forced me to do it figure out the correct config a few times.

To prevent this from happening (and perhaps, help some others. Here is the config needed to connect to the TU/e network and - perhaps - some other MSCHAPV2 networks.

network={
    ssid="tue-wpa2"
    priority=1
    proto=RSN
    key_mgmt=WPA-EAP
    pairwise=CCMP TKIP
    auth_alg=OPEN
    eap=PEAP
    identity="<DOMAIN>\<USERNAME>"
    password="<PASSWORD>"
    phase1="peaplabel=0"
    phase2="auth=MSCHAPV2"
}

Just replace <DOMAIN> with the domain name (in my case "tue"), <USERNAME> with your username, and <PASSWORD> with your password. When sharing a RPI - or when following proper security principles - you can replace "<PASSWORD>" (including quotes) with the MD4 hash of the password. Replace that with "hash:" should make it work.

An easy way to generate the MD4 hash is to use the following command echo -n '<PASSWORD>' | iconv -t utf16le | openssl md4 and replace <PASSWORD> with your password. Running this should yield output like: (stdin)= 3dbde697d71690a769204beb12283678

The part after (stdin)=, so 3dbde... is the MD4 hash.

Happy networking!

Tags