RADIUSdesk

Differences

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

Link to this comparison view

Next revision
Previous revision
getting_started:install_ubuntu_freeradius_3 [2016/10/19 04:30] – created admingetting_started:install_ubuntu_freeradius_3 [2017/04/06 09:46] (current) – [Installing FreeRADIUS version 3.x] admin
Line 5: Line 5:
   * Add the Personal Package Archive (PPA) for the version 3 of FreeRADIUS.   * Add the Personal Package Archive (PPA) for the version 3 of FreeRADIUS.
 <code bash> <code bash>
 +sudo apt-get install software-properties-common python-software-properties
 sudo add-apt-repository ppa:freeradius/stable-3.0 sudo add-apt-repository ppa:freeradius/stable-3.0
 #Answer yes to include the PPA with it's keys #Answer yes to include the PPA with it's keys
Line 21: Line 22:
 sudo systemctl start freeradius.service sudo systemctl start freeradius.service
 </code> </code>
 +
 +<WRAP center round important 100%>
 +== Please Take Note ==
 +  * The current version of FreeRADIUS available on the repository (3.0.12) has this bug: http://lists.freeradius.org/pipermail/freeradius-users/2016-October/085317.html
 +  * While we wait for the maintainer of the repository to update to the latest stable release please follow the instructions in this page to [[getting_started:install_ubuntu_freeradius_upgrade|Upgrade FreeRADIUS]] using our own set of packages.
 +  * Once the repository has been updated we will remove this //'detour'// instructions 
 +</WRAP>
 +
  
 ----- -----
Line 54: Line 63:
 # shortname # shortname
 FreeRADIUS-Client-Shortname = "%{Packet-Src-IP-Address}" FreeRADIUS-Client-Shortname = "%{Packet-Src-IP-Address}"
 +
 +</code>
 +  * Comment out the following two lines in the systemd service file
 +<code bash>
 +sudo vi /lib/systemd/system/freeradius.service
 +</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
 +<code bash>
 +[Unit]
 +Description=FreeRADIUS multi-protocol policy server
 +After=syslog.target network.target
 +Documentation=man:radiusd(8) man:radiusd.conf(5) http://wiki.freeradius.org/ http://networkradius.com/doc/
 +
 +[Service]
 +Type=forking
 +PIDFile=/run/freeradius/freeradius.pid
 +#EnvironmentFile=-/etc/default/freeradius
 +#ExecStartPre=/usr/sbin/freeradius $FREERADIUS_OPTIONS -Cxm -lstdout
 +ExecStart=/usr/sbin/freeradius $FREERADIUS_OPTIONS
 +Restart=on-failure
 +RestartSec=5
 +
 +[Install]
 +WantedBy=multi-user.target
  
 </code> </code>
   * After you completed these commands you can test if FreeRADIUS starts up fine.   * After you completed these commands you can test if FreeRADIUS starts up fine.
 <code bash> <code bash>
 +sudo systemctl daemon-reload 
 sudo systemctl restart freeradius.service sudo systemctl restart freeradius.service
 sudo systemctl status freeradius.service sudo systemctl status freeradius.service
 </code> </code>
 +
 +<WRAP center round tip 100%>
 +  * If in future you need to run FreeRADIUS in debug mode on the terminal use this as a reference:
 +<code bash>
 +#Stop the current FreeRADIUS instance
 +sudo systemctl stop freeradius.service
 +#If it is perhaps stuck use killall
 +sudo killall freeradius
 +#Start it in debug mode
 +sudo freeradius -X
 +</code>
 +</WRAP>
 +
  
 ------- -------
Line 142: Line 189:
 ===== Next steps ===== ===== Next steps =====
   * Be sure to also install **Node.js**.   * Be sure to also install **Node.js**.
-  * [[getting_started:install_ubuntu_node|Install node.js]]+  * [[getting_started:install_ubuntu_node_js|Install node.js]]