Per Download Limit (Mikrotik-Rate-Limit )

I want to bill my clients according to what they are downloading. I am using radius (freeradius) to authenticate my clients from MT HotSpot.

Just I want to understand! If I put Mikrotik-Rate-Limit in the users account (users file), will HotSpot update internal database on the remaining bytes users has to download when the user has disconneted?

When the user connects again, will the Hotspot has record of howmany bytes are available for this user?

When the Hotspot Box is restarted! will the router remember remaining bytes for each user?

Or can any one advice me on the best way to limit users according to bytes downloaded?


Stephen

As RADIUS is used, accounting data is stored remotely and all options are related to the RADIUS server (it means you may restart the router).
These attributes should be used to set total bytes download/upload for the users,

Mikrotik-Recv-Limit-Gigawords

Mikrotik-Xmit-Limit-Gigawords

Just to make it clear to me..

If say in radius(freeradius) i set

Mikrotik-Recv-Limit-Gigawords = 40

Will freeradius automatically deduct downloaded bytes used by client from the Mikrotik-Recv-Limit-Gigawords?

As far as I know, when Hotspot request for authentication from freeradius, A reply packet will always be the same Mikrotik-Recv-Limit-Gigawords = 40.


Stephen