regexp in inner-tunnel possible?

Stefano Zanmarchi zanmarchi at gmail.com
Wed Jun 3 13:48:49 CEST 2015


Hello,
we currently have the following setting in inner-tunnel, to perform a check
on the radius server sending us the authentication request:

authorize {
        preprocess
        rewrite.calling_station_id
        if ("%{clients:shortname}" == "internal_radius_1") {
          ok
          update control {
            Auth-Type := Accept
          }
        }
        elsif (......

We'd like to extend the check to internal_radius_1 AND internal_radius_2.
Does inner-data support regexp to do that, maybe using something like the
following expression?
if ("%{clients:shortname}" ~ "internal_radius_(.*)") {

Thank you,
Stefano


More information about the Freeradius-Users mailing list