RADIUSdesk

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
getting_started:install_ubuntu_freeradius_upgrade [2017/04/06 10:29] – [Background] admingetting_started:install_ubuntu_freeradius_upgrade [2017/04/06 10:32] (current) – [Upgrade instructions] admin
Line 42: Line 42:
  
 </code> </code>
 +
 +==== Do the following to further configure FreeRADIUS 3.x to work with RADIUSdesk ====
 +
 +  * Configure the site wide shared secret. This will be the value used by <wrap em>ALL</wrap> Dynamic Clients.
 +<code bash>
 +sudo vi /etc/freeradius/sites-enabled/dynamic-clients
 +</code>
 +  * Look for this part in the file and change **FreeRADIUS-Client-Secret** to the value you choose to use.
 +<code bash>
 +#  Echo the IP address of the client.
 +FreeRADIUS-Client-IP-Address = "%{Packet-Src-IP-Address}"
 +
 +# require_message_authenticator
 +FreeRADIUS-Client-Require-MA = no
 +
 +# secret
 +FreeRADIUS-Client-Secret = "testing123"
 +
 +# shortname
 +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>
 +  * After you completed these commands you can test if FreeRADIUS starts up fine.
 +<code bash>
 +sudo systemctl daemon-reload 
 +sudo systemctl restart freeradius.service
 +sudo systemctl status freeradius.service
 +</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>
 +