Mikrotik + Freeradius

I need solution for trafic shapping pppoe users on mikrotik…

We have Freeradius which is radius server with SQL database and Mikrotik 2.9.2 which is pppoe server.
We need some script or solution how can we limit traffic on radius groups (we need download to slow on 1/2 after 10MB example).

And we have one more problem…
When user is downloading he cannot surf at all, he can`t open any page…

Help, please…

Hi!
Providing that you use the sql-databaseformat wich comes with freeradius:

make an entry in “usergroup”:

UserName GroupName
test family

and in “radgroupreply”
GroupName Attribute op Value
family Session-Timeout = 43200
family Ascend-Data-Rate = 512000
family Ascend-Xmit-Rate = 1024000

If all parts working well you can see under “simple queues” on your MT-router the entry for test with 512kup/1024kdown. The session will be interruptet after 12h

hope it helps!

What does this script do?

Maybe my question wasn`t wright…

I need script for my pppoe clients, i need to limit them internet traffic… Example, user connects on 64k/64k he can surf all time normal, but when he starts to use download, after download of 10 MB his traffic must change on 40k/40k. Is it possible?


Thanks…