This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
getting_started:install_ubuntu_freeradius_upgrade [2017/04/06 09:55] – created admin | getting_started:install_ubuntu_freeradius_upgrade [2017/04/06 10:32] (current) – [Upgrade instructions] admin | ||
---|---|---|---|
Line 3: | Line 3: | ||
* It came to our attention that the version of FreeRADIUS which is available on the **Personal Package Archive (PPA)** repository has the following bug: http:// | * It came to our attention that the version of FreeRADIUS which is available on the **Personal Package Archive (PPA)** repository has the following bug: http:// | ||
* Please follow these instructions either when you do a clean install of a RADIUSdesk system, or if you have an existing server that needs to be upgraded. | * Please follow these instructions either when you do a clean install of a RADIUSdesk system, or if you have an existing server that needs to be upgraded. | ||
+ | |||
+ | ===== Upgrade instructions ===== | ||
+ | |||
+ | <code bash> | ||
+ | |||
+ | # Stop the current isntance of FreeRADIUS is there might be one running | ||
+ | sudo systemctl stop freeradius.service | ||
+ | |||
+ | #Check out the FreeRADIUS packages from the RADIUSdesk source tree using SVN | ||
+ | |||
+ | #If you have a 64 bit system | ||
+ | svn checkout https:// | ||
+ | #If you have a 32 bit system | ||
+ | svn checkout https:// | ||
+ | |||
+ | #If you have a 64 bit system | ||
+ | cd amd64 | ||
+ | #If you have a 32 bit system | ||
+ | cd i386 | ||
+ | |||
+ | #Install all the packages | ||
+ | sudo dpkg -i *.deb | ||
+ | |||
+ | #Just hit the **Enter** key each time it asks a question about aoverriding an existing file. | ||
+ | #That will choose the default and keep the current one. | ||
+ | |||
+ | #Next we will replace the current configuration | ||
+ | cd /etc | ||
+ | sudo mv freeradius freeradius.bakup | ||
+ | |||
+ | #Copy the RADIUSdesk specific one | ||
+ | sudo cp / | ||
+ | |||
+ | cd /etc | ||
+ | #Extract it | ||
+ | sudo tar -xzvf freeradius-3-radiusdesk.tar.gz | ||
+ | |||
+ | |||
+ | </ | ||
+ | |||
+ | ==== 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> | ||
+ | <code bash> | ||
+ | sudo vi / | ||
+ | </ | ||
+ | * 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 = " | ||
+ | |||
+ | # require_message_authenticator | ||
+ | FreeRADIUS-Client-Require-MA = no | ||
+ | |||
+ | # secret | ||
+ | FreeRADIUS-Client-Secret = " | ||
+ | |||
+ | # shortname | ||
+ | FreeRADIUS-Client-Shortname = " | ||
+ | |||
+ | </ | ||
+ | * Comment out the following two lines in the systemd service file | ||
+ | <code bash> | ||
+ | sudo vi / | ||
+ | </ | ||
+ | * 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: | ||
+ | |||
+ | [Service] | ||
+ | Type=forking | ||
+ | PIDFile=/ | ||
+ | # | ||
+ | # | ||
+ | ExecStart=/ | ||
+ | Restart=on-failure | ||
+ | RestartSec=5 | ||
+ | |||
+ | [Install] | ||
+ | WantedBy=multi-user.target | ||
+ | |||
+ | </ | ||
+ | * 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 | ||
+ | </ | ||
+ | |||
+ | <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 | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | |||