Reducing the bandwidth after an amount of traffic

Hi all,

I want to reducing the speedy of my customers after some amount of traffic in one day and increase the bandwidth again after the midnight.

How can I do it?

Thanks

Fabrício

Scripts that dynamically change the queues applied to the customers. Search the forum for them.

Generic answer, but you’re not giving any details so it’s hard to be more specific.

Additionally,
Time is available at /queue simple, you can directly create queue, which is working only for the specific time.
When /queue tree is used, time is available at /ip firewall mangle.

For the amount of traffic, it is only possible with scripts or using AAA (HotSpot with RADIUS server).

Hi sergejs,

Can I do this control with AAA (hotspot+radius) with mac authentication? If yes how can I do it?

And can I do it with pppoe+radius? If yes how can I do it?

Thanks,
Fabrício

  1. Yes, HotSpot MAC-authentication is completely the same as HotSpot username/password authentication (from RADIUS point of view).

Set login-by=mac, use MAC-address as HotSpot username.

  1. Yes, you can do it.
    What is the problem?
    Set /ppp aaa to use RADIUS and setup RADIUS server properly.

Ok I know how to setup the hotspot/pppoe with radius server, but I don’t know how to do the bandwidth reduction after a amount of bytes of download. How can I do it?

Regards,
Fabrício

This can be tricky but can give you an idea..
You can use the address-list attribute on the hotspot user profile for it;
make a PCQ queue for that address list (optional, but recommended)
make a firewall mangle for that address list that counts the bytes for the address and when it goes over the limit you choose, put it in another address list for 24h (make an exception for addresses that are already on this list)
make a PCQ queue lower for this address list



Here you go.
I’ve not much free time to write down the dummy code..