defining a specified data limit for users without using hotspot or user manager

Hello my friends..!
so is it possible to define a specific amount of data for evey users without using usermanger or hotspot..?
i mean i want to give user1 that have the IP address 192.168.10.10/32 = 2 G for month and user2 that have the IP address 192.168.10.11/32= 4G for month
is it possible tp apply this..?
so please notice that this not queue..! i dont want to limit speed for download and upload, but i want to define a specific data packet for every user.

You could use passthrough rules as counters, but then you’d need some mechanism to check whether limits are exceeded. Which probably shouldn’t be too difficult to do using scripting. But unsolved problem is that if router reboots, counters will reset, so you’d need something else that would periodically save current state. Which is probably doable too, but as whole it’s getting a bit complicated.

Hi Sob..!
thanks for your replay ..!
please can you give an example on how to do that using script..?
i mean what i have to write in script menu in order to achieve that..? is there is a guide for that..?

I’m afraid not. RouterOS scripting doesn’t like me. I can manage to produce something when I need it, but I always suffer while doing it, so otherwise I tend to avoid it. :slight_smile:

If you’re at least a bit into programming, you can check official docs:

https://help.mikrotik.com/docs/display/ROS/Scripting
https://help.mikrotik.com/docs/display/ROS/Scripting+examples

And there’s even more source of inspiration here:

:scissors: Rextended Fragments of Snippets

We must be twins? Were you adopted. '=P

I think more people have this in common. Italian cats seem to like it, but that’s some weird exception.

I think one needs to be in a very high state of euphoria supported by high quality vino.

Hello Mr anav..!
so while i am looking around in queue type, i find this CE threshold, so i dont actually know if this related at all to our discussion as tiltled above, but from your experience is there is
a queue kind in this list that we can use to achieve my scenario..?
aslo i didnt find any explination in mikrotik documentation about this CE threshold thing.
so please advise me..!
queue kind.PNG
codel.PNG

I have not played with queues sorry, I have fat pipes and dont worry about limits.

@Sob, @anav, thanks for the mention :slight_smile:

Sorry @Techsystem: in this case it takes too much work
both to understand what exactly is needed, and to implement it afterwards.

dont worry..! if i had my own MT router i wouldnt ask this questions that only need someone to test , hope to have one..:frowning:).

If you don’t have MT router and want to play with RouterOS, you can use (free) CHR.

Marks packets above a configured threshold with ECN. (congestion encountered)

I use 1600000 µs = 1600 ms = 1.6 second. YMMV