Mar 16, 2016 · 2 min read

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.


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

ssh root@


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 updateopkg 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 ''
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.

LEDE/OpenWrt & IoT

Tutorials based on LEDE/OpenWrt from CT WiFi


Written by


An orchestration tool for WiFi devices — Manage your networks from a single-pane of glass.

LEDE/OpenWrt & IoT

Tutorials based on LEDE/OpenWrt from CT WiFi

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade