For example this works: LNS NAS-IP-Address =~ "213.151.23(1|2).*" On Tue, Apr 21, 2015 at 11:05 AM, Angel L. Mateo <amateo@um.es> wrote:
Hello,
I'm migrating my current freeradius2 configuration to freeradius3. In my current FR2 configuration I have rules to check for huntgroups like:
test_huntgroup NAS-IP-Address =~ ^10\.57\.1\.[0-9]+$
This same rule is not working in my FR3 configuration. Running FR in debug mode shows:
.... (0) NAS-IP-Address = 10.57.1.50 (0) NAS-Identifier = 'RADIUS-PRUEBAS' (0) # Executing section authorize from file /etc/freeradius/sites-enabled/eduroam (0) authorize { (0) preprocess: EXPAND /10\.57\.1\.[0-9]+$/ (0) preprocess: --> /10\.57\.1\.[0-9]+$/ (0) preprocess: EXPAND ^10\.57\.8\.[0-9]+$ (0) preprocess: --> ^10\.57\.8\.[0-9]+$ (0) preprocess: EXPAND ^10\.57\.14\.[0-9]+$ (0) preprocess: --> ^10\.57\.14\.[0-9]+$ ... (0) [preprocess] = ok ...
but no huntgroup is assigned.
I have tried putting the RE inside // with the same result.
Any help? Thank you.
-- Angel L. Mateo Martínez Sección de Telemática Área de Tecnologías de la Información y las Comunicaciones Aplicadas (ATICA) http://www.um.es/atica Tfo: 868887590 Fax: 868888337 - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html