Difference between revisions of "Enterprise Authentication using FreeRADIUS"
Line 30: | Line 30: | ||
The radius client is the AP. You will need to specify the IP address and the secret key | The radius client is the AP. You will need to specify the IP address and the secret key | ||
− | [[File:clients2.png| | + | [[File:clients2.png|right|thumb|x500px|alt=These are the changes you might make in clients.conf|These are the changes you might make in clients.conf]] |
To do this, type: | To do this, type: | ||
Line 45: | Line 45: | ||
Have a good look at /etc/freeradius/users | Have a good look at /etc/freeradius/users | ||
− | [[File:users.png| | + | [[File:users.png|right|thumb|x500px|alt=In the users file, you only need to uncomment a single line like is shown|In the users file, you only need to uncomment a single line like is shown]] |
To do this, type: | To do this, type: |
Revision as of 22:55, 6 September 2021
In this lab, we will configure 802.1X authentication between for the wireless clients and the AP. We will use the Ubuntu OS and the FreeRadius server. Many ISPs use FreeRadius to authenticate broadband customers. Many Enterprises also use FreeRadius for authenticating wired and wireless devices connecting to the LAN. Eduroam is based on a hierarchy of RADIUS servers.
Contents
Restore Factory defaults
At the beginning of every lab, you should restore factory defaults to remove the previous group's settings. To do this, Administration->Factory Defaults->Yes, apply, ok.
To complete this lab you will need one Ubuntu Linux PC, which will act as the wired FreeRadius server. We will also need at least two client machines, I would use one Ubuntu Linux client and one Windows client. You may also wish to attempt to authenticate using your phone or tablet.
RADIUS Installation and Configuration
Open a terminal window Applications->Accessories->Terminal
sudo apt update
Install FreeRadius on Ubuntu
In a terminal window, type:
sudo apt install freeradius (to install freeradius)
To confirm that freeradius is running, type:
ps -e
look for freeradius in the output
Add a RADIUS client
The radius client is the AP. You will need to specify the IP address and the secret key
To do this, type:
sudo nano /etc/freeradius/clients.conf
In some operating systems, the path can vary a little so if you could not find the clients.conf file, then try:
sudo nano /etc/freeradius/3.0/clients.conf
Have a good long look at the configuration file and edit it yourself. You will have to use your initiative here.
Add RADIUS users
Have a good look at /etc/freeradius/users
To do this, type:
sudo nano /etc/freeradius/users
Or, more likely it might be:
sudo nano /etc/freeradius/3.0/users
Add a few users. Once again, you will have to use your initiative here, I tend to use the 'steve' example found further down the file. After editing these files, stop freeradius
sudo service freeradius stop
Check the configuration files with:
sudo freeradius -C
If all is well, start FreeRadius in debugging mode with:
sudo freeradius -X
AP Configuration
Under wireless->security Specify WPA2 Enterprise. Enter the IP of the radius server and the key you specified in clients.conf
Client Configuration
The clients are your corporate desktops, tablets, laptops and phones. Configuration should be autodetected by the operating system but you will need to authenticate Windows, iOS, Android, OSX and Linux in many modern work environments.
The specifics, for our configuration, should be:
- Authentication: Tunneled TLS
- Certificate: Not required
- Key Exchange: MSCHAPv2
Verify your configuration by connecting a few different users. Have a look at the free radius debugging output with correct and incorrect passwords
Challenge
Refer back to your WPA_Cracking. Compare the complexity of this with a guide to cracking WPA Enterprise. What is the difference?
https://null-byte.wonderhowto.com/how-to/hack-wpa-wpa2-enterprise-part-1-0165303/
Questions
- What port(s) does radius use?
- What is the advantage of using free radius for authentication as opposed to pre-shared keys?
- What are rogue APs and how does the 802.1X architecture stop them from being used?