Change between FreeRadius 2.2.5 to 3.0.17 in Filter ?
Peter Lambrechtsen
peter at crypt.nz
Mon Jun 22 11:01:49 CEST 2020
Are you sure the Tunnel-Server-Endpoint hasn’t changed?? That may have been
set as a tagged vsa or not.
I would just try
Tunnel-Server-Endpoint:0
And drop the [0]
On Mon, 22 Jun 2020 at 16:08, Olivier CALVANO <o.calvano at gmail.com> wrote:
> 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
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
More information about the Freeradius-Users
mailing list