RADIUSdesk

logo

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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 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 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.
 </code> </code>
-  * Enable and Start FreeRADIUS+  * Activating and starting FreeRADIUS
 <code bash> <code bash>
 sudo systemctl enable freeradius sudo systemctl enable freeradius
Line 17: Line 18:
 </code> </code>
 ====== Configuring FreeRADIUS version 3.x ====== ====== Configuring FreeRADIUS version 3.x ======
-  * Do the following to configure FreeRADIUS 3.x to work with RADIUSdesk+  * Proceed as follows to configure FreeRADIUS 3.x to work with RADIUSdesk
 <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. /var/run/freeradius sudo chown freerad. /var/run/freeradius
 </code> </code>
-  * 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 /etc/freeradius/3.0/sites-enabled/dynamic-clients sudo vi /etc/freeradius/3.0/sites-enabled/dynamic-clients
 </code> </code>
-  * Look for this part in the file and change FreeRADIUS-Client-Secret to the value you choose to use.+  * 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 = "%{Packet-Src-IP-Address}" FreeRADIUS-Client-Shortname = "%{Packet-Src-IP-Address}"
 </code> </code>
-  * Comment out the following two lines in the Systemd unit file+  * Comment out the following two lines in the systemd unit file
 <code bash> <code bash>
 sudo vi /lib/systemd/system/freeradius.service sudo vi /lib/systemd/system/freeradius.service
 </code> </code>
-  * See this sample to see which two lines to comment out. Failing to do this will result in a broken system with FreeRADIUS not starting up during boot+  * 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> <code bash>
 [Unit] [Unit]
Line 70: Line 71:
 WantedBy=multi-user.target WantedBy=multi-user.target
 </code> </code>
-  * After you completed these commands you can test if FreeRADIUS starts up fine.+  * After you have executed these commandsyou can test whether FreeRADIUS starts without any problems.
 <code bash> <code bash>
 sudo systemctl daemon-reload  sudo systemctl daemon-reload 
Line 77: Line 78:
 </code> </code>
  
-===== Fixing small bug =====+===== Correction of minor error =====
  
-  * There is a small bug which prevents FreeRADIUS to start up after a reboot+  * There is a small bug that prevents FreeRADIUS from starting after a restart
-  * It has been reported here: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=954911 +  * It was reported here: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=954911 
-  * There also seems to be a fix but it has not reached the Ubuntu repositories as of this writing+  * There also seems to be a fixbut 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 from the discussion in the link
   * Create a file called **/usr/lib/tmpfiles.d/freeradius.conf**   * Create a file called **/usr/lib/tmpfiles.d/freeradius.conf**
 <code bash> <code bash>
Line 91: Line 92:
 d /run/freeradius 750 freerad freerad - d /run/freeradius 750 freerad freerad -
 </code> </code>
-  * If you are curious about what we did, here is writeup on **tmpfiles.d**+  * If you are curious about what we did, you can find report on **tmpfiles.d** here
      * https://www.commandlinux.com/man-page/man5/tmpfiles.d.5.html      * https://www.commandlinux.com/man-page/man5/tmpfiles.d.5.html