Bandwidth shaping and accounting in linux with radius

Hello All,

I currently have a radius server running and I would like to enable bandwidth shaping and accounting using a linux server as a gateway.  I've researched for solutions online but not found exactly what I'm after.  Can anyone point me in the right direction?  This setup would be similar to what is required by and ISP.

As far as I know so far, I would use IPTables to control routing and possible qdisc for shaping?  But I have no idea how I could enable shaping depend on the client or using Radius in conjunection with the server for authentication and accounting.

The preferred flavour of linux would be Ubuntu server but open to suggestion.

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Monis MontherSystem ArchitectCommented:
To do traffic shapping us a package called TC  (traffic control), I am not sure if it integrates with RADIUS, but I have used it to do traffic shapping for both ingress and egress, and limit bandwidth per IP or Net

This is a good how to


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Anubis2005Author Commented:
Hi small_student;

The reason I was wanting to use Radius was that we have a database of users (MS-SQL) which I want to authenticate users against and also collect accounting information on how much users are uploading and downloading.

I'll have a look over that link but still looking for something that more specifically covers my requirements.

Thanks for the quick reply.
Anubis2005Author Commented:
This problem was solved with the help of Perl, many CPAN modules, IPTABLES and TC.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.