# Mikrotik-Total-Limit support?

**URL:** <https://forum.mikrotik.com/t/mikrotik-total-limit-support/47440>\
**Category:** General\
**Created:** [May 29, 2011, 5:56pm UTC](https://forum.mikrotik.com/t/mikrotik-total-limit-support/47440 "2011-05-29T17:56:05Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![googerdi](https://forum.mikrotik.com/letter_avatar/googerdi/32/6_449c533f586939b6e5f246632a46421f.png) [@googerdi](https://forum.mikrotik.com/u/googerdi)\
**Post date:** [May 29, 2011, 5:56pm UTC](https://forum.mikrotik.com/t/mikrotik-total-limit-support/47440/1 "2011-05-29T17:56:05Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Chupaka](https://forum.mikrotik.com/user_avatar/forum.mikrotik.com/chupaka/32/215_2.png) [@Chupaka](https://forum.mikrotik.com/u/Chupaka)\
**Post date:** [May 30, 2011, 12:50pm UTC](https://forum.mikrotik.com/t/mikrotik-total-limit-support/47440/2 "2011-05-30T12:50:51Z")

</div>

[http://wiki.mikrotik.com/wiki/Manual:RADIUS\_Client#MikroTik\_Specific\_RADIUS\_Attribute\_Numeric\_Values](http://wiki.mikrotik.com/wiki/Manual:RADIUS_Client#MikroTik_Specific_RADIUS_Attribute_Numeric_Values)  
MIKROTIK\_TOTAL\_LIMIT

---

<div class="post-metadata">

**Author:** ![googerdi](https://forum.mikrotik.com/letter_avatar/googerdi/32/6_449c533f586939b6e5f246632a46421f.png) [@googerdi](https://forum.mikrotik.com/u/googerdi)\
**Post date:** [May 30, 2011, 6:17pm UTC](https://forum.mikrotik.com/t/mikrotik-total-limit-support/47440/3 "2011-05-30T18:17:45Z")

</div>

> [@Chupaka](#):
>
> [http://wiki.mikrotik.com/wiki/Manual:RADIUS\_Client#MikroTik\_Specific\_RADIUS\_Attribute\_Numeric\_Values](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!

---

<div class="post-metadata">

**Author:** ![Chupaka](https://forum.mikrotik.com/user_avatar/forum.mikrotik.com/chupaka/32/215_2.png) [@Chupaka](https://forum.mikrotik.com/u/Chupaka)\
**Post date:** [May 31, 2011, 8:07am UTC](https://forum.mikrotik.com/t/mikrotik-total-limit-support/47440/4 "2011-05-31T08:07:26Z")

</div>

what version? what circumstances (service, etc)?

---

<div class="post-metadata">

**Author:** ![googerdi](https://forum.mikrotik.com/letter_avatar/googerdi/32/6_449c533f586939b6e5f246632a46421f.png) [@googerdi](https://forum.mikrotik.com/u/googerdi)\
**Post date:** [May 31, 2011, 11:21am UTC](https://forum.mikrotik.com/t/mikrotik-total-limit-support/47440/5 "2011-05-31T11:21:13Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Chupaka](https://forum.mikrotik.com/user_avatar/forum.mikrotik.com/chupaka/32/215_2.png) [@Chupaka](https://forum.mikrotik.com/u/Chupaka)\
**Post date:** [May 31, 2011, 12:49pm UTC](https://forum.mikrotik.com/t/mikrotik-total-limit-support/47440/6 "2011-05-31T12:49:54Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![googerdi](https://forum.mikrotik.com/letter_avatar/googerdi/32/6_449c533f586939b6e5f246632a46421f.png) [@googerdi](https://forum.mikrotik.com/u/googerdi)\
**Post date:** [May 31, 2011, 6:08pm UTC](https://forum.mikrotik.com/t/mikrotik-total-limit-support/47440/7 "2011-05-31T18:08:13Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![fewi](https://forum.mikrotik.com/letter_avatar/fewi/32/6_449c533f586939b6e5f246632a46421f.png) [@fewi](https://forum.mikrotik.com/u/fewi)\
**Post date:** [May 31, 2011, 6:24pm UTC](https://forum.mikrotik.com/t/mikrotik-total-limit-support/47440/8 "2011-05-31T18:24:20Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![googerdi](https://forum.mikrotik.com/letter_avatar/googerdi/32/6_449c533f586939b6e5f246632a46421f.png) [@googerdi](https://forum.mikrotik.com/u/googerdi)\
**Post date:** [May 31, 2011, 8:00pm UTC](https://forum.mikrotik.com/t/mikrotik-total-limit-support/47440/9 "2011-05-31T20:00:27Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![fewi](https://forum.mikrotik.com/letter_avatar/fewi/32/6_449c533f586939b6e5f246632a46421f.png) [@fewi](https://forum.mikrotik.com/u/fewi)\
**Post date:** [May 31, 2011, 8:05pm UTC](https://forum.mikrotik.com/t/mikrotik-total-limit-support/47440/10 "2011-05-31T20:05:01Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![mangust](https://forum.mikrotik.com/letter_avatar/mangust/32/6_449c533f586939b6e5f246632a46421f.png) [@mangust](https://forum.mikrotik.com/u/mangust)\
**Post date:** [May 31, 2011, 8:21pm UTC](https://forum.mikrotik.com/t/mikrotik-total-limit-support/47440/11 "2011-05-31T20:21:09Z")

</div>

> [@fewi](#):
>
> … 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).

---

<div class="post-metadata">

**Author:** ![googerdi](https://forum.mikrotik.com/letter_avatar/googerdi/32/6_449c533f586939b6e5f246632a46421f.png) [@googerdi](https://forum.mikrotik.com/u/googerdi)\
**Post date:** [May 31, 2011, 9:01pm UTC](https://forum.mikrotik.com/t/mikrotik-total-limit-support/47440/12 "2011-05-31T21:01:16Z")

</div>

> 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!

---

<div class="post-metadata">

**Author:** ![googerdi](https://forum.mikrotik.com/letter_avatar/googerdi/32/6_449c533f586939b6e5f246632a46421f.png) [@googerdi](https://forum.mikrotik.com/u/googerdi)\
**Post date:** [May 31, 2011, 9:10pm UTC](https://forum.mikrotik.com/t/mikrotik-total-limit-support/47440/13 "2011-05-31T21:10:45Z")

</div>

By the way you’re right about details:

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

---

<div class="post-metadata">

**Author:** ![SurferTim](https://forum.mikrotik.com/letter_avatar/surfertim/32/6_449c533f586939b6e5f246632a46421f.png) [@SurferTim](https://forum.mikrotik.com/u/SurferTim)\
**Post date:** [May 31, 2011, 10:14pm UTC](https://forum.mikrotik.com/t/mikrotik-total-limit-support/47440/14 "2011-05-31T22:14:35Z")

</div>

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:

```plaintext
ATTRIBUTE	Mikrotik-Xmit-Limit-Gigawords 15	integer

```

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

```plaintext
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.

---

<div class="post-metadata">

**Author:** ![googerdi](https://forum.mikrotik.com/letter_avatar/googerdi/32/6_449c533f586939b6e5f246632a46421f.png) [@googerdi](https://forum.mikrotik.com/u/googerdi)\
**Post date:** [June 1, 2011, 3:28am UTC](https://forum.mikrotik.com/t/mikrotik-total-limit-support/47440/15 "2011-06-01T03:28:21Z")

</div>

> [@SurferTim](#):
>
> 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.

I’m using FreeRADIUS.

> [@SurferTim](#):
>
> However, I do not have that value listed in my “dictionary.mikrotik”. If it isn’t in there, FreeRADIUS will not send it.

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

```plaintext
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

```

---

<div class="post-metadata">

**Author:** ![Chupaka](https://forum.mikrotik.com/user_avatar/forum.mikrotik.com/chupaka/32/215_2.png) [@Chupaka](https://forum.mikrotik.com/u/Chupaka)\
**Post date:** [June 1, 2011, 9:05am UTC](https://forum.mikrotik.com/t/mikrotik-total-limit-support/47440/16 "2011-06-01T09:05:40Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![SurferTim](https://forum.mikrotik.com/letter_avatar/surfertim/32/6_449c533f586939b6e5f246632a46421f.png) [@SurferTim](https://forum.mikrotik.com/u/SurferTim)\
**Post date:** [June 1, 2011, 9:43am UTC](https://forum.mikrotik.com/t/mikrotik-total-limit-support/47440/17 "2011-06-01T09:43:44Z")

</div>

@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.

---

<div class="post-metadata">

**Author:** ![googerdi](https://forum.mikrotik.com/letter_avatar/googerdi/32/6_449c533f586939b6e5f246632a46421f.png) [@googerdi](https://forum.mikrotik.com/u/googerdi)\
**Post date:** [June 1, 2011, 10:42am UTC](https://forum.mikrotik.com/t/mikrotik-total-limit-support/47440/18 "2011-06-01T10:42:07Z")

</div>

> [@SurferTim](#):
>
> @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.

---

<div class="post-metadata">

**Author:** ![googerdi](https://forum.mikrotik.com/letter_avatar/googerdi/32/6_449c533f586939b6e5f246632a46421f.png) [@googerdi](https://forum.mikrotik.com/u/googerdi)\
**Post date:** [June 1, 2011, 10:50am UTC](https://forum.mikrotik.com/t/mikrotik-total-limit-support/47440/19 "2011-06-01T10:50:33Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Chupaka](https://forum.mikrotik.com/user_avatar/forum.mikrotik.com/chupaka/32/215_2.png) [@Chupaka](https://forum.mikrotik.com/u/Chupaka)\
**Post date:** [June 1, 2011, 11:27am UTC](https://forum.mikrotik.com/t/mikrotik-total-limit-support/47440/20 "2011-06-01T11:27:57Z")

</div>

> [@googerdi](#):
>
> Chupaka as the post said I have no way to use Total LIMIT with PPPoE Server ,right?

sounds like that

[Next page](https://forum.mikrotik.com/t/mikrotik-total-limit-support/47440.md?page=2)
