[RADIATOR] Check for Client-Id with regexp ?

Patrik Forsberg patrik.forsberg at ip-only.se
Mon Sep 17 12:44:22 UTC 2018


Hi,

Is it possible to check for Client-Id with a regexp ?
Say for example I wish to allow a specific user access only to client-id's with IP that is in the 10.0.0/24 range .. aka. 10.0.0.[0-9]{1,3} ?

Or option 2. to add to the request when the client matches and do a check against that optional value ?
a.k.a.
<Client 10.0.0.[0-9]{1,3}>
 AddToRequest OSC-Device-Identifier="SpecialClient"
</Client>

And in the user clause say
'' username1 Password=luser1,OSC-Device-Identifier="SpecialClient" ''

?

Or do I have to make a special <Handler> for this user case ?

---
Regards,
Patrik Forsberg



More information about the radiator mailing list