<HTML><BODY><br>
Тема: acct_users<br>
<br>
<div class="js-helper js-readmsg-msg">
<style type="text/css"></style>
<div id="style_13732808020000000239" class="mr_read__body">
<base target="_self" href="https://e.mail.ru/">
<div id="style_13732808020000000239_BODY">
Hi<br>Have some proublem<span id="result_box" lang="en"><span> with </span></span><span id="result_box" lang="en"><span>accounting files</span></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 id="result_box" lang="en"><span>My accounting files was created</span><span></span></span> as OTHER, <span id="result_box" lang="en"><span>but there must</span> <span>have been in </span></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 id="result_box" lang="en"><span>Similar</span> <span>problem in this list</span></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> <br><div id="gt-src-tools"><div id="gt-src-tools-l"><div style="display: inline-block;" id="gt-input-tool"><div id="itamenu"><span></span></div></div></div></div> <div id="gt-res-content"><div dir="ltr" style="zoom:1"><span id="result_box" lang="en"><span>This</span> <span>is strange</span> <span>but</span> <span>in</span> <span>2.2.0</span> <span>this problem</span> <span>should not be.</span></span></div></div><br><br><div style="width: 1px;height: 1px;overflow: hidden;" data-mce-bogus="1" id="_mcePaste"><pre>I use standard dictionary</pre></div>
</div>
<base target="_self" href="https://e.mail.ru/">
</div>
</div>
<br><hr>
<br>-- <br>Юрий Колесник<br></BODY></HTML>