Community discussions

MikroTik App
 
sojicmk
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 52
Joined: Fri May 04, 2007 4:32 pm

Radius and queues

Thu Apr 10, 2008 7:19 pm

I have MT as pppoe server with freeradius.

I want to limit internet speed, but also I want to DO NOT limit speed to few IP classes.

I do it with simple queues.

For each client IP I have simple queue (and mangle, to "separate" internet and "local IP classes")

I have around 500 users connected and 3x254 simple queue rules, which I think, use CPU 100%.

Is this possible without simple queues?

Note: I have 3 types of internet speed.
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: Radius and queues

Fri Apr 11, 2008 12:41 am

Greetings!

Are your clients you wish to restrict on a wireless network or ethernet? There are some standard bandwidth limiters, but I have never tried them on an ethernet connection, just wireless.
WISPr-Bandwidth-Max-Up
WISPr-Bandwidth-Max-Down

I set them in the radgroupreply table and they are applied by user group. I use only two groups, "users" and "managers" (very creative names, don't you agree?). managers get more bandwidth.

This is backwards from the bandwidth throttling done by the wireless interface. These are from the client point-of-view, rather than the AP. They are in bps, so 256K is 256000.
 
sojicmk
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 52
Joined: Fri May 04, 2007 4:32 pm

Re: Radius and queues

Fri Apr 11, 2008 1:47 am

No, it is not wireless.

It is pppoe (lan).
 
User avatar
HarvSki
Member
Member
Posts: 395
Joined: Fri May 28, 2004 3:37 pm
Location: London, UK

Re: Radius and queues

Fri Apr 11, 2008 10:34 am

simple queues set up using the RADIUS server will work on any PPoE connection it doesn't matter what type of interface it is running over e.g. WLAN or Ethernet
 
sojicmk
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 52
Joined: Fri May 04, 2007 4:32 pm

Re: Radius and queues

Fri Apr 11, 2008 10:59 am

How to set simple queue from radius?
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: Radius and queues

Fri Apr 11, 2008 11:30 am

Hi HarvSki.

Excuse my ignorance, but are those two WISPr commands considered "simple queues" to MT? If so, that is a very good thing for me.
 
User avatar
HarvSki
Member
Member
Posts: 395
Joined: Fri May 28, 2004 3:37 pm
Location: London, UK

Re: Radius and queues

Fri Apr 11, 2008 11:47 am

 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: Radius and queues

Fri Apr 11, 2008 3:21 pm

Thanks HarvSki.

To sojicmk:

I see most of MikroTik's variables (including rate limiting) can be sent from your RADIUS database. See the link to the section of the docs that HarvSki posted. You must add the MikroTik dictionary to the radius dictionary to use any of them tho.

EDIT: That is what the docs say. I use FreeRADIUS, and I see that MikroTik has a dictionary of its most popular variables already added by default, including the rate limiting variables.
 
sojicmk
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 52
Joined: Fri May 04, 2007 4:32 pm

Re: Radius and queues

Fri Apr 11, 2008 6:49 pm

If I use rate limiting I will limit all the traffic.

I want 2 types of limits. It is not so simple just to use rate limiting.
 
User avatar
HarvSki
Member
Member
Posts: 395
Joined: Fri May 28, 2004 3:37 pm
Location: London, UK

Re: Radius and queues

Fri Apr 11, 2008 6:53 pm

not a problem, just put in some static simple queue at the top of the list for you special IPs, I do this for my mail server so people can send faster than their upload speed allows - queues are matched sequentially like the firewall.

Who is online

Users browsing this forum: gianry, vingjfg, yonutm and 32 guests