If an access point is installed in a publicly accessible area (e.g. at a school or hotel), we recommend that you use RADIUS authentication to ensure that a client (e.g. a notebook PC) is unable to gain access to the management network even if it is connected by cable to the Ethernet socket that is intended for use by the access point.
This article describes how RADIUS authentication is set up for an access point with LCOS so that only this has access to the management network.
Access points that are operated in a WLAN-Controller scenario must each be configured individually. A central configuration of the steps described here via a WLAN-Controller is not possible.
- LANCOM router as the RADIUS server
- Access point with LCOS
- Switch of the GS-23xx series
- LCOS as of version 9.24 or 10.30 when using SWOS as of version 3.32 RU7 (download latest version)
- LANtools as of version 9.24 (download latest version), 10.40 RU1 when configuring the access point via LANconfig
- Any web browser for accessing the web interface of the GS-23xx and the access point
- A LANCOM router with the IP address 192.168.1.254 is operating as a RADIUS server.
- A switch of the GS-23xx series with the IP address 192.168.1.250 is operating as a RADIUS authenticator. The switch therefore forwards the requests from the access point to the RADIUS server.
- An access point with LCOS presents its authorization credentials and logs on to the switch, thus acting as the RADIUS supplicant.
- After a successful login to the RADIUS server, the switch should enable communication on the port that the access point is connected to.
1) Configuring the RADIUS server on the LANCOM router:
1.1) In LANconfig, open the configuration for the router, navigate to the menu RADIUS → Server and set a checkmark next to RADIUS authentication active.
1.2) Navigate to the menu RADIUS services ports.
1.3) Check that the authentication port is set to 1812.
1.4) Go to the menu IPv4 clients.
1.5) Create a new entry and enter the following parameters:
- IP address: Enter the switch IP address so that this can authenticate itself as the RADIUS authenticator at the RADIUS server.
- Netmask: Enter the netmask 255.255.255.255. This stands for a single IP address.
- Protocols: Check that the protocol is set to RADIUS.
- Client secret: Enter a password that the switch uses to authenticate itself at the RADIUS server. This is entered on the switch in step 2.1.
1.6) Go to the menu User table.
1.7) Create a new entry and adjust the following parameters:
- Name / MAC address: Enter a user name that the access point uses to authenticate itself at the RADIUS server.
- Password: Enter a password that the access point uses to authenticate itself at the RADIUS server.
- Service type: From the drop-down menu, select Framed.
- Expiry type: From the drop-down menu, select Never so that the user account remains permanently valid.
As of SWOS 3.32 RU7 the switch sends RADIUS requests with the Service type Call check. In this case the Service type in this menu als has to be set to Call check. As an alternative the option Any can also be selected.
The Service type Call check is supported as of LCOS 10.30.
1.8) This concludes the configuration of the RADIUS server on the LANCOM router. You can now write the configuration back to the device.
2) Configuring the RADIUS authenticator on the GS-23xx switch:
2.1) Open the web interface of the device, switch to the menu Security → AAA → Configuration, modify the parameters under RADIUS Authentication Server Configuration as follows, and click Apply:
- Set a checkmark next to Enabled.
- IP Address/Hostname: Enter the IP address of the router that was set up as the RADIUS server in step 1.
- Port: Make sure that the port is set to 1812.
- Secret: Enter the Client secret set in step 1.5. The switch uses this password to authenticate itself at the RADIUS server.
2.2) Navigate to the menu Security → NAS → Configuration, modify the following parameters, and click Apply:
- Mode: From the drop-down menu, select Enabled.
- Port Configuration: Under Admin State, select the option Port-based 802.1X for the port that the access point will be connected to.
With the option Port-based 802.1X, solely the access point should be able to authenticate itself. All other end devices connected via WLAN can communicate via the switch port without authentication. For this reason it is important to provide the WLAN end devices with their own network that is separated from the management network by VLAN. You can use this Knowledge Base article to help you here.
2.3) Navigate to the menu Maintenance → Save/Restore → Save Start and click on Save so that the configuration is saved as a Start configuration.
The Start configuration is boot persistent and is therefore available even after a restart or a power failure.
2.4) This concludes the configuration of the switch.
3) Configuring the RADIUS supplicant on the access point:
In order for the access point to be able to authenticate at the RADIUS server of the WLAN controller, the authentication method must be set and user data have to be set for logging in. This example uses the authentication method PEAP/MSCHAPv2. The user data of the access point was configured on the router in step 1.7.
3.1) Connect to the access Point via CLI and switch to the path Supplicant-Ifc-Setup:
3.2) Go to the path for the LAN interface. For this example we are using interface LAN-1.
3.3) Use the following command to set the user data for authentication at the RADIUS server:
set credentials <username>:<password>
In this example, the command is set credentials ap1:ap1
3.4) Use the following command to set the authentication method as PEAP/MSCHAPv2:
set Method PEAP/MSCHAPv2
As an alternative, you can use the following script to upload the changes to the access point with LANconfig. Please be sure to add the relevant username and password to the file first.