Monday, 14 July 2014

Ubuntu Server: FreeRADIUS Basic Setup for 802.1x Authentication

FreeRADIUS Setup

Enter the following command on your Ubuntu server to get started;

  • apt-get install freeradius freeradius-mysql freeradius-utils

There are two files that need to be configured;

  • etc/freeradius/users
  • etc/freeradius/clients.conf

The users file contains the information used to connect the end device to RADIUS. For a quick test I've configured the following user;

The clients.conf contains the information  regarding the network. I have in this case put the clients as the entire network. The secret is the password that you configure on your network devices.

There are many other ways to configure how you want to set this up. There is plently of information in both files.

You may need to restart RADIUS for the changes to take effect;

  • /etc/init.d/freeradius restart 


You can download the following tool to test your settings from;


Switch Configuration

This has been configured on a cisco SF300 switch. The commands are very similar on a catalyst switch.

Enter the following command on an interface;

  • dot1x port-control auto

Configure end host

This was done on a Windows XP machine as I was having trouble on a Windows 8.1 client. I read that its not fully support as of yet on 8.1 (I will try and re-find the source for that).
  • Press 'Windows Key + R'
  • Enter 'services.msc'
  • Find 'Wired AutoConfig'
  • Second click and go to properties and select 'Automatic' where it says 'Startup type'
  • Now go to your network adapter
  • Second click and select 'Properties'
  • Click the new 'Authentication' tab
  • For this example I changed the authentication method to 'MD5-Challenge'.
  • Bring your network interface up and it should prompt you for a password.
For Windows 7 I had to;

  • Under the 'Authentication' tab
  • Click 'Settings'
  • Untick 'Validate Server Certificate'

Aslong as everything goes right the end host should connect to the network and the following message is displayed on your network device;


No comments:

Post a Comment