<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-874">
<META content="MSHTML 6.00.5730.11" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>by default with my method on Ubuntu 8.10
Server</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I create directory /etc/ppp/radius and copy
radiusclient config to that</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>list of files </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>dictionary</FONT></DIV>
<DIV><FONT face=Arial size=2>issue</FONT></DIV>
<DIV><FONT face=Arial size=2>port-id-map</FONT></DIV>
<DIV><FONT face=Arial size=2>radiusclient.conf</FONT></DIV>
<DIV><FONT face=Arial size=2>realms</FONT></DIV>
<DIV><FONT face=Arial size=2>servers</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>and config the file /etc/ppp/pptpd-options to point
the radius config file.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>plugin radius.so<BR>plugin
radattr.so<BR>radius-config-file
/etc/ppp/radius/radiusclient.conf<BR></FONT></DIV>
<DIV><FONT face=Arial size=2> </DIV></FONT>
<DIV><FONT face=Arial size=2>when connect you with get the
radattr.ppp0</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>and you will see the </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial
size=2>WISPr-Bandwidth-Max-Up ... </FONT></DIV>
<DIV><FONT face=Arial
size=2>WISPr-Bandwidth-Max-Down ...</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>and you can cat the value of attribute and set
to </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>wondershaper by</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>wondershaper $1 $down $up</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial
size=2>Cheer!!
</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>ขอแสดงความนับถือ<BR>Best Regards</DIV>
<DIV> </DIV>
<DIV>ชวน จุดาบุตร<BR>Chuan Chudabut<BR>66-081-7499093,
66-02-691-6382<BR>============================================================================================================<BR><A
href="http://www.EasyZoneCorp.net">http://www.EasyZoneCorp.net</A> - EasyZone
Radius Billing 5.0, EasyZone PPPoE Billing 2.5, EasyZone Hotspot Billing 2.7,
EasyZone VPN Billing 1.0, EasyZone File Server</DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=nev@itsnev.co.uk href="mailto:nev@itsnev.co.uk">Neville</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=freeradius-users@lists.freeradius.org
href="mailto:freeradius-users@lists.freeradius.org">freeradius-users@lists.freeradius.org</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, June 10, 2009 4:45
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: PPTPD Bandwidth
Shaping</DIV>
<DIV><BR></DIV>
<DIV><FONT face=Arial size=2>Hi Chuan,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thx for reply amongst this heated discussion on
DHCP....</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I've currently got install freeRadius 2.1.6 and
Poptop 2.4.4 and I see no dictionary file in /etc/ppp/radius/dictionary. In
fact I have no radius directory in /etc/ppp</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>All freeradius dictionary's are located in
/usr/share/freeradius....</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>The question is, how can I pass
WISPr-Bandwidth-Max-Down to ip-up.local as I was hoping it would be in in
/var/run/radattr.pppX, but all thats in there is:-</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><FONT face=Courier><BR>Framed-IP-Address
192.168.0.70<BR>Session-Timeout 1646690<BR>MS-CHAP2-Success
7S=A8CF4948283C1C4BE11682787ADBD0EA9852E691<BR>MS-MPPE-Recv-Key
\220\265J\372\250\336\342nD\226o\272\007\030I\372'\313\267@J\36<BR>1\370\266\212?_\377\262\324\215X\274\357<BR>MS-MPPE-Send-Key
\235\342\367\325\243\210\020\217|H\314WkU0\201\352\374\364\023\<BR>220\220\315z\364\277\254\361\356["Ce\002<BR>MS-MPPE-Encryption-Policy
<BR>MS-MPPE-Encryption-Types</FONT> </FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><STRONG>However we can see
WISPr-Bandwidth-Max-Down being sucessfully passed to
FreeRadius?</STRONG></FONT></DIV>
<DIV><FONT size=2><STRONG></STRONG></FONT> </DIV>
<DIV><FONT face=Courier size=2></FONT> </DIV>
<DIV><FONT face=Courier size=2>++[exec] returns noop<BR>Sending Access-Accept
of id 198 to 127.0.0.1 port
53025<BR> Framed-IP-Address :=
192.168.0.70<BR>
WISPr-Bandwidth-Max-Down :=
512000<BR> Session-Timeout =
1646690<BR> MS-CHAP2-Success =
0x37533d41384346343934383238334331433442453131363832373837414442443045413938353245363931<BR>
MS-MPPE-Recv-Key =
0x0b660d35b65015368d107e57d97e2b55<BR>
MS-MPPE-Send-Key =
0xc78164fb4478212fbd0d198389ee2d52<BR>
MS-MPPE-Encryption-Policy =
0x00000001<BR>
MS-MPPE-Encryption-Types = 0x00000006<BR>Finished request 3.<BR>Going to the
next request<BR>Waking up in 4.9 seconds.<BR>Cleaning up request 3 ID 198 with
timestamp +244<BR>Ready to process requests.<BR>rad_recv: Accounting-Request
packet from host 127.0.0.1 port 38836, id=199,
length=98<BR> Acct-Session-Id =
"4A2EE3A302FB00"<BR> User-Name =
"test99"<BR> Acct-Status-Type =
Start<BR> Service-Type =
Framed-User<BR> Framed-Protocol =
PPP<BR> Acct-Authentic =
RADIUS<BR> NAS-Port-Type =
Async<BR> Framed-IP-Address =
192.168.0.70<BR> NAS-IP-Address =
127.0.0.1<BR> NAS-Port =
0<BR> Acct-Delay-Time = 0<BR>+-
entering group preacct {...}<BR>++[preprocess] returns ok</FONT></DIV>
<DIV><FONT face=Courier size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I would love to use WISPr as suggested, but
cannot find out how to get this to work.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Currently I've just defaulted EVERYONE to the
same bandwidth restrictions by using the follow script in
/etc/ppp/ip-up.local</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Courier size=2><STRONG>ip-up.local</STRONG><BR></FONT></DIV>
<DIV><FONT face=Courier size=2>DOWNSPEED=256<BR>UPSPEED=768<BR>
/sbin/tc qdisc del dev $1 root >
/dev/null<BR> /sbin/tc qdisc del dev $1 ingress >
/dev/null<BR>##### speed server->client<BR> if [ "$UPSPEED" != "0" ]
;<BR> then<BR> /sbin/tc qdisc add dev $1 root handle
1: htb default 20 r2q 1<BR> /sbin/tc class add dev $1 parent
1: classid 1:1 htb rate ${UPSPEED}kbit burst 4k<BR> /sbin/tc
class add dev $1 parent 1:1 classid 1:10 htb rate ${UPSPEED}kbit burst 4k prio
1<BR> /sbin/tc class add dev $1 parent 1:1 classid 1:20 htb
rate ${UPSPEED}kbit burst 4k prio 2<BR> /sbin/tc qdisc add
dev $1 parent 1:10 handle 10: sfq perturb 10 quantum
1500<BR> /sbin/tc qdisc add dev $1 parent 1:20 handle 20:
sfq perturb 10 quantum 1500<BR> /sbin/tc filter add dev $1
parent 1:0 protocol ip prio 10 u32 match ip tos 0x10 0xff flowid
1:10<BR> /sbin/tc filter add dev $1 parent 1:0 protocol ip
prio 10 u32 match ip protocol 1 0xff flowid 1:10<BR>
/sbin/tc filter add dev $1 parent 1: protocol ip prio 10 u32 match ip protocol
6 0xff match u8 0x05 0x0f at 0 match u160x0000 0xffc0 at 2 match u8 0x10
<BR>0xff at 33 flowid 1:10<BR> fi <BR>##### speed
client->server<BR> if [ "$DOWNSPEED" != "0" ] ;<BR>
then<BR> /sbin/tc qdisc add dev $1 handle ffff:
ingress<BR> /sbin/tc filter add dev $1 parent ffff: protocol
ip prio 50 u32 match ip src 0.0.0.0/0 police rate ${DOWNSPEED}kbit burst 12k
drop flowid :1<BR> fi<BR>/sbin/ifconfig $1 mtu 1400</FONT></DIV>
<DIV><FONT face=Courier size=2></FONT> </DIV>
<P>
<HR>
<P></P>-<BR>List info/subscribe/unsubscribe? See
http://www.freeradius.org/list/users.html</BLOCKQUOTE></BODY></HTML>