Ok, I did what you suggested and defined variables just before "modules {" but it still does not work, same error. //////////// ###################################################################### # # SNMP notifications. Uncomment the following line to enable # snmptraps. Note that you MUST also configure the full path # to the "snmptrap" command in the "trigger.conf" file. # #$INCLUDE trigger.conf #### VARIABLES ############################# etu_aruba_wlc_rektorluk = 10.10.243.0/24 etu_aruba_wlc_ogrenci_merkezi = 10.10.244.0/24 etu_ssid_eduroam = "eduroam" # MODULE CONFIGURATION # # The names and configuration of each module is located in this section. # # After the modules are defined here, they may be referred to by name, # in other sections of this configuration file. # modules { ///////////////////////// /etc/freeradius/3.0/sites-enabled/default[40]: ((&Packet-Src-IP-Address < ${etu_aruba_wlc_rektorluk}) && (&NAS-Port-Type == "Wireless-80... /etc/freeradius/3.0/sites-enabled/default[40]: ^ Failed to parse value for attribute Rahman Duran Message: 2 Date: Fri, 25 Feb 2022 09:55:25 -0500 From: Alan DeKok <aland@deployingradius.com> To: FreeRadius users mailing list <freeradius-users@lists.freeradius.org> Subject: Re: Using variables in unlang conditions Message-ID: <C473A2CB-1BB9-4EF8-90DA-36987FD19B90@deployingradius.com> Content-Type: text/plain; charset=us-ascii On Feb 25, 2022, at 8:28 AM, Rahman Duran <rahman.duran@erzurum.edu.tr> wrote:
I put it in the authorize section of the default virtual server
Well, you can't just randomly add things to the "authorize" section. It won't work. The configuration file syntax is documented.
, just before if conditions. So this file is not considered a "configuration file" :) I just put definitions to the end of the radiusd.conf file, try to start in debug mode with freeradius -X, getting the same error:
((&Packet-Src-IP-Address < ${etu_aruba_wlc_rektorluk}) ^ Failed to parse value for attribute
bottom of radiusd.conf #### VARIABLES ############################# etu_aruba_wlc_rektorluk = 10.10.243.0/24 etu_aruba_wlc_ogrenci_merkezi = 10.10.244.0/24
OK, after some looking at it, you should put those in "radiusd.conf", just before the "modules {" line. It should then work. Alan DeKok.