Would you like to learn how to configure an APC UPS to use Freeradius as the authentication server? In this tutorial, we are going to show you how to authenticate the APC UPS users using a Freeradius server installed on a computer running Ubuntu Linux.
Copyright © 2018-2021 by Techexpert.tips.
All rights reserved. No part of this publication may be reproduced, distributed, or transmitted in any form or by any means without the prior written permission of the publisher.
Equipment list
Here you can find the list of equipment used to create this tutorial.
This link will also show the software list used to create this tutorial.
APC UPS – Playlist:
On this page, we offer quick access to a list of videos related to the APC UPS.
Don’t forget to subscribe to our youtube channel named FKIT.
APC UPS – Related Tutorial:
On this page, we offer quick access to a list of tutorials related to APC UPS.
Tutorial – FreeRadius Server Installation on Ubuntu Linux
• IP – 192.168.15.10
• Operacional System – Ubuntu 19
• Hostname – FREERADIUS
On the Linux console, use the following commands to install the FreeRadius service.
Now, we need to add FreeRadius clients to the clients.conf;.
Locate and edit the clients.conf.
Add the following lines at the end of the clients.conf file.
In our example, we are adding 1 client device:
The device was named APCUPS and has the IP address 192.168.15.11.
Now, we need to add FreeRadius users to the USERS configuration file.
Locate and edit the Freeradius users configuration file.
Add the following lines at the end of the file
In our example, we are adding 2 user accounts.
The user account named Admin will have administrative permission over the APC UPS.
The user account named Bruno will have read-only permission over the APC UPS.
Restart the Freeradius server.
Test your radius server configuration file.
You have finished the Freeradius installation on Ubuntu Linux.
Freeradius Authentication Test
Test your radius authentication locally using the following commands:
Here is the command output:
As you can see, the username Bruno will receive read-only permission on the APC UPS web interface.
Test the user account named Admin.
Here is the command output:
As you can see, the username Admin will receive Administrative permission on the APC UPS web interface.
APC UPS – Radius Authentication on FreeRadius
First, we need to access the APC UPS web interface.
Open your browser and enter the IP address of the APC UPS.
On the login screen, use the default username and default password.
• Default Username: apc
• Default Password: apc
After a successful login, you will be sent to the APC UPS Dashboard.
Access the Configuration menu, access the Security menu.
Access the Remote users menu and select the Radius option.
Select the primary Radius server.
On the RADIUS Server settings area, perform the following configuration:
• Radius Server – 192.168.15.10
• Port – 1812
• Secret – The Radius Client shared secret (kamisama123)
• Reply Timeout – 1 Second
You need to change IP address of the Radius server.
You need to change the secret.
To test the Radius authentication, select the test option and enter a user account from the Freeradius server.
After testing the Radius authentication successfully, select the Skip test and apply option.
Access the Configuration menu, access the Security menu.
Access the Remote users menu and select the Authentication option.
Select the option: Radius, then local authentication option.
Click on the Apply button to finish the Radius authentication configuration.
First, the UPS will try to authenticate the users using the Radius server.
If the Radius server is offline, the system will authenticate using the local user accounts.
Congratulations! You have configured the UPS authentication to use the FreeRadius database.
APC UPS – Radius Authentication Test
After finishing the Radius configuration, you should log off the APC web interface.
Try to login using the admin user and the password from the Freeradius database.
On the login screen, use the admin user and the password from the FreeRadius database.
• Username: admin
• Password: Enter the FreeRadius password.
If your test succeeds, you will be sent to the APC UPS Dashboard.
Congratulations! Your APC UPS Radius server authentication on FreeRaadius was sucessfully configured.