Virtual server by client data

Fajar A. Nugraha list at fajar.net
Wed Aug 29 10:36:16 CEST 2012


On Wed, Aug 29, 2012 at 3:22 PM, BILLOT
<emmanuel.billot at ac-orleans-tours.fr> wrote:
> Hi,
>
> Is there any way to use virtual servs depending on client VLAN ?
> I mean :
>
> If packet arrive with VLAN1 then use virtual server 1
> If packet arrive with VLAN2 then use virtual server 2

Depends.

One of the following should be applicable
(1) If the NAS is different (i.e. each VLAN has its own NAS), you can
take a look at raddb/sites-available/dynamic-clients. Basically it can
choose a virtual server based on Packet-Src-IP-Address attribute (i.e.
the NAS IP as seen by FR)

(2) If the request is plain PAP/MSCHAP, you should be able to tell the
default virtual server to proxy it to another virtual server using
unlang and Proxy-To-Realm

(3) use the same virtual server, but do selective processing (with
unlang) based on some attributes that the NAS sends. e.g. if an
attribute has value A, call module sql1, while if the value is B, call
module sql2.

-- 
Fajar


More information about the Freeradius-Users mailing list