Mikrotik-Total-Limit support?

Hi
I want to limit total limit bytes in mikrotik and find Mikrotik-Total-Limit was offered. I search through forum but I could not find if this attribute is supported or not.
Would you help me about that?

Thanks

http://wiki.mikrotik.com/wiki/Manual:RADIUS_Client#MikroTik_Specific_RADIUS_Attribute_Numeric_Values
MIKROTIK_TOTAL_LIMIT

But even this does not work for me!

what version? what circumstances (service, etc)?

I’m using RO 3.28.
What should I do to tell active services as you asked?

upgrade your OS (or just setup temporary 5.4 router with 24h ‘demo’ license) and recheck

But in wiki it is written that it applies to RouterOS: 2.9, v3, v4 .

So really is this problem! I can not buy license for new version or even upgrade temporary. Isn’t there any way to do this with this version!

http://forum.mikrotik.com/t/getting-the-most-out-of-this-forum/40983/1

Excuse me did i said something wrong! I just said it is been supposed to support. May be i should enable some module or something like that?

You need to give more details on what you’re trying to do, with an exact description of your configuration and network layout, together with what you’re expecting to happen, and what you’re observing. It’s not that you said something wrong, it’s that right now this thread contains literally no useful details from you. People can’t guess at what you’re trying to do, how you’re trying to do it, and what you’re seeing happen. You need to describe these things if you expect any help.

You want to limit total bytes in Mikrotik. Using what? Hotspots? PPPoE? Why doesn’t the Mikrotik-Total-Limit RADIUS attribute work for you? And so on.

On a side note, you don’t need to pay for any license fees to upgrade from 3.28 to 5.x. Upgrading the OS version is free. Only changing license levels costs money.

You should upgrade from 3.28 to 4.17 first, and only after that upgrade once again to 5.4 (if you wish).

You should upgrade from 3.28 to 4.17 first, and only after that upgrade once again to 5.4 (if you wish).

Oh sh.. I upgrade directly to 5.4 . Do that make me problem?
At first as wiki suggested I update my license and after that RO restarted and updated without any message or problem!

By the way you’re right about details:

I use PPPoE Server.
I upgraded to 5.4 and it isn’t yet limit total.

I don’t know what RADIUS you are using, but the attribute appears to be valid in the wiki. Chupaka gave you that link a few posts ago.

However, I do not have that value listed in my “dictionary.mikrotik”. If it isn’t in there, FreeRADIUS will not send it. Mine stops at this line:

ATTRIBUTE	Mikrotik-Xmit-Limit-Gigawords		15	integer

The wiki has these attributes that my dictionary does not have:

MIKROTIK_WIRELESS_PSK 	14988 	16 	
MIKROTIK_TOTAL_LIMIT 	14988 	17 	
MIKROTIK_TOTAL_LIMIT_GIGAWORDS 	14988 	18 	
MIKROTIK_ADDRESS_LIST 	14988 	19 	
MIKROTIK_WIRELESS_MPKEY 	14988 	20 	
MIKROTIK_WIRELESS_COMMENT 	14988 	21

Check the “/usr/share/freeradius/” directory and open “dictionary.mikrotik” with a text editor. See what yours has.

I’m using FreeRADIUS.

But mine sending it and I see when run FreeRADIUS with -X switch
Even it returns Mikrotik-Rate-Limit attribute and it works properly.

Here is what in dictionary.mikrotik

VENDOR		Mikrotik			14988

BEGIN-VENDOR	Mikrotik

ATTRIBUTE	Mikrotik-Recv-Limit			1	integer
ATTRIBUTE	Mikrotik-Xmit-Limit			2	integer

# this attribute is unused
ATTRIBUTE	Mikrotik-Group				3	string

ATTRIBUTE	Mikrotik-Wireless-Forward		4	integer
ATTRIBUTE	Mikrotik-Wireless-Skip-Dot1x		5	integer
ATTRIBUTE	Mikrotik-Wireless-Enc-Algo		6	integer
ATTRIBUTE	Mikrotik-Wireless-Enc-Key		7	string
ATTRIBUTE	Mikrotik-Rate-Limit			8	string
ATTRIBUTE	Mikrotik-Realm				9	string
ATTRIBUTE	Mikrotik-Host-IP			10	ipaddr
ATTRIBUTE	Mikrotik-Mark-Id			11	string
ATTRIBUTE	Mikrotik-Advertise-URL			12	string
ATTRIBUTE	Mikrotik-Advertise-Interval		13	integer
ATTRIBUTE	Mikrotik-Recv-Limit-Gigawords		14	integer
ATTRIBUTE	Mikrotik-Xmit-Limit-Gigawords		15	integer

# I added them
ATTRIBUTE	MIKROTIK_WIRELESS_PSK			16	string
ATTRIBUTE	MIKROTIK_TOTAL_LIMIT				17	integer
ATTRIBUTE	MIKROTIK_TOTAL_LIMIT_GIGAWORDS	18	integer
# MikroTik Values

VALUE	Mikrotik-Wireless-Enc-Algo	No-encryption		0
VALUE	Mikrotik-Wireless-Enc-Algo	40-bit-WEP		1
VALUE	Mikrotik-Wireless-Enc-Algo	104-bit-WEP		2

END-VENDOR	Mikrotik

‘Search’ rulez: http://forum.mikrotik.com/t/help-regarding-mikrotik-total-limit/38055/7

@Chupaka: Thanks! I’m not a PPP kinda guy.

@googerdi: Your FreeRADIUS should not return any value that is not in the dictionaries. I checked earlier with FreeRADIUS version 1 and just now with version 2, and neither will return a value for an attribute not listed in the dictionary. Not only that, it returns Access-Reject on the login request for that username.

But I added that attribute and FreeRADIUS return correct value for that attribute and access is granted.

Chupaka as the post said I have no way to use Total LIMIT with PPPoE Server ,right?

sounds like that