Freeradius realm using multiple sql and virtual server

Alan DeKok aland at deployingradius.com
Sat Jun 23 16:16:30 CEST 2018


On Jun 23, 2018, at 8:30 AM, Philemon Jaomalaza <philemon.jaomalaza at gmail.com> wrote:
> 
> for the moment, for each virtual server, I created a virtual server, its realm and its module sql but actually I do not know how to link them.

  Realms are global, as are modules.

> where should I add:
> if realm1
> sql1
> elsif realm2
> sql2
> elsif realm3
> sql3
> else
> sql
> 
> in the /freeradius/3.0/proxy.conf or in the /freeradius/3.0/mods-available/sql module?

  No.  The "if  / else" unlang keywords *cannot* go into proxy.conf or into a module configuration.  They can *only* appear inside of a virtual server "authorize", etc. section.

  If you created a virtual server, why?  How do you think that requests from the client get sent to a virtual server?

  Read raddb/sites-available/README.  This documents how virtual servers work.

  If all packets are coming from one NAS, then virtual servers are not the answer.  If each realm comes from a different NAS, then you can use virtual servers.

  Alan DeKok.




More information about the Freeradius-Users mailing list