Variables in clients.conf and user config.

Marc Beaumont marc.beaumont at comms365.com
Wed Jun 3 13:03:10 CEST 2015


Is it possible to define a variable in the clients.conf file, and then use that in the users config file.

For example, I want to be able to pass back a particular setting based on which client the request comes from.

EG:

I have clients.conf:

client 01 {
        ipaddr          = 1.2.3.4
        netmask         = 28
        secret          = xxxxxxxx
}

client 02 {
        ipaddr          = 5.6.7.8
        netmask         = 28
        secret          = xxxxxxxxxx
}


Then in my users, I would like to pass back an attribute based on which client the request came from.

So I can do:

Username_test  Cleartext-Password := "test"
                   Framed-IP-Address = 9.10.11.12
                   Framed-IP-Netmask = 255.255.255.255,
                   Tunnel-Type = L2TP,
                   Tunnel-Client-Auth-Id = xxxxx,
                   Tunnel-Server-Endpoint = <client IP>,    (Want to base this on the client the request came from, eg just lift the ipaddr attribute)
                   Tunnel-Password = xxxxxxx,


Is this possible??




Marc Beaumont
Network Admin / Linux Specialist
Comms 365
marc.beaumont at comms365.com<mailto:marc.beaumont at comms365.com>



Scanned by MailDefender - managed email security from intY - www.maildefender.net


More information about the Freeradius-Users mailing list