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 192.168.1.1 is your LEDE/OpenWRT device’s IP address.
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.
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:
Now we are going to create a new interface with the following details:
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:
(Optional) Using the web GUI
You can also make changes to the encryption type through the LuCI interface by navigating through Network > WiFi.