RADIUS server using the Raspberry Pi – Part 1 building

This series of posts will describe how to have a home RADIUS server using the Raspberry Pi and hostapd. It will allow you to have WPA/WPA2-Enterprise in your home Wi-Fi router or access point.

Part 1 shows how to download the source code and build it nativelly in the Raspberry Pi.

Connect to the Raspberry Pi, assuming its IP address is 192.168.1.100 and it has SSH enabled:

# ssh pi@192.168.1.100

Download hostapd source code, assuming Raspberry Pi has internet access:

$ cd
$ wget http://w1.fi/releases/hostapd-2.9.tar.gz
$ tar xzvf hostapd-2.9.tar.gz
$ rm hostapd-2.9.tar.gz

Install OpenSSL dependency:

$ sudo apt-get install libssl-dev

Copy ~/hostapd-2.9/hostapd/defconfig to ~/hostapd-2.9/.config:

$ cd ~/hostapd-2.9/hostapd
$ cp defconfig .config
$ nano .config

Inside nano (or your favourite editor) make the following changes:

CONFIG_DRIVER_WIRED=y

#CONFIG_DRIVER_NL80211=y

#CONFIG_LIBNL32=y

CONFIG_DRIVER_NONE=y

CONFIG_RADIUS_SERVER=y

Next post will deal with setting up and running hostapd to support PEAP-MSCHAPv2.