Change between FreeRadius 2.2.5 to 3.0.17 in Filter ?

Olivier CALVANO o.calvano at gmail.com
Mon Jun 22 06:07:42 CEST 2020


Hi

i test for update my old FreeRadius 2.2.5 to 3.0.17 included
int CentOS 8.

On filter, i have a error that i don't have in 2.2.5:


(6)       if ((Tunnel-Server-Endpoint:0[0] != '192.168.1.96') && (User-Name
=~ /\\.internal-lan\\.ftth/) && ("%{Packet-Src-IP-Address}" ==
"192.168.90.58")) {
(6)       ERROR: Failed retrieving values required to evaluate condition
(6)       elsif ((Tunnel-Server-Endpoint:0[0] != '192.168.1.96') &&
(User-Name =~ /\\.internal-lan\\.ftth/) && ("%{Packet-Src-IP-Address}" ==
"192.168.90.59")) {
(6)       ERROR: Failed retrieving values required to evaluate condition
(6)       elsif ((Tunnel-Server-Endpoint:0[0] != '192.168.1.96') &&
(User-Name =~ /\\.internal-lan\\.ftth/) && ("%{Packet-Src-IP-Address}" ==
"192.168.90.74")) {
(6)       ERROR: Failed retrieving values required to evaluate condition
(6)       elsif ((Tunnel-Server-Endpoint:0[0] != '192.168.1.96') &&
(User-Name =~ /\\.internal-lan\\.ftth/) && ("%{Packet-Src-IP-Address}" ==
"192.168.90.208")) {
(6)       ERROR: Failed retrieving values required to evaluate condition



Exemple of my config entry:

        if ((Tunnel-Server-Endpoint:0[0] != '192.168.1.96') && (User-Name
=~ /\\.internal-lan\\.ftth/) && ("%{Packet-Src-IP-Address}" ==
"192.168.90.58")) {
                update reply {
                        tunnel-Server-Endpoint:0 := '192.168.1.96'
                        tunnel-Client-Auth-Id:0 := "POP-192.168.1.96"
                        tunnel-Server-Auth-Id:0 := "POP-192.168.1.96"
                        Tunnel-Type := "L2TP"
                        Tunnel-Medium-Type := "IPv4"
                        Class := "FTTH-PRO-DL1000m500k-UL300m500k"
                        Tunnel-Preference !* ANY
                        Framed-MTU !* ANY
                        Cisco-AVPair !* ANY
                        MS-Primary-DNS-Server !* ANY
                        MS-Secondary-DNS-Server !* ANY
                        Framed-IP-Address !* ANY
                        Framed-IP-Netmask !* ANY
                        Service-Type !* ANY
                        Framed-Protocol !* ANY
                }
        }


they are a synthaxe change in FreeRadius 3.x ?


thanks
Olivier


More information about the Freeradius-Users mailing list