[RP-PPPoE] radattr.so cant receive values from radius
Mike Tesliuk
mike at ultra.net.br
Mon Sep 6 12:51:01 EDT 2010
I read this thread before and i have the script to do the shapping on
ppp interface, but the question is that i dont receive the parameter
on radattr.ppp0
I have the dictionary how can you see below, the radius send the
RP-Upstream-Speed-Limit but i don have this information on radattr
file.
# -*- text -*-
##############################################################################
#
# Roaring Penguin attributes
#
# $Id: dictionary.roaringpenguin,v 1.3 2007/02/26 09:57:41 aland Exp $
#
##############################################################################
VENDOR Roaring-Penguin 10055
BEGIN-VENDOR Roaring-Penguin
# 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
# Send a HURL
ATTRIBUTE RP-HURL 3 string
# Send a MOTM
ATTRIBUTE RP-MOTM 4 string
# Maximum sessions per user
ATTRIBUTE RP-Max-Sessions-Per-User 5 integer
END-VENDOR Roaring-Penguin
the last interaction on the thread was:
You need to have the dictionary available to rp-pppoe.
Also, rp-pppoe writes the attributes to the /var/run/radattr.ppp* file
but it doesn't do anything with them. The PPPoE code itself has
no mechanism for rate-limiting; you need to use tc or some other
mechanism to implement the rate limits.
Regards,
David.
So, need i use another dictionary file ?
PS:
I put on my /etc/radiusclient/dictionary the value
# Upstream speed limit in kb/s
ATTRIBUTE RP-Upstream-Speed-Limit 2001 integer
# Downstream speed limit in kb/s
ATTRIBUTE RP-Downstream-Speed-Limit 2002 integer
but i cant receive this yet.
2010/9/6 Tianu Mihai <mihai.tianu at gmail.com>:
> See this thread :
> http://lists.roaringpenguin.com/pipermail/rp-pppoe/2010q1/000100.html
>
> ~Mihai
>
> On 09/06/2010 07:19 PM, Mike Tesliuk wrote:
>>
>> Hi,
>>
>> Im trying to implement a pppoe-server with radius authentication and
>> bandwidth control, i get all work fine except the reply for
>> bandwidth, so, i need to set the bandwidth per user, im trying to set
>> on radius the value to the user bandwidth, my radius answer if the
>> correct option.
>>
>>
>> Sending Access-Accept of id 35 to 127.0.0.1 port 48804
>> Framed-Protocol = PPP
>> Framed-Compression = Van-Jacobson-TCP-IP
>> RP-Downstream-Speed-Limit = 64
>> RP-Upstream-Speed-Limit = 64
>> Framed-IP-Address = 187.109.35.137
>> Framed-IP-Netmask = 255.255.255.0
>>
>>
>>
>> but when i read the radattr.ppp0 file i get
>>
>> cat /var/run/radattr.ppp0
>> Framed-Protocol PPP
>> Framed-Compression Van-Jacobson-TCP-IP
>> Framed-IP-Address 187.109.35.137
>> Framed-IP-Netmask 255.255.255.0
>>
>>
>> I need to get this value to make my TC rules.
>>
>> somebody know how can i solve this issue ?
>>
>> Thanks
>>
>> --
>> Mike Tesliuk
>> Suporte Técnico Ultranet Telecom
>> http://www.ultranet.com.br
>> suporte at ultra.net.br
>> +55 11 3544 4444
>> +55 21 2460 4444
>> _______________________________________________
>> RP-PPPoE mailing list
>> RP-PPPoE at lists.roaringpenguin.com
>> http://lists.roaringpenguin.com/cgi-bin/mailman/listinfo/rp-pppoe
>>
>
>
>
>
--
Mike Tesliuk
Suporte Técnico Ultranet Telecom
http://www.ultranet.com.br
suporte at ultra.net.br
+55 11 3544 4444
+55 21 2460 4444
More information about the RP-PPPoE
mailing list