Re: Cisco VSA & FreeRADIUS

2002-07-29 Thread Thomas Jalsovsky


> I've tested freeradius 0.6 and it works fine, I'm planning to replace my
> production radius now. I have only one problem, I'd like to log Cisco
> VSAs (like nas-rx-speed, nas-tx-speed) in SQL database. I have 50+
> AS5350 an AS5400 with IOS 12.2 and it sends VSA accounting as
> Cisco-AVPair. Cisco-vsa-hack does not work with this. Any solution? This
> is a sample accounting-stop record:
the cisco_vsa_hack is only for handling situation:
Cisco-VSA = "Cisco-VSA=value"
this will be rewritten to Cisco-VSA = value

The hack does not handle situation
Cisco-AVPair = "Cisco-VSA=value"

you will have to expand the hack (what I did a year ago, but wasn't
applied to the FR code).

Regards,
Thomas

>
> Fri Jul 26 22:56:34 2002
> NAS-IP-Address = xxx
> NAS-Port = 670
> Cisco-NAS-Port = "Async5/22*Serial2/6:2"
> NAS-Port-Type = Async
> User-Name = "xxx"
> Called-Station-Id = "xxx"
> Calling-Station-Id = "xxx"
> Acct-Status-Type = Stop
> Acct-Authentic = RADIUS
> Service-Type = Framed-User
> Acct-Session-Id = "0E000D11"
> Framed-Protocol = PPP
> Framed-IP-Address = xxx
> Acct-Terminate-Cause = Lost-Carrier
> Acct-Input-Octets = 3597499
> Acct-Output-Octets = 36347730
> Acct-Input-Packets = 55748
> Acct-Output-Packets = 74657
> Acct-Session-Time = 7280
> Cisco-AVPair = "disc-cause-ext=1011"
> Cisco-AVPair = "pre-bytes-in=123"
> Cisco-AVPair = "pre-bytes-out=112"
> Cisco-AVPair = "pre-paks-in=5"
> Cisco-AVPair = "pre-paks-out=5"
> Cisco-AVPair = "pre-session-time=25"
> Cisco-AVPair = "connect-progress=60"
> Cisco-AVPair = "nas-rx-speed=28800"
> Cisco-AVPair = "nas-tx-speed=5"
> Acct-Delay-Time = 0
> Client-IP-Address = xxx
> Timestamp = 1027716994
>
> Best Regards,
> Felician Hoppal
>
>
>


- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html



Cisco VSA & FreeRADIUS

2002-07-28 Thread HOPPÁL Felicián



Hello,
 
I've tested freeradius 0.6 and it works fine, I'm 
planning to replace my production radius now. I have only one problem, I'd like 
to log Cisco VSAs (like nas-rx-speed, nas-tx-speed) in SQL 
database. I have 50+ AS5350 an AS5400 with IOS 12.2 and it sends VSA accounting 
as Cisco-AVPair. Cisco-vsa-hack does not work with this. Any solution? This is a 
sample accounting-stop record:
 
Fri Jul 26 22:56:34 
2002    NAS-IP-Address = 
xxx
    NAS-Port 
= 670    Cisco-NAS-Port = 
"Async5/22*Serial2/6:2"    
NAS-Port-Type = Async    User-Name = 
"xxx"    Called-Station-Id = 
"xxx"    Calling-Station-Id = 
"xxx"    Acct-Status-Type = 
Stop    Acct-Authentic = 
RADIUS    Service-Type = 
Framed-User    Acct-Session-Id = 
"0E000D11"    Framed-Protocol = 
PPP    Framed-IP-Address 
= xxx
    
Acct-Terminate-Cause = 
Lost-Carrier    Acct-Input-Octets = 
3597499    Acct-Output-Octets = 
36347730    Acct-Input-Packets = 
55748    Acct-Output-Packets = 
74657    Acct-Session-Time = 
7280    Cisco-AVPair = 
"disc-cause-ext=1011"    Cisco-AVPair 
= "pre-bytes-in=123"    Cisco-AVPair 
= "pre-bytes-out=112"    Cisco-AVPair 
= "pre-paks-in=5"    Cisco-AVPair = 
"pre-paks-out=5"    Cisco-AVPair = 
"pre-session-time=25"    Cisco-AVPair 
= "connect-progress=60"    
Cisco-AVPair = 
"nas-rx-speed=28800"    Cisco-AVPair 
= "nas-tx-speed=5"    
Acct-Delay-Time = 0    
Client-IP-Address = xxx
    
Timestamp = 1027716994
Best Regards,
Felician Hoppal