[RP-PPPoE] radattr.so cant receive values from radius
Tianu Mihai
mihai.tianu at gmail.com
Tue Sep 7 01:46:53 EDT 2010
HTB can be used only for egress shaping ( traffic that leaves the
interface).
For ingress shaping ( traffic that comes in ) you'll have to use ingress
qdisc.
[http://www.ibiblio.org/pub/Linux/docs/howto/other-formats/html_single/Adv-Routing-HOWTO.html#LARTC.ADV-QDISC.INGRESS]
Also you might add SFQ as queueing discipline to your htb leaf
classes, otherwise your clients will experience long delays when they
exceed their bandwidth and want to start new connections.
Look at the wondershaper script. It's what you're looking for, just cut
the "non relevant" parts.
~Mihai
PS1: Also, for a large number of clients you can use IMQ ( intermediate
queueing device ) because it supports egress and ingress shaping and you
can take the advantage of sharing the total link bandwidth among the
clients.
On 09/06/2010 11:34 PM, Mike Tesliuk wrote:
> My bandwidth now is this.
>
>
> (/etc/ppp/ip-up.d/bandwidth)
>
> #!/bin/bash
> # Variables comming from pppd
> # PPP_IFACE PPP_TTY PPP_SPEED PPP_LOCAL PPP_REMOTE PPP_IPPARAM
>
> # Getting the RP-Upstream-Speed-Limit from radius (integer value)
> UPLOAD=$(cat /var/run/radattr.$PPP_IFACE | grep -i
> RP-Upstream-Speed-Limit | awk '{print $2}')
>
.....
More information about the RP-PPPoE
mailing list