Fwd: Re: [FreeRADIUS and PPPd] How to limit the bandwidth?
---------- Forwarded Message ----------
Subject: Re: [FreeRADIUS and PPPd] How to limit the bandwidth?
Date: Thursday 21 Jul 2005 14:02
From: Charles Price <[hidden email]>
To: FreeRadius users mailing list <[hidden email]>
> I'm currently setting up FreeRADIUS as authentication/authorization backend
> for a PPPoE Server running with the ppp Daemon. I've managed to get the ppp
> Daemon to work with my working FreeRADIUS 1.0.3 Server but now have to
> solve another problem. Is it possible to limit the bandwidth the ppp
> channel allocated via an attribute in FreeRADIUS?
I use two Vendor Specific Atrributes (Bw-Up and Bw-Down - you need to edit
the dictionary files on both RADIUS server and PPPoE Concentrator) so that
RADIUS can manage bandwidth resources.
Once this is set up you can use the radattr plugin for pppd, which writes all
the received RADIUS attributes to /var/run/radattr.pppX - you can read this
from /etc/ppp/ip-up and use the data with tc to create bandwidth limited PPP
I found that routing all traffic through an IMQ ( http://www.linuximq.org )
rather than on a ppp interface speeds things up a lot.