Manual de Freradius - Radius - Dalo 2020
Manual de Freradius - Radius - Dalo 2020
Manual de Freradius - Radius - Dalo 2020
04
# apt update
# apt -y upgrade
# reboot
Instalar software-properties-common
# apt update
# apt -y install mariadb-server mariadb-client
# mysql_secure_installation
# mysql -u root -p
MariaDB [(none)]> CREATE DATABASE radius;
Query OK, 1 row affected (0.000 sec)
MariaDB [(none)]> GRANT ALL ON radius.* TO radius@localhost IDENTIFIED BY "radius";
Query OK, 0 rows affected (0.114 sec)
MariaDB [(none)]> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.001 sec)
MariaDB [(none)]> quit
Bye
sql {
driver = "rlm_sql_mysql"
dialect = "mysql"
# Connection info:
server = "localhost"
port = 3306
login = "radius"
password = "radius"
# Set to ‘yes’ to read radius clients from the database (‘nas’ table)
# Clients will ONLY be read on server startup.
read_clients = yes
client_table = "nas"
Resultado correcto:
Resultado correcto en modo comando:
Ahora que se tiene el usuario se realiza un test de conexión desde la consola. Para ello se ejecuta el comando como root y si devuelve
Access-Accept es que todo ha ido bien: