LEDE/OpenWRT — Setting Up WPA Enterprise

With WPA Enterprise, you have the ability to have your users authenticate against a RADIUS server to gain access to the WiFi, adding increased security to your network.

SSH to your LEDE/OpenWRT device

If you are using Windows then start PuTTY and click Session on the left side, select SSH from the options, and then enter in the IP Address of your LEDE/OpenWRT box into the Host Name field.

Once you’ve done this just click on Open to start up the SSH connection.

PuTTY

If you are connecting via terminal, then just SSH to your LEDE/OpenWRT device using the following command, where 192.168.1.1 is your LEDE/OpenWRT device’s IP address.

ssh root@192.168.1.1

Prerequisites

This guide covers the steps needed to set up WPA Enterprise on your LEDE/OpenWRT, but the overall setup requires some other steps to be completed:

  • A RADIUS server configured on a seperate server, or on your LEDE/OpenWRT device.
  • Configured your LEDE/OpenWRT device as a client on your RADIUS server.
  • Have one or more username and password entries on the RADIUS server.

Package Installation

Enterprise WPA is not supported by the wpad-mini package, which comes with LEDE/OpenWRT as default. So first we need to remove this package.

Run the following two commands:

opkg update
opkg remove wpad-mini

Once wpad-mini is removed, we can install a new package that supports Enterprise WPA. In this example we are going to use the full wpad.

Run the following command to install this:

opkg install wpad

Creating The Interface

Next we need to edit our wireless config file to enable WPA Enterprise authentication.

Run the following command to edit the file:

vi /etc/config/wireless

Now we are going to create a new interface with the following details:

config 'wifi-iface'
option device 'radio1'
option mode 'ap'
option ssid 'EnterpriseWiFi'
option network 'lan'
option encryption 'wpa2'
option server '192.168.1.220'
option port '1812'
option key 'ClientPassword'

Where option server and option port are the details of an external RADIUS we had set up, and option key is the password we have configured for our LEDE/OpenWRT device on it.

After making these changes, you will need to either restart the process or reboot your box.

To restart the process, run the following command:

/etc/init.d/network restart

(Optional) Using the web GUI

You can also make changes to the encryption type through the LuCI interface by navigating through Network > WiFi.


If you found this post helpful please let us know by clicking the ♥ below.

This blog was brought to you by Cucumber Wi-Fi. Cucumber helps you run a more efficient Wi-Fi network. Check it out here.

Cucumber Wi-Fi — control any (Wi-Fi) device from the cloud.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.