[ previous ] [ next ] [ threads ]
 From:  "Jason Brunk" <jbrunk at wthosting dot com>
 To:  <m0n0wall dash dev at lists dot m0n0 dot ch>
 Subject:  some radius questions
 Date:  Tue, 19 Oct 2004 16:42:18 -0400
Hi, I am new to the group.  I have an existing radius server set up that I
used for a hotspot router that seems to be working great.  The system
currently works like this.
Data Stored in MySQL DB (w/accounting)
1.  When the users authenticates, the sql statement takes an attribute
"Max-All-Session"  This value is the grand total number of seconds the user
can use on our system.  Durring the authentication process, our radius
server queries the accounting table to see how much was used, then subtracts
the used from "Max-All-Session".  Remainder - how much they can still use.
When sending back the Access-Accept (i think that is what the OK response
is).  It also sends back a "Session-Timeout".  This session timeout tells
the box "this is how much time they have".   So what I would like to do is
do the same thing, i would like to have the m0n0wall time the user out after
Session-Timeout seconds have passed.   I would also like to be able to have
the popup logout window display how much time they have with a stupid little
javascrpt countdown or something.  
2.  During the authentication, i would like to have the accounting packet
also pass in the attribute "CalledStationID"  this would be nothing more
than the mac address of the wan port on the m0n0wall.  I would think this
would be fairly simple.  
If anyone can give me any help or guidance that would be great.