This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
getting_started:22_install_ubuntu_freeradius_3 [2023/05/08 11:32] admin [Introduction] |
getting_started:22_install_ubuntu_freeradius_3 [2024/02/04 19:41] (current) admin [Introduction] |
||
---|---|---|---|
Line 2: | Line 2: | ||
===== Introduction ===== | ===== Introduction ===== | ||
- | * Ubuntu 22.04 now comes with a FreeRADIUS 3.x release. | + | * Ubuntu 22.04 now comes with a FreeRADIUS 3.x version. |
* Install FreeRADIUS and MySQL module. | * Install FreeRADIUS and MySQL module. | ||
<code bash> | <code bash> | ||
- | sudo apt-get -y install libdatetime-perl libdbd-mysql-perl eapoltest | + | sudo apt-get -y install libdatetime-perl libdbd-mysql-perl |
+ | eapoltest | ||
sudo apt-get -y install freeradius freeradius-mysql | sudo apt-get -y install freeradius freeradius-mysql | ||
# Answer yes to install these with their dependencies | # Answer yes to install these with their dependencies | ||
# Please note that when this package is installed there are some things generated that can take up lots of time on slower machines. | # Please note that when this package is installed there are some things generated that can take up lots of time on slower machines. | ||
</ | </ | ||
- | * Enable | + | * Activating |
<code bash> | <code bash> | ||
sudo systemctl enable freeradius | sudo systemctl enable freeradius | ||
Line 17: | Line 18: | ||
</ | </ | ||
====== Configuring FreeRADIUS version 3.x ====== | ====== Configuring FreeRADIUS version 3.x ====== | ||
- | * Do the following | + | * Proceed as follows |
<code bash> | <code bash> | ||
# Stop the service if it is already running | # Stop the service if it is already running | ||
Line 29: | Line 30: | ||
sudo chown freerad. / | sudo chown freerad. / | ||
</ | </ | ||
- | * Configure the site-wide shared secret. This will be the value used by ALL Dynamic Clients. | + | * Configure the site-wide shared secret. This is the value used by ALL dynamic clients. |
<code bash> | <code bash> | ||
sudo vi / | sudo vi / | ||
</ | </ | ||
- | * Look for this part in the file and change FreeRADIUS-Client-Secret to the value you choose | + | * Find this part in the file and change FreeRADIUS-Client-Secret to the value you want to use. |
<code bash> | <code bash> | ||
# Echo the IP address of the client. | # Echo the IP address of the client. | ||
Line 47: | Line 48: | ||
FreeRADIUS-Client-Shortname = " | FreeRADIUS-Client-Shortname = " | ||
</ | </ | ||
- | * Comment out the following two lines in the Systemd | + | * Comment out the following two lines in the systemd |
<code bash> | <code bash> | ||
sudo vi / | sudo vi / | ||
</ | </ | ||
- | * See this sample | + | * Take a look at this example |
<code bash> | <code bash> | ||
[Unit] | [Unit] | ||
Line 70: | Line 71: | ||
WantedBy=multi-user.target | WantedBy=multi-user.target | ||
</ | </ | ||
- | * After you completed | + | * After you have executed |
<code bash> | <code bash> | ||
sudo systemctl daemon-reload | sudo systemctl daemon-reload | ||
Line 77: | Line 78: | ||
</ | </ | ||
- | ===== Fixing | + | ===== Correction of a minor error ===== |
- | * There is a small bug which prevents FreeRADIUS | + | * There is a small bug that prevents FreeRADIUS |
- | * It has been reported here: https:// | + | * It was reported here: https:// |
- | * There also seems to be a fix but it has not reached | + | * There also seems to be a fix, but it has not yet arrived in the Ubuntu repositories. |
- | * So here is the fix taken from the discussion in the link | + | * So here is the solution |
* Create a file called **/ | * Create a file called **/ | ||
<code bash> | <code bash> | ||
Line 91: | Line 92: | ||
d / | d / | ||
</ | </ | ||
- | * If you are curious about what we did, here is a writeup | + | * If you are curious about what we did, you can find a report |
* https:// | * https:// | ||