Fwd: Re: [FreeRADIUS and PPPd] How to limit the bandwidth?

Charles Price cpwp at w3z.co.uk
Thu Jul 21 15:09:44 CEST 2005



----------  Forwarded Message  ----------

Subject: Re: [FreeRADIUS and PPPd] How to limit the bandwidth?
Date: Thursday 21 Jul 2005 14:02
From: Charles Price <charlie.price at w3z.co.uk>
To: FreeRadius users mailing list <freeradius-users at lists.freeradius.org>

> 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
tunnels.

I found that routing all traffic through an IMQ ( http://www.linuximq.org )
rather than on a ppp interface speeds things up a lot.

HTH

Charlie Price

-------------------------------------------------------



More information about the Freeradius-Users mailing list