Clients in virtual servers

Stanislav Lorenc stanislav.lorenc at cernovice.net
Mon Apr 9 18:11:28 CEST 2018


Hello,

i register NAS clients into two virtual servers with the same ip and 
this fall with duplicate error.

First registration:

Mon Apr  9 17:21:59 2018 : Debug: rlm_sql_postgresql: query affected 
rows = 1 , fields = 6
Mon Apr  9 17:21:59 2018 : Debug: rlm_sql (test_local_auth_sql): Read 
entry 
nasname=192.168.1.223,shortname=test_local_auth=::male_rb_test::ether2::192.168.1.223,secret=test
Mon Apr  9 17:21:59 2018 : Debug: rlm_sql (test_local_auth_sql): Adding 
client 192.168.1.223 
(test_local_auth::male_rb_test::ether2::192.168.1.223, 
server=test_local_auth) to clients list

and second virtual server registration:

Mon Apr  9 17:37:38 2018 : Debug: rlm_sql_postgresql: query affected 
rows = 1 , fields = 6
Mon Apr  9 17:37:38 2018 : Debug: rlm_sql (test_local_test_sql): Read 
entry 
nasname=192.168.1.223,shortname=test_local_test::male_rb_test::ether2::192.168.1.223,secret=test
Mon Apr  9 17:37:38 2018 : Debug: rlm_sql (test_local_test_sql): Adding 
client 192.168.1.223 
(test_local_test::male_rb_test::ether2::192.168.1.223, 
server=test_local_test) to clients list
Mon Apr  9 17:37:38 2018 : Error: Failed to add duplicate client 
test_local_test::male_rb_test::ether2::192.168.1.223

I check source code and registration  and every virtual server has own 
client list. Virtual server names in register info are different. But it 
look like clients are registred into global list.

Is there way how to register NAS clients separately.

Thanks

Best Regards,

Stanislav Lorenc



More information about the Freeradius-Users mailing list