On Thu, Feb 20, 2003 at 06:07:01AM -0800, Ina Patricia Lopez wrote:
> hi!
> i want to implement pre-paid like dial-up access to my colleagues here
> at the office. just a simple 10hours, 15hours and 20hours usage. can i
> make use of xtradius and mysql? do you have any howto or guide on
> setting up xtradius and mysql? how does it check for the remaining
> time?
I suggest you look into freeradius or openradius (see the appropriate
.org sites). I haven't heard of xtradius in a long time. :) You would
have to have RADIUS clients (your remote access servers, or RASes e.g.
E1R2's, dialin modem pools, portslave machines) and servers to support
the newer versions of the RADIUS accounting protocols, specifically the
Session-Timeout attribute. This can get dicey if you have older
hardware (e.g. some telco RASes and old Livingston Portmasters).
You can easily determine how long someone has been connected from the
RADIUS accounting messages generated when they disconnect. Your RADIUS
server just deducts the time they've been connected from their entry in
the database. But what happens near the end of their credit? They can
remain connected indefinitely, because the older RADIUS protocols had no
provision for forcibly disconnecting someone from the RAS when time has
run out. That's what the Session-Timeout attribute does. Set it to the
total amount of time they have left when they connect, and the RAS takes
care of the rest. If they disconnect before time runs out, no harm
done. Their total credit just gets updated. If the RAS you're using
doesn't have Session-Timeout, then you'll need to manually disconnect
them, by using a method provided by the manufacturer (an SNMP command or
by telnetting into the RAS). Either way, it's a big mess.
--
Rafael R. Sevilla <dido at imperium dot ph> +63(2)8123151
Software Developer, Imperium Technology Inc. +63(917)4458925
"Under the cloud of threatening war, it is humanity hanging from
a cross of iron."
_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]
Fully Searchable Archives With Friendly Web Interface at http://marc.free.net.ph
To subscribe to the Linux Newbies' List: send "subscribe" in the body to
[EMAIL PROTECTED]