Description:
This document describes how to set up certificate-based (IEEE 802.1X) access control for network clients using a LANCOM switch (e.g. the LANCOM GS-2326P) and a RADIUS server provided by a LANCOM router.
In this example, authentication between the network client and the LANCOM switch uses the Extensible Authentication Protocol (EAP) and the authentication protocol Transport Layer Security (TLS).
For EAP-based authentication, a RADIUS server is always required to act as an authentication server. Since all LANCOM routers feature an integrated RADIUS server, this document describes the use of the LANCOM's RADIUS server for authentication.
The ports of the LANCOM switch should only be activated for data transfer after a network client has successfully authenticated at the RADIUS server. In this scenario, the LANCOM switch serves as the authenticator.



Requirements:
  • LCOS firmware as of version 8.0 (download latest version)
  • LANtools as of version 8.0 (download latest version)
  • Valid X.509 server certificate and root certificate of the CA
    • A guide to creating certificates in the LANCOM router via the option Smart Certificate (as of LCOS 9.10) is included in this Knowledge Base document
  • LANCOM switch (e.g. LANCOM GS-23xx)
  • LANCOM router with an integrated RADIUS server (e.g. LANCOM 1781AW)


Scenario:
  • The LANCOM router is already set up to provide Internet access. Also, the RADIUS server in the LANCOM router is used to authenticate the network clients connected to the LANCOM switch. The X.509 server certificate required for authentication is available on the LANCOM router.
  • The ports of the LANCOM switch are configured so that network clients connected by cable must first use their CA root certificate to authenticate at the RADIUS server before the port is activated for data transfer. For security reasons, the port configuration of the switch is operated in single-mode, meaning that only one network client can be authenticated per switch port.

As in the scenario diagram shows, a LANCOM access point can also authenticate as a network client at the switch. Just like any other network client, the CA root certificate has to be imported into the access point. Furthermore the command set Setup/LAN/IEEE802.1x/Supplicant-Ifc-Setup/LAN-1 TLS has to be executed on the access point via the CLI in order to enable TLS authentication on the LAN port (change the port to LAN-2 in the CLI command if this port is connected to the switch).
WLAN clients connecting to the LANCOM access point do not need the root certificate because the access point is already authenticated at the switch and data transfer is possible.




 


LANCOM router configuration steps:
1) Upload the server certificate
1.1) In LANconfig , right-click on the LANCOM router and select the option Configuration management → Upload a certificate from file.

1.2) In the following dialog select the certificate file intended for the LANCOM router. This example uses the name LANCOM_Router.p12.

1.3) In the Certificate type box, select the setting EAP/TLS - container as a PKCS#12 file.

1.4) In the Password field, enter the certificate password. The password in this example is lancom.

1.5) Click on Open to load the certificate into the LANCOM access point.

You can view the certificate that you loaded into the LANCOM router by starting a Telnet or SSH session on the LANCOM router and entering show eap at the command prompt (as of LCOS 10.70 the command is show eaptls).




2) Configuring the RADIUS server in the LANCOM router

2.1) Open the menu RADIUS → Server und activate the option RADIUS authentication active.
2.2) Go to the menu RADIUS services ports.
2.3) Make sure, that the Authentication port is set to 1812.
2.4) Go to the menu IPv4 clients.
2.5) Create a new entry and allow the switch to communicate with the RADIUS server.
  • IP address: In this example the switch has the local IP address 192.168.1.11.
  • Netmask: Enter the netmask 255.255.255.255. This value represents a single IP address.  
  • Protocol: Make sure, that the protocol RADIUS is used.
  • Client secret: Enter a password the switch has to use for the authentication with the RADIUS server. This password also has to be entered in the switch configuration (see step 3.3).
2.6) Go to the menu EAP.
2.7) As Default method select TLS.
2.8) The configuration of the RADIUS server is now complete. Write the configuration back into the router.



Configuration steps on the LANCOM switch:
3.1) Open the configuration interface for the LANCOM switch and navigate to the menu item Security → NAS → Configuration.
  • Set the Mode option to Enabled.
  • Under Port configuration, set the option Port-based 802.1 X for those ports that are to operate with authentication as per 802.1X.
3.2) Scroll to the end of the configuration page and click on Apply to accept the new settings.
3.3) Switch to the menu Security → AAA → Configuration. In the section RADIUS authentication server configuration, set the option in the first line to Enabled.
  • In the section IP address/host name, enter the local IP address of the LANCOM router.
  • The default port 1812 can be accepted as the LANCOM router also uses this as the RADIUS authentication port.
  • In the field Secret you enter the same shared secret as that entered into the configuration of LANCOM router in step 2.5.
3.4) Scroll to the end of the configuration page and click on Apply to accept the new settings. This concludes the configuration of the LANCOM switch.


Configuring a network client (PC):
Importing the client certificate into Windows Vista and Windows 7:
4.1) Double click on the Root certificate of the CA .

4.2) Click on Install certificate.

4.3.) Click on Next.

4.4) Ensure that the path to the certificate file is specified correctly and click on Next.

4.5) Enter the password used to protect the private key of the certificate. The password for our example certificate is lancom.

4.6) Leave the setting on Automatically select the certificate store, and click on Next.

4.7) Click on Finish to conclude the import of the certificate.

4.8) Confirm the subsequent security warning with Yes.

4.9) A message is displayed to indicate that the certificate was successfully imported.




Configuring the PC:

5.1) Start the Services Manager in Windows and open the Properties dialog of the service Wired AutoConfig.

5.2) Set the Startup type to Automatic and close the dialog with OK.

5.3) Start the service once, manually. After restarting the PC, the service starts automatically.

5.4) In the Network and sharing center, open the Properties dialog for your network adapter. On the Authentication tab, enable the option IEEE 802.1X authentication and set the authentication method to Smart Card or other certificate .

5.5) Click the Settings button.

5.6) For the When connecting option, specify Use a certificate on this computer (default setting). Disable the option to use simple certificate selection.

5.7) Enable the option Validate server certificate and, in the box below, select the relevant Trusted root certification authority for the certificate from the list. In our example this is CA-LANCOM.

5.8) Now close the configuration dialogs with the OK button. This concludes the configuration of the PC.


Function check:

6.1) Make sure that the PC is connected to the switch port that you have configured with access control as per IEEE 802.1X.

6.2) Restart your PC and logon to the system as usual.

6.3) The PC automatically authenticates with the certificate.

6.4) After a successful authentication, the switch port to which the PC is connected is activated for data transfer.