<HTML><BODY>My old server all ok. Problem after upgrade, on last version 2.2.0<br><br>[root@aaa-db1 raddb]# radiusd -v<br>radiusd: FreeRADIUS Version 2.2.0, for host x86_64-unknown-linux-gnu, built on Jun 26 2013 at 10:04:20<br>Copyright (C) 1999-2011 The FreeRADIUS server project and contributors.<br>There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A<br>PARTICULAR PURPOSE.<br>You may redistribute copies of FreeRADIUS under the terms of the<br>GNU General Public License.<br>For more information about these matters, see the file named COPYRIGHT.<br><br><br style="overflow: auto;" dir="ltr" id="tinymce" class="mceContentBody " contenteditable="true"><br>
<blockquote style="border-left:1px solid #0857A6; margin:10px; padding:0 0 0 10px;" class="mailru-blockquote">
        <div id="">
        



    






        

        
        
        
        
        

        



<div class="js-helper js-readmsg-msg">
        <style type="text/css"></style>
        <div id="style_13732863680000001003" class="mr_read__body">
                <base target="_self" href="https://e.mail.ru/">
                
                        <div id="style_13732863680000001003_BODY">






<div>
<p><span style="font-size:11.0pt;font-family:"calibriquotquotsans-serifquotcolor:#1F497D">Upgrade freeradius version.
</span></p>
<p><span style="font-size:11.0pt;font-family:"calibriquotquotsans-serifquotcolor:#1F497D">There was problem with parsing attributes ( witch starts with number  ) in the code.</span></p>
<p><span style="font-size:11.0pt;font-family:"calibriquotquotsans-serifquotcolor:#1F497D"> </span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p><b><span style="font-size:10.0pt;font-family:"" lang="EN-US">From:</span></b><span style="font-size:10.0pt;font-family:"" lang="EN-US"> freeradius-users-bounces+peter.balsianok=orange.sk@lists.freeradius.org
 [mailto:freeradius-users-bounces+peter.balsianok=orange.sk@lists.freeradius.org]
<b>On Behalf Of </b>???? ????????<br>
<b>Sent:</b> Monday, July 08, 2013 1:01 PM<br>
<b>To:</b> freeradius-users@lists.freeradius.org<br>
<b>Subject:</b> acct_users</span></p>
</div>
</div>
<p> </p>
<p style="margin-bottom:12.0pt"><br>
Тема: acct_users</p>
<div>
<div id="style_13732808020000000239">
<div id="style_13732808020000000239_BODY">
<p>Hi<br>
Have some proublem<span lang="EN"> with accounting files</span><span lang="EN"> </span>
on version 2.2.0 . I use standard dictionary 3GPP2, but attribut 3GPP2-PCF-IP-Address was ignored in acct_users file.
<br>
<br>
etc/acct_users<br>
DEFAULT         Acct-Session-Time == "0", Acct-Type := TEST0<br>
DEFAULT         Framed-IP-Address =~ "172.16", Acct-Type := BLOCKED<br>
DEFAULT 3GPP2-PCF-IP-Address =~ "10.223.[45]", NAS-IP-Address =~ "10.123.66.5", Acct-Type := ASREVDO<br>
DEFAULT 3GPP2-PCF-IP-Address =~ "10.123.65", NAS-IP-Address =~ "10.123.66", Acct-Type := KUB<br>
DEFAULT                  Acct-Type := OTHER<br>
<br>
etc/modules/detail<br>
<br>
detail TEST {<br>
                detailfile =  ${radacctdir}/files/blocked/blocked.%Y%m<br>
                detailperm = 0640<br>
                locking = yes<br>
        }<br>
<br>
<br>
detail TEST0 {<br>
                detailfile =  ${radacctdir}/files/nullsession/nullsession.%Y%m<br>
                detailperm = 0640<br>
                locking = yes<br>
        }<br>
        detail KUB {<br>
                detailfile =  ${radacctdir}/files/onex/kub.aaadb1.onex<br>
                detailperm = 0640<br>
                locking = yes<br>
        }<br>
<br>
       detail ASREVDO {<br>
                detailfile =  ${radacctdir}/files/evdoasr/kubasr.aaadb1.evdo<br>
                detailperm = 0640<br>
                locking = yes<br>
        }<br>
<br>
  detail OTHER {<br>
                detailfile =  ${radacctdir}/files/other/%{NAS-IP-Address}_other/other.%{NAS-IP-Address}.%Y%m<br>
                detailperm = 0640<br>
                locking = yes<br>
        }<br>
<br>
<span lang="EN">My accounting files was created</span> as OTHER, <span lang="EN">
but there must have been in </span>ASREVDO.<br>
For example, radclient:<br>
[root@aaa-db1 radtest]# ./radtestacct.sh |more<br>
Sending Accounting-Request of id 7 to 127.0.0.1 port 1813<br>
        User-Name = "mobile"<br>
        Calling-Station-Id = "250091000211350"<br>
        NAS-IP-Address = 10.123.66.5<br>
        Acct-Status-Type = Interim-Update<br>
        Acct-Session-Id = "50D406FD"<br>
        3GPP2-Correlation-Id = "o095O8hM"<br>
        NAS-Identifier = "asr5k-krd"<br>
        SN-Software-Version = "10.0 (36820)"<br>
        3GPP2-BSID = "2D0C00010701"<br>
        3GPP2-Attr-41 = 0x000b32c1<br>
        3GPP2-Service-Option = 59<br>
        3GPP2-User-Id = 0<br>
        3GPP2-ESN = "0159E33E"<br>
        Service-Type = Framed-User<br>
        Framed-Protocol = PPP<br>
        NAS-Port-Type = Wireless-Other<br>
        3GPP2-PCF-IP-Address = 10.223.4.6<br>
        Acct-Authentic = RADIUS<br>
        SN-Local-IP-Address = 77.243.240.221<br>
        SN-Primary-DNS-Server = 77.243.240.230<br>
        SN-Secondary-DNS-Server = 77.243.240.231<br>
        SN-VPN-Name = "ISP"<br>
        SN-Primary-NBNS-Server = 0.0.0.0<br>
        SN-Secondary-NBNS-Server = 0.0.0.0<br>
        Framed-Compression = None<br>
        SN-PPP-Data-Compression = None<br>
        SN-VPN-ID = 3<br>
        3GPP2-IP-Technology = 1<br>
        3GPP2-Compulsory-Tunnel-Indicator = 0<br>
        SN-Proxy-MIP = 0<br>
        Framed-MTU = 1500<br>
        3GPP2-Attr-78 = 0x00000000<br>
        SN-PPP-Data-Compression-Mode = Normal<br>
        3GPP2-Forward-FCH-Mux-Option = 0<br>
        3GPP2-Reverse-FCH-Mux-Option = 0<br>
        3GPP2-Forward-Traffic-Type = 0<br>
        3GPP2-Reverse-Traffic-Type = 0<br>
        3GPP2-FCH-Frame-Size = 0<br>
        3GPP2-Forward-FCH-RC = 0<br>
        3GPP2-Reverse-FCH-RC = 0<br>
        3GPP2-Airlink-Priority = 0<br>
        3GPP2-Airlink-Sequence-Number = 5<br>
        3GPP2-Airlink-Record-Type = 2<br>
        3GPP2-Bad-PPP-Frame-Count = 0<br>
        3GPP2-Number-Active-Transitions = 130<br>
        3GPP2-Terminating-SDB-Octet-Count = 0<br>
        3GPP2-Originating-SDB-OCtet-Count = 0<br>
        3GPP2-Terminating-Number-SDBs = 0<br>
        3GPP2-Originating-Number-SDBs = 0<br>
        3GPP2-Received-HDLC-Octets = 14106<br>
        3GPP2-Active-Time = 2040<br>
        Acct-Input-Packets = 109<br>
        Acct-Output-Packets = 268<br>
        3GPP2-Attr-162 = 0x00000000<br>
        3GPP2-Attr-163 = 0x00000000<br>
        3GPP2-Attr-164 = 0x00000000<br>
        3GPP2-Attr-165 = 0x00000000<br>
        SNA-PPP-Unfr-data-In-Oct = 11438<br>
        SNA-PPP-Unfr-data-Out-Oct = 35850<br>
        Acct-Session-Time = 3600<br>
        3GPP2-Session-Continue = 1<br>
        3GPP2-Last-User-Activity-Time = 1373257676<br>
        SNA-PPP-Ctrl-Input-Octets = 23602<br>
        SNA-PPP-Ctrl-Output-Octets = 28240<br>
        SNA-PPP-Ctrl-Input-Packets = 2346<br>
        SNA-PPP-Ctrl-Output-Packets = 2347<br>
        SNA-PPP-Framed-Input-Octets = 6446541<br>
        SNA-PPP-Framed-Output-Octets = 93404564<br>
        SNA-PPP-Discards-Input = 107<br>
        SNA-PPP-Errors-Input = 107<br>
        SNA-PPP-Bad-FCS = 107<br>
        SNA-PPP-Echo-Req-Input = 2335<br>
        SNA-PPP-Echo-Rsp-Output = 2335<br>
        SNA-RPRRQ-Rcvd-Total = 4448<br>
        SNA-RPRRQ-Rcvd-Acc-Reg = 4448<br>
        SNA-RPRRQ-Rcvd-Acc-Dereg = 39<br>
        SNA-RPRAK-Rcvd-Total = 60<br>
        SNA-RPRAK-Rcvd-Acc-Ack = 40<br>
        SNA-RPRAK-Rcvd-Mis-ID = 20<br>
        SNA-RP-Reg-Reply-Sent-Total = 4448<br>
        SNA-RP-Reg-Reply-Sent-Acc-Reg = 4448<br>
        SNA-RP-Reg-Reply-Sent-Acc-Dereg = 39<br>
        SNA-RP-Reg-Upd-Sent = 60<br>
        SNA-RP-Reg-Upd-Re-Sent = 20<br>
        Event-Timestamp = "Jul  8 2013 08:28:23 MSK"<br>
        3GPP2-Service-Reference-Id = 0x0104000102040001<br>
        Framed-IP-Address = 94.77.22.81<br>
        Framed-IP-Netmask = 255.255.255.255<br>
        Starent-Attr-24 = 0x00000001<br>
        Acct-Input-Octets = 11438<br>
        Acct-Output-Octets = 35850<br>
        NAS-Port = 666631<br>
rad_recv: Accounting-Response packet from host 127.0.0.1 port 1813, id=7, length=20<br>
<br>
In radius.log<br>
<br>
Waking up in 0.9 seconds.<br>
Thread 3 handling request 0, (1 handled so far)<br>
[<thread>] # Executing section preacct from file /usr/local/etc/raddb/sites-enabled/default<br>
[<thread>] +- entering group preacct {...}<br>
[preprocess]    expand: %{NAS-IP-Address} -> 10.123.66.5<br>
[preprocess]    expand: %{Calling-Station-Id} -> 250091000211350<br>
[preprocess] WARNING: Unknown module "3GPP2-BSID" in string expansion "%"<br>
[preprocess] WARNING: Unknown module "3GPP2-BSID" in string expansion "%"<br>
[preprocess]    expand: %{Calling-Station-Id} -> 250091000211350<br>
[preprocess]    expand: %{Calling-Station-Id} -> 250091000211350<br>
[preprocess]    expand: %{Calling-Station-Id} -> 250091000211350<br>
++[preprocess] returns ok<br>
[suffix] No '@' in User-Name = "mobile", looking up realm NULL<br>
[suffix] Found realm "NULL"<br>
[suffix] Adding Stripped-User-Name = "mobile"<br>
[suffix] Adding Realm = "NULL"<br>
[suffix] Accounting realm is LOCAL.<br>
++[suffix] returns ok<br>
[files]         expand: %{User-Name} -> mobile<br>
[files]         expand: %{Framed-IP-Address} -> 94.77.22.81<br>
[files] WARNING: Unknown module "3GPP2-PCF-IP-Address" in string expansion "%"<br>
[files] WARNING: Unknown module "3GPP2-PCF-IP-Address" in string expansion "%"<br>
[files] acct_users: Matched entry DEFAULT at line 42<br>
++[files] returns ok<br>
  Found Acct-Type OTHER<br>
# Executing group from file /usr/local/etc/raddb/sites-enabled/default<br>
+- entering group OTHER {...}<br>
[acct_unique] Hashing 'Calling-Station-Id = "250091000211350",3GPP2-Correlation-Id = "o095O8hM",Acct-Session-Id = "50D406FD"'<br>
[acct_unique] Acct-Unique-Session-ID = "327c0b6a3c7b490e".<br>
++[acct_unique] returns ok<br>
++- entering group  {...}<br>
[OTHER]         expand: /usr/local/var/log/radius/radacct/files/other/%{NAS-IP-Address}_other/other.%{NAS-IP-Address}.%Y%m -> /usr/local/var/log/radius/radacct/files/other/10.123.66.5_other/other.10.123.66.5.201307<br>
[OTHER] /usr/local/var/log/radius/radacct/files/other/%{NAS-IP-Address}_other/other.%{NAS-IP-Address}.%Y%m expands to /usr/local/var/log/radius/radacct/files/other/10.123.66.5_other/other.10.123.66.5.201307<br>
[OTHER] Acquired filelock, tried 1 time(s)<br>
[OTHER]         expand: %t -> Mon Jul  8 14:38:43 2013<br>
+++[OTHER] returns ok<br>
++- group  returns ok<br>
Finished request 0.<br>
<br>
This configuration work normal on my old 2.1.3 version radius, but 2.2.0 don't like number as the first character of an attribute expansion.
<br>
Every time see [files] WARNING: Unknown module "3GPP2-PCF-IP-Address" in string expansion "%"<br>
<br>
<span lang="EN">Similar problem in this list</span>:<br>
<a href="http://lists.freeradius.org/pipermail/freeradius-users/2012-November/064050.html" target="_blank">http://lists.freeradius.org/pipermail/freeradius-users/2012-November/064050.html</a>
</p>
<div id="gt-res-content">
<div>
<p><span lang="EN">This is strange but in 2.2.0 this problem should not be.</span></p>
</div>
</div>
<p style="margin-bottom:12.0pt"> </p>
<div id="_mcePaste">
<pre>I use standard dictionary</pre>
</div>
</div>
</div>
</div>
<p> </p>
<div style="text-align:center" align="center">
<hr align="center" size="2" width="100%">
</div>
<p><br>
-- <br>
Юрий Колесник</p>
</div>


</div>
                        
                
                <base target="_self" href="https://e.mail.ru/">
        </div>

        
</div>


</div>
</blockquote>
<br>
<br>-- <br>Юрий Колесник<br></BODY></HTML>