(RADIATOR) Add Called-Station-Id into accounting stop packet
Hugh Irvine
hugh at open.com.au
Thu Apr 18 17:31:22 CDT 2002
Hello Steve -
What does the PreAuthHook do? Can you send me a copy please? The simplest
thing is probably to have the hook add the Called-Station-Id into both the
authentication packets and the accounting packets.
Also note that you should use a ReplyHook with your AuthBy RADIUS clause to
allocate an IP address rather than running it with the Synchronous flag.
There is an example of how to do this in the Radiator 3.0 distribution in the
file "goodies/hooks.txt".
regards
Hugh
On Thu, 18 Apr 2002 20:16, Steve Rogers wrote:
> Hi,
>
> We have Radiator doing proxy radius and inserting Called-Station-Id into
> the access-request as no Called-Station-Id is set in the initial
> access-request.
>
> We need to add Called-Station-Id into an accounting stop packet for billing
> purposes. What is the best way to achieve this? Config below:
>
> <AddressAllocator SQL>
> Identifier bbAllocator
> DBSource dbi:mysql:Radiator
> DBUsername xxxx
> <AddressPool bbPool >
> Subnetmask 255.255.255.255
> Range 10.6.4.200 10.6.4.225
> </AddressPool>
> </AddressAllocator>
>
> <Handler Realm=xxxxxxx>
> PreAuthHook file:called-station-bb.hook
> RewriteUsername s/^([^@]+).*/$1/
> AcctLogFileName %L/%Y%m%d-1.log
> AuthByPolicy ContinueWhileAccept
> <AuthBy RADIUS>
> Synchronous
> Host x.x.x.x
> Secret xxxxxxxx
> AuthPort xxxx
> AcctPort xxxx
> StripFromReply Framed-IP-Address, Huntgroup-Name
> </AuthBy>
> <AuthBy DYNADDRESS>
> Allocator bbAllocator
> PoolHint bbPool
> </AuthBy>
> </Handler>
>
> Thanks
> Steve
--
Radiator: the most portable, flexible and configurable RADIUS server
anywhere. Available on *NIX, *BSD, Windows 95/98/2000, NT, MacOS X.
-
Nets: internetwork inventory and management - graphical, extensible,
flexible with hardware, software, platform and database independence.
===
Archive at http://www.open.com.au/archives/radiator/
Announcements on radiator-announce at open.com.au
To unsubscribe, email 'majordomo at open.com.au' with
'unsubscribe radiator' in the body of the message.
More information about the radiator
mailing list