Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
install_24_4_freeradius [2024/02/20 13:32] – created system | install_24_4_freeradius [2025/04/11 12:01] (current) – [Configure FreeRADIUS] system | ||
---|---|---|---|
Line 3: | Line 3: | ||
* Install FreeRADIUS and MySQL module. | * Install FreeRADIUS and MySQL module. | ||
<code bash> | <code bash> | ||
- | sudo apt-get -y install libdatetime-perl libdbd-mysql-perl libdigest-hmac-perl eapoltest | + | sudo apt-get -y install libdatetime-perl libdbd-mysql-perl libdigest-hmac-perl libdatetime-format-rfc3339-perl eapoltest |
sudo apt-get -y install freeradius freeradius-mysql | sudo apt-get -y install freeradius freeradius-mysql | ||
# Answer yes to the question to install these packages with their dependencies | # Answer yes to the question to install these packages with their dependencies | ||
Line 23: | Line 23: | ||
# Extract the RADIUSdesk modified FreeRADIUS directory | # Extract the RADIUSdesk modified FreeRADIUS directory | ||
sudo tar xzf / | sudo tar xzf / | ||
- | sudo chown -R freerad. / | + | sudo chown -R freerad: / |
sudo mkdir / | sudo mkdir / | ||
- | sudo chown freerad. / | + | sudo chown freerad: / |
</ | </ | ||
* Configure the site-wide shared secret. This is the value used by ALL dynamic clients. | * Configure the site-wide shared secret. This is the value used by ALL dynamic clients. | ||
Line 45: | Line 45: | ||
FreeRADIUS-Client-Shortname = " | FreeRADIUS-Client-Shortname = " | ||
</ | </ | ||
- | * Comment out the following two lines in the systemd unit file | + | * After you have completed these steps, restart FreeRADIUS. |
<code bash> | <code bash> | ||
- | sudo vi / | ||
- | </ | ||
- | * Take a look at this example to see which two lines you need to comment out. If you do not do this, the system will not work and FreeRADIUS will not start at boot time. | ||
- | <code bash> | ||
- | [Unit] | ||
- | Description=FreeRADIUS multi-protocol policy server | ||
- | After=syslog.target network.target | ||
- | Documentation=man: | ||
- | |||
- | [Service] | ||
- | Type=forking | ||
- | PIDFile=/ | ||
- | # | ||
- | # | ||
- | ExecStart=/ | ||
- | Restart=on-failure | ||
- | RestartSec=5 | ||
- | |||
- | [Install] | ||
- | WantedBy=multi-user.target | ||
- | </ | ||
- | * After you have executed these commands, you can test whether FreeRADIUS starts without any problems. | ||
- | <code bash> | ||
- | sudo systemctl daemon-reload | ||
sudo systemctl restart freeradius | sudo systemctl restart freeradius | ||
sudo systemctl status freeradius | sudo systemctl status freeradius | ||
</ | </ | ||
- | ===== Correction of a small error ===== | ||
- | * There is a small bug that prevents FreeRADIUS from starting after a restart. | ||
- | * It was reported here: https:// | ||
- | * There also seems to be a fix, but it has not yet arrived in the Ubuntu repositories. | ||
- | * So here is the solution from the discussion in the link | ||
- | * Create a file called **/ | ||
- | <code bash> | ||
- | sudo vi / | ||
- | </ | ||
- | * Add the following line | ||
- | <code bash> | ||
- | d / | ||
- | </ | ||
- | * If you are curious about what we did, you can find a report on **tmpfiles.d** here | ||
- | * https:// | ||
===== Next steps ===== | ===== Next steps ===== | ||
* You will need to make a few small adjustments to your environment | * You will need to make a few small adjustments to your environment | ||
- | * [[md: | + | * [[install_tweak|Tweak Your Install]] |