Freeradius 3 sql not working with nas entries in nas table

.h h at alf.world
Thu Nov 30 14:17:09 CET 2017


hi,

i’m using freenas sql and want the nas to be read from the sql table nas (default).

after commenting the entry for localhost in the conf file and putting them into the nas table, reloading freenas, the connection from localhost is rejected.



        # Set to 'yes' to read radius clients from the database ('nas' table)
        # Clients will ONLY be read on server startup.
        read_clients = yes

        # Table to keep radius client info
        client_table = „nas"




###################

select * from nas;
+----+-----------+-----------+-------+-------+------------+-----------+-----------+-------------------------+
| id | nasname   | shortname | type  | ports | secret     | server    | community | description             |
+----+-----------+-----------+-------+-------+------------+-----------+-----------+-------------------------+
|  1 | localhost | NULL      | other |  NULL | testing123 | 127.0.0.1 | NULL      | localhost RADIUS Client |
+----+-----------+-----------+-------+-------+------------+-----------+-----------+-------------------------+
1 row in set (0.00 sec)



####################
radtest user-2001 tlkieyc3 localhost 1812 testing123


Listening on auth address * port 1812 bound to server default
Listening on acct address * port 1813 bound to server default
Listening on auth address :: port 1812 bound to server default
Listening on acct address :: port 1813 bound to server default
Listening on auth address 127.0.0.1 port 18120 bound to server inner-tunnel
Listening on proxy address * port 45483
Listening on proxy address :: port 52244
Ready to process requests
Ignoring request to auth address * port 1812 bound to server default from unknown client 127.0.0.1 port 47933 proto udp
Ready to process requests
Ignoring request to auth address * port 1812 bound to server default from unknown client 127.0.0.1 port 47933 proto udp
Ready to process requests
Ignoring request to auth address * port 1812 bound to server default from unknown client 127.0.0.1 port 47933 proto udp
Ready to process requests



any suggestions?
is there a way to get freeradius to print out the loaded nas from the db?


TIA
.h


More information about the Freeradius-Users mailing list