This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
getting_started:22_install_ubuntu_freeradius_3 [2022/06/14 17:42] admin created |
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 install libdatetime-perl | + | sudo apt-get |
| - | sudo apt-get install freeradius freeradius-mysql | + | |
| + | sudo apt-get | ||
| # 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 24: | Line 25: | ||
| sudo mv / | sudo mv / | ||
| # Extract the RADIUSdesk modified FreeRADIUS directory | # Extract the RADIUSdesk modified FreeRADIUS directory | ||
| - | sudo tar xzf / | + | sudo tar xzf / |
| - | sudo mv / | + | |
| sudo chown -R freerad. / | sudo chown -R freerad. / | ||
| sudo mkdir / | sudo mkdir / | ||
| - | 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 48: | 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 71: | 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 78: | 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 92: | 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:// | ||