Тёмный

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

Francis Techworld
Подписаться 473
Просмотров 5 тыс.
50% 1

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

Опубликовано:

 

17 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 19   
@zainudinnoori8365
@zainudinnoori8365 3 месяца назад
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 3 месяца назад
@@zainudinnoori8365 why don’t use DuloRadius?
@santiagocastano5976
@santiagocastano5976 6 дней назад
sudo nano /etc/freeradius/3.0/mods-enabled/sql when I use this command the archive is empty why is that?
@FrancisTechWorld
@FrancisTechWorld 6 дней назад
@@santiagocastano5976 please check this link’s description. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-JwFhljT5hyQ.htmlsi=_opT2H3-Du3AipL-
@FrancisTechWorld
@FrancisTechWorld 5 дней назад
You can also view this video: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-JwFhljT5hyQ.html
@santiagocastano5976
@santiagocastano5976 5 дней назад
@@FrancisTechWorld thank you!
@محمدمسعد-د3ر
@محمدمسعد-د3ر 2 месяца назад
I can't restart freeradius server. It says, Job for freeradius.service failed because the control process exited with error code. What o i do please?
@FrancisTechWorld
@FrancisTechWorld 2 месяца назад
Thank you for your comment. I am not sure about the error you encountered, but I am confident that my steps and procedures work 100% (at least until today, August 2024). I have prepared an updated video, which you can compare with your environment: Updated Video. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-QNh8CIwpVdY.html
@pavannani007
@pavannani007 9 месяцев назад
Can you please share tutorials eap tls certificate based wifi authentication
@FrancisTechWorld
@FrancisTechWorld 9 месяцев назад
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
@sissiwasabi
@sissiwasabi 9 месяцев назад
I prefer the CLI config ... faster and easier, and more secure
@dns4mm
@dns4mm 9 месяцев назад
btw, any idea sharing about .. 1.01^365 law ... in your channel desb: message thanks.
@FrancisTechWorld
@FrancisTechWorld 9 месяцев назад
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.
@antonchristhuraj1062
@antonchristhuraj1062 9 месяцев назад
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 9 месяцев назад
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 9 месяцев назад
@@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 9 месяцев назад
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 8 месяцев назад
Yes i have created everything! Just followed what you suggested! @@FrancisTechWorld
Далее
Setup FreeRADIUS on Kali Linux for 802.1X Authentication
1:06:34
FreeRADIUS Server
21:39
Просмотров 17 тыс.
Virtualize Ubuntu Server with Proxmox VE
9:38
Просмотров 91 тыс.
13 - RADIUS WiFi Authentication
26:29
Просмотров 7 тыс.
You want a real Name Server at home? // DNS
32:31
Просмотров 265 тыс.
Setting up a CHEAP and EASY Homelab Linux Server
16:28
Просмотров 346 тыс.
Securing RADIUS with EAP-TLS [Windows Server 2019]
39:18