Help Unlang Freeradius 2.x to 3.x

Alan DeKok aland at deployingradius.com
Sat Jun 27 14:13:08 CEST 2020


On Jun 27, 2020, at 12:33 AM, Olivier CALVANO <o.calvano at gmail.com> wrote:
> I have this condition which works under Freeradius 2.x:
> 
> if ((Tunnel-Server-Endpoint: 0 [0]! = '192.168.1.1') && (User-Name = ~
> /\\.local/) && (User-Name! ~ /network\\.local/) && ("%
> {Packet-Src-IP-Address}" == "172.16.100.100")) {

  You've re-typed it, instead of copying it exactly from the configuration files.  Please just use cut & paste.  It's more correct.

> I can't find the equivalent in Freeradius 3.0.17

  99% of the time you can just use the same "unlang" statements.

> I tried in particular
> 
> if ((& Tunnel-Server-Endpoint! = '192.168.1.1') && (User-Name = ~
> /\\.local/) && (User-Name! ~ /network\\.local/) && ("% {
> Packet-Src-IP-Address} "==" 172.16.100.100 ")) {
> 
> but that blocks, it is always at the level of the first condition that
> there is the problem.

  Which is.... what?

  There *is* debug output which can help.

  Read this and follow the instructions:  http://wiki.freeradius.org/list-help

  Alan DeKok.




More information about the Freeradius-Users mailing list