Cisco-AVPair Accounting
Bryan Campbell
bbc at misn.com
Tue Dec 8 19:59:50 CET 2009
Coutesy of Michael Bowe . . .
Since Calling-Station-Id does not exist in the accounting spill from the
Cisco, concatenating the client-mac-address works just great.
In the instance that we are not using a Cisco then the
Calling-Station-Id is populated and client-mac-address does not exist.
So, callingstationid is correct no matter what.
No rewrites necessary!
Thanks!
Bryan -
Bryan Campbell wrote:
> O.K.
>
> What is the best way to accomplish the following . . .
>
> For a specific NAS-IP-Address=10.10.10.10
>
> Accounting packet includes the following . . .
> %{Calling-Station-Id}(does not exist)
> %{client-mac-address}=0000.0000.0000
>
> Need to write the value for . . .
> %{client-mac-address} into %{Calling-Station-Id}
> . . . so that the Calling-Station-Id will be written
> to the MySQL database radacct table.
>
> Bryan -
>
>
>
>
>
> Michael Bowe wrote:
>>> One of the attributes we are after is the client-mac-address from
>>> Cisco-AVPair = "client-mac-address=0012.3fb2.15d2".
>>>
>>> So far it is now converted to an attribute of its own
>>> client-mac-address=0012.3fb2.15d2. (by setting cisco-av-hack to yes
>>> and
>>> adding some attributes to the dictionary)
>>>
>>> Now to get it to be the callingstationid. Looks like that will require
>>> that attr_rewrite be used to redefine callingstationid to be the mac
>>> address defined as client-mac-address.
>>>
>>> Still reading a bit on how to get that done. Anyone have any
>>> suggestions? If so, please send them along.
>>
>> Hi,
>>
>> Tweak the freeradius conf
>> with_cisco_vsa_hack = yes
>>
>> Add dictionary entry something like this :
>> ATTRIBUTE client-mac-address 3004 string
>>
>> Give the dialup.conf a bit of a tweak, so if calling-station-id isn't
>> available, try putting the client-mac-address instead :
>> Change '%{Calling-Station-Id}'
>> To
>> '%{Calling-Station-Id:-%{client-mac-address}}'
>>
>> Michael.
>>
>> -
>> List info/subscribe/unsubscribe? See
>> http://www.freeradius.org/list/users.html
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
More information about the Freeradius-Users
mailing list