Re: Parameter to limit user traffic in RouterOS
**Thanks you so much. On Wed, Apr 8, 2009 at 11:54 PM, Russell Tester wrote: > That's also a tad incorrect as 6 Gagawords is more like 24GB. > > You may also find this snippet from my dictionary.mikrotik useful: > > ATTRIBUTE Mikrotik-Recv-Limit-Gigawords 14 integer > ATTRIBUTE Mikrotik-Xmit-Limit-Gigawords 15 integer > ATTRIBUTE Mikrotik-Total-Limit17 integer > ATTRIBUTE Mikrotik-Total-Limit-Gigawords 18 integer > > 17 & 18 are relatively new and do as you'd expect, limit the total > traffic as oppose to in or out. > > --Russ > > > -Original Message- > From: > freeradius-users-bounces+russell=serverworks.co...@lists.freeradius.org > [mailto:freeradius-users-bounces+russell > =serverworks.co...@lists.freerad > ius.org] On Behalf Of Vegard Svanberg > Sent: Thursday, 9 April 2009 4:23 a.m. > To: FreeRadius users mailing list > Subject: Re: Parameter to limit user traffic in RouterOS > > * HugLeo [2009-04-08 15:59]: > > >I'was reading a mk documentation which website is > >[1]http://www.mikrotik.com/testdocs/ros/3.0/aaa/ppp.php and I've > found > >in the session Monitoring Active PPP Users: > >limit-bytes-in (read-only: integer) - maximal amount of bytes the > user > >is allowed to send to the router > >limit-bytes-out (read-only: integer) - maximal amount of bytes the > >router is allowed to send to the client > > You would have figured this out pretty easily by reading the docs, but > you'd just do (I assume you use the users file as backend): > > usernameUser-Password == "foo" >Mikrotik-Recv-Limit-Gigawords := "6", >Mikrotik-Xmit-Limit-Gigawords := "6" > > BTW, MT's 3.0 doc is incomplete. Read the 2.9 manual (or the wiki) and > check the "RADIUS client" topic. > > >Are there a way to send that to RouterOS using radclient? > > Not sure what you mean by using radclient to send something to RouterOS. > Radclient will talk to the RADIUS server, not another client. > > -- > Vegard Svanberg [*tak...@irc (EFnet)] > > - > List info/subscribe/unsubscribe? See > http://www.freeradius.org/list/users.html > > - > List info/subscribe/unsubscribe? See > http://www.freeradius.org/list/users.html > -- -hUgLeO-♑ - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
RE: Parameter to limit user traffic in RouterOS
That's also a tad incorrect as 6 Gagawords is more like 24GB. You may also find this snippet from my dictionary.mikrotik useful: ATTRIBUTE Mikrotik-Recv-Limit-Gigawords 14 integer ATTRIBUTE Mikrotik-Xmit-Limit-Gigawords 15 integer ATTRIBUTE Mikrotik-Total-Limit17 integer ATTRIBUTE Mikrotik-Total-Limit-Gigawords 18 integer 17 & 18 are relatively new and do as you'd expect, limit the total traffic as oppose to in or out. --Russ -Original Message- From: freeradius-users-bounces+russell=serverworks.co...@lists.freeradius.org [mailto:freeradius-users-bounces+russell=serverworks.co...@lists.freerad ius.org] On Behalf Of Vegard Svanberg Sent: Thursday, 9 April 2009 4:23 a.m. To: FreeRadius users mailing list Subject: Re: Parameter to limit user traffic in RouterOS * HugLeo [2009-04-08 15:59]: >I'was reading a mk documentation which website is >[1]http://www.mikrotik.com/testdocs/ros/3.0/aaa/ppp.php and I've found >in the session Monitoring Active PPP Users: >limit-bytes-in (read-only: integer) - maximal amount of bytes the user >is allowed to send to the router >limit-bytes-out (read-only: integer) - maximal amount of bytes the >router is allowed to send to the client You would have figured this out pretty easily by reading the docs, but you'd just do (I assume you use the users file as backend): usernameUser-Password == "foo" Mikrotik-Recv-Limit-Gigawords := "6", Mikrotik-Xmit-Limit-Gigawords := "6" BTW, MT's 3.0 doc is incomplete. Read the 2.9 manual (or the wiki) and check the "RADIUS client" topic. >Are there a way to send that to RouterOS using radclient? Not sure what you mean by using radclient to send something to RouterOS. Radclient will talk to the RADIUS server, not another client. -- Vegard Svanberg [*tak...@irc (EFnet)] - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: Parameter to limit user traffic in RouterOS
Yes, thanks. I was reading the incomplete MK 3.0 documentation. :) On Wed, Apr 8, 2009 at 1:23 PM, Vegard Svanberg wrote: > * HugLeo [2009-04-08 15:59]: > > >I'was reading a mk documentation which website is > >[1]http://www.mikrotik.com/testdocs/ros/3.0/aaa/ppp.php and I've > found > >in the session Monitoring Active PPP Users: > >limit-bytes-in (read-only: integer) - maximal amount of bytes the user > >is allowed to send to the router > >limit-bytes-out (read-only: integer) - maximal amount of bytes the > >router is allowed to send to the client > > You would have figured this out pretty easily by reading the docs, but > you'd just do (I assume you use the users file as backend): > > usernameUser-Password == "foo" >Mikrotik-Recv-Limit-Gigawords := "6", >Mikrotik-Xmit-Limit-Gigawords := "6" > > BTW, MT's 3.0 doc is incomplete. Read the 2.9 manual (or the wiki) and > check the "RADIUS client" topic. > > >Are there a way to send that to RouterOS using radclient? > > Not sure what you mean by using radclient to send something to RouterOS. > Radclient will talk to the RADIUS server, not another client. > > -- > Vegard Svanberg [*tak...@irc (EFnet)] > > - > List info/subscribe/unsubscribe? See > http://www.freeradius.org/list/users.html > -- -hUgLeO-♑ - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: Parameter to limit user traffic in RouterOS
* HugLeo [2009-04-08 15:59]: >I'was reading a mk documentation which website is >[1]http://www.mikrotik.com/testdocs/ros/3.0/aaa/ppp.php and I've found >in the session Monitoring Active PPP Users: >limit-bytes-in (read-only: integer) - maximal amount of bytes the user >is allowed to send to the router >limit-bytes-out (read-only: integer) - maximal amount of bytes the >router is allowed to send to the client You would have figured this out pretty easily by reading the docs, but you'd just do (I assume you use the users file as backend): usernameUser-Password == "foo" Mikrotik-Recv-Limit-Gigawords := "6", Mikrotik-Xmit-Limit-Gigawords := "6" BTW, MT's 3.0 doc is incomplete. Read the 2.9 manual (or the wiki) and check the "RADIUS client" topic. >Are there a way to send that to RouterOS using radclient? Not sure what you mean by using radclient to send something to RouterOS. Radclient will talk to the RADIUS server, not another client. -- Vegard Svanberg [*tak...@irc (EFnet)] - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Parameter to limit user traffic in RouterOS
I'm using RouterOS and radclient to pass parameter using PPP protocol. example: echo "User-Name := user" | radclient xx.xx.xx.xxy: port disconnect [secret] But now I need a parameter to limit user traffic of download/upload to 6 GB. If pppoe user connection reach that limit so connectios is droped. I'was reading a mk documentation which website is http://www.mikrotik.com/testdocs/ros/3.0/aaa/ppp.php and I've found in the session Monitoring Active PPP Users: limit-bytes-in (read-only: integer) - maximal amount of bytes the user is allowed to send to the router limit-bytes-out (read-only: integer) - maximal amount of bytes the router is allowed to send to the client Are there a way to send that to RouterOS using radclient? -- -hUgLeO-♑ - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html