[RP-PPPoE] RP-Upstream-Speed-Limit in rp-pppoe

Pauca Bogdan paucab at gmail.com
Sat Jan 30 15:40:11 EST 2010


Hello,
I have the following setup
rp-pppoe 3.10
pppd 2.4.4
freeradius-server 2.1.4
mysql 5.0

I use radius and mysql to authenticate pppoe users, also I would like
to set from radius the speed of the pppoe connection. In radius
dictionaries I've found dictionary.roaringpenguin with the following
lines:

# Upstream speed limit in kb/s
ATTRIBUTE       RP-Upstream-Speed-Limit                 1       integer
 # Downstream speed limit in kb/s
ATTRIBUTE       RP-Downstream-Speed-Limit               2       integer
Radius passes settings fine, a radtest looks like this:
rad_recv: Access-Accept packet from host 127.0.0.1 port 1812, id=142, length=74
        Framed-IP-Address = 192.168.31.10
        Framed-Protocol = PPP
        Framed-Routing = Broadcast-Listen
        Framed-Compression = Van-Jacobson-TCP-IP
        RP-Upstream-Speed-Limit = 10240
        RP-Downstream-Speed-Limit = 10240
        Service-Type = Framed-User
But it seems that rp-pppoe doesn't recognise these options and when it
creates the interface:

# cat /var/run/radattr.ppp2
Framed-Protocol PPP
Framed-Compression Van-Jacobson-TCP-IP
Framed-IP-Address 192.168.31.10
Framed-Routing Broadcast-Listen
Service-Type Framed-User

Is rp-pppoe the problem? Does rp-pppoe need a patch to accept these
options? Or any ideeas how to limit interface speed beside tc ?
Thanks.


More information about the RP-PPPoE mailing list