How to Install and Verify FreeRADIUS on Ubuntu Server that you cannot missed

In this video, I will show you how to install the FreeRADIUS server on Ubuntu Linux, and how to verify that it is working properly. FreeRADIUS is a powerful and flexible authentication server that can be used for various network services, such as VPN, wireless, and SSH. You will learn how to configure the FreeRADIUS server, add clients, and test the authentication process. This video is a detailed step-by-step guide that covers everything you need to know to set up and use FreeRADIUS on Ubuntu. Hashtags: #FreeRADIUS #Ubuntu #linux
sudo apt update
sudo apt upgrade -y
sudo apt install php apache2 freeradius libapache2-mod-php mariadb-server freeradius-mysql freeradius-utils php-{gd,common,mail,mail-mime,mysql,pear,db,mbstring,xml,curl} -y
sudo systemctl enable --now apache2 && sudo systemctl enable freeradius
sudo mysql_secure_installation
Enter current password for root (enter for none): enter
Switch to unix_socket authentication n
Change the root password? n
Remove anonymous users? y
Disallow root login remotely? y
Remove test database and access to it? y
Reload privilege tables now? y
sudo mysql -u root -p
CREATE DATABASE radius;
GRANT ALL PRIVILEGES ON radius.* TO 'radius'@'localhost';
FLUSH PRIVILEGES;
quit;
sudo su -
exit
sudo ln -s /etc/freeradius/3.0/mods-available/sql /etc/freeradius/3.0/mods-enabled/
sudo nano /etc/freeradius/3.0/mods-enabled/sql
dialect = "sqlite" needs to be dialect = "mysql"
read_clients = yes needs to be uncommented (No # in front of that line)
client_table = “nas” needs to be uncommented (No # in front of that line)
sudo chgrp -h freerad /etc/freeradius/3.0/mods-available/sql
sudo chown -R freerad:freerad /etc/freeradius/3.0/mods-enabled/sql
sudo systemctl restart freeradius

Пікірлер: 13

  • @zainudinnoori8365
    @zainudinnoori83655 күн бұрын

    Thank you, I would like to create a web interface to manage the user authentication and authorizations for FreeRadius; do you have any thoughts on it?

  • @FrancisTechWorld

    @FrancisTechWorld

    5 күн бұрын

    @@zainudinnoori8365 why don’t use DuloRadius?

  • @pavannani007
    @pavannani0076 ай бұрын

    Can you please share tutorials eap tls certificate based wifi authentication

  • @FrancisTechWorld

    @FrancisTechWorld

    6 ай бұрын

    Good idea. Let me prepare it in the next video. Actually, it only needs to have few additional steps. 1. Enable EAP to use TSL. sudo nano /etc/freeradius/mods-enabled/eap eap{ default_eap_type = tls 2. Create open SSL certificate. $ cd /etc/freeradius/certs

  • @dns4mm
    @dns4mm6 ай бұрын

    btw, any idea sharing about .. 1.01^365 law ... in your channel desb: message thanks.

  • @FrancisTechWorld

    @FrancisTechWorld

    6 ай бұрын

    Every morning when I wake up, I ask myself what I learned yesterday. Can I share it with others? Reality is cruel, so we need to be prepared.

  • @sissiwasabi
    @sissiwasabi6 ай бұрын

    I prefer the CLI config ... faster and easier, and more secure

  • @antonchristhuraj1062
    @antonchristhuraj10626 ай бұрын

    Hi Francis, nice video! Thanks, When i try to restart freeradius i am getting this error! /etc/freeradius/3.0/mods-enabled/sql[365]: Reference "${dialect}" not found Do you know any work around this ?

  • @FrancisTechWorld

    @FrancisTechWorld

    6 ай бұрын

    You can edit the /etc/freeradius/3.0/mods-enabled/sql file and replace the ${dialect} with the actual database name you are using. For example, if you are using mysql, you can change the line: dialect = "${dialect}" to dialect = "mysql"

  • @antonchristhuraj1062

    @antonchristhuraj1062

    6 ай бұрын

    @@FrancisTechWorld I have done that my dialect = mysql and the error is on the last line! $INCLUDE ${modconfdir}/${.:name}/main/${dialect}/queries.conf some reason its not recognising the line /${dialect}/, i have not made any chnages to that line at all!

  • @FrancisTechWorld

    @FrancisTechWorld

    6 ай бұрын

    Have you created the necessary symbolic links for the SQL module and the SQL counter module. sudo ln -s /etc/freeradius/3.0/mods-available/sql /etc/freeradius/3.0/mods-enabled/sql sudo ln -s /etc/freeradius/3.0/mods-available/sqlcounter /etc/freeradius/3.0/mods-enabled/sqlcounter

  • @antonchristhuraj1062

    @antonchristhuraj1062

    5 ай бұрын

    Yes i have created everything! Just followed what you suggested! @@FrancisTechWorld

Келесі