Freeradius 3.0.4 and 2+2 VSA issue

Aleš Rygl ales at rygl.net
Thu Oct 23 16:26:35 CEST 2014


  

Hi all, 

I have a problem using VSA encoded in 2+2 format, namely
those in dictionary.starent in 3.0.4 version of the Freeradius. The
server uses the dictionary supplied within the tarball. 

The server is
processing just accounting requests and saving the requests into a
detail file at the moment. But they are not decoded: 

received
Accounting-Request Id 177 from 10.49.36.49:37817 to 10.49.36.230:1813
length 735
 User-Name = 'wap'
 Calling-Station-Id = '420601521211'

NAS-IP-Address = 10.49.32.253
 Acct-Status-Type = Stop
 NAS-Identifier =
'tmcz-gw1'
 Attr-26 = 0x00001fe40120001031352e302028353435313529

Service-Type = Framed-User
 Framed-Protocol = GPRS-PDP-Context

NAS-Port-Type = Wireless-Other
 Attr-26 = 0x00001fe4003e000800000001

3GPP-IMSI = '230015002746529'
 3GPP-IMSI-MCC-MNC = '23001'
 3GPP-NSAPI =
'5'
 3GPP-Selection-Mode = '1'
 3GPP-Charging-ID = 559411603

3GPP-GPRS-Negotiated-QoS-profile = '05-1392127396D1FE7406FFFF001600'

3GPP-Charging-Characteristics = '0800'
 Called-Station-Id =
'internet.t-mobile.cz'
 3GPP-SGSN-Address = 89.24.0.232

3GPP-GGSN-Address = 89.24.0.248
 3GPP-GGSN-MCC-MNC = '23001'

3GPP-Negotiated-DSCP = 0
 3GPP-RAT-Type = UTRAN
 Attr-26.10415.23 =
0x8001
 3GPP-IMEISV = '8639640220236677'
 3GPP-PDP-Type = 0

Acct-Session-Id = '591800F82157F193'
 Acct-Authentic = RADIUS
 Attr-26 =
0x00001fe4005e001a6d766e6f2d3030312d746d637a2d696e7465726e6574
 Attr-26
= 0x00001fe400fa0013696e745f686f6d655f6e6f5f667570
 Class =
0x6374782d6161612d6665313b313431323831333830393b3332333439363034

Attr-26 = 0x00001fe4000200066769
 Attr-26 = 0x00001fe4007b000800000001

Attr-26 = 0x00001fe400680007616161
 Attr-26 =
0x00001fe4012d000c6f63732d6c697665
 3GPP-Charging-Gateway-Address =
10.94.77.53
 Attr-26 = 0x00001fe40069000800000000
 Acct-Multi-Session-Id
= '591800F82157F191'
 Attr-26 = 0x00001fe40092000800000000
 Framed-MTU =
1500
 3GPP-Location-Info = 0x0132f0103520f9c2
 3GPP-SGSN-MCC-MNC =
'23001'
 3GPP-Session-Stop-Indicator = 255
 Attr-26 =
0x00001fe40003000800000002
 Event-Timestamp = 'Oct 23 2014 15:36:57
CEST'
 Framed-IP-Address = 10.93.248.122
 Attr-26 =
0x00001fe40018000800000004
 Acct-Input-Octets = 0
 Acct-Output-Octets =
0
 Acct-Input-Packets = 0
 Acct-Output-Packets = 0
 Acct-Session-Time =
1
 Acct-Terminate-Cause = User-Request
 NAS-Port = 413912
 Attr-26 =
0x00002149020331
 Attr-26 = 0x00002149090a3237353530343536

It seems
that just starent VSA are affected but I can see tha also
Attr-26.10415.23 is not decoded to 3GPP-MS-Time-Zone thought it is
present in /usr/share/freeradius/dictionary.3gpp 

The sample of
dictionary.starent: 

VENDOR Starent 8164 format=2,2

BEGIN-VENDOR
Starent

ATTRIBUTE SN-VPN-ID 1 integer
ATTRIBUTE SN-VPN-Name 2
string
ATTRIBUTE SN-Disconnect-Reason 3 integer
ATTRIBUTE
SN-PPP-Progress-Code 4 integer
ATTRIBUTE SN-Primary-DNS-Server 5
ipaddr
ATTRIBUTE SN-Secondary-DNS-Server 6 ipaddr
ATTRIBUTE
SN-Re-CHAP-Interval 7 integer
ATTRIBUTE SN-IP-Pool-Name 8 string


Though the attributes are not decoded you can still refere to then in
the configuration (i.e. no error is reported) so it looks like the
server knows them. 

radiusd -XC show no errors, the binary was built
from source and a .deb package was created. I can provide more samples
if needed. 

Thanks for help. 

Regards 

Ales 

  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20141023/477942e0/attachment.html>


More information about the Freeradius-Users mailing list