Hello everyone, I have a request from a client to make a network that is based on limiting data consumption, just as it would be in telephony but in a small WLAN, does anyone have any idea if at mikrotik we can do it?
They want the connection to be limited when the device reaches 500MB of consumption.
Thanks!!!
bpwl
January 16, 2025, 4:44pm
2
doing it with “User Manager” , and “profile limts”
Wireless/wifi and hotspot use RADIUS (Enterprise with username or MAC based login) , same should apply for 802.1x
\
and the users have multiple profiles (eg small volume fast and a larger volume slow) (one OR other profile is actived, in sequence)
and profiles have multiple limitations (some are on volume per hour, some per day/week etc, AND all are activated and checked )
A little extract …(vertraagd = reduced speed= fair-use implementation)
User is limited for EAP wifi and Hotspot combined
TV-sets have separate limits (because TV cannot do EAP authentication)
/user-manager limitation
add download-limit=150000000000B name="150GBdown/50GBup/week eigenaars " \
reset-counters-interval=weekly reset-counters-start-time="2024-01-01 00:00:00" \
upload-limit=50000000000B
add download-limit=250000000000B name=250GBdown/80GBup/week \
reset-counters-interval=weekly reset-counters-start-time="2023-01-01 00:00:00" \
upload-limit=80000000000B
add download-limit=150000000000B name="extra 150GB/50GB wifi vertraagd" \
rate-limit-burst-rx=8000000B rate-limit-burst-threshold-rx=6000000B \
rate-limit-burst-threshold-tx=12000000B rate-limit-burst-time-rx=30s \
rate-limit-burst-time-tx=30s rate-limit-burst-tx=15000000B rate-limit-priority=\
8 rate-limit-rx=4000000B rate-limit-tx=11000000B reset-counters-interval=weekly \
reset-counters-start-time="2024-01-01 00:00:00" upload-limit=50000000000B
add download-limit=250000000000B name="extra 250GB/80GB wifi vertraagd_2" \
rate-limit-burst-rx=4000000B rate-limit-burst-threshold-rx=3000000B \
rate-limit-burst-threshold-tx=7000000B rate-limit-burst-time-rx=30s \
rate-limit-burst-time-tx=30s rate-limit-burst-tx=9000000B rate-limit-priority=8 \
rate-limit-rx=2000000B rate-limit-tx=6000000B reset-counters-interval=weekly \
reset-counters-start-time="2024-01-01 00:00:00" upload-limit=80000000000B
/user-manager profile
add name="profiel eigenaars" name-for-users=eigenaars validity=unlimited
add name="profiel extra wifi vertraagd" name-for-users="extra wifi" validity=unlimited
add name="profiel streaming" name-for-users="TV streaming" override-shared-users=1 validity=unlimited
add name="profiel extra wifi vertraagd_2" name-for-users="extra extra wifi" validity=unlimited
/user-manager profile-limitation
add limitation="150GBdown/50GBup/week eigenaars " profile="profiel eigenaars" weekdays=sunday,monday,tuesday,wednesday,thursday
add limitation="extra 150GB/50GB wifi vertraagd" profile="profiel extra wifi vertraagd" weekdays=sunday,monday,tuesday,wednesday,thursday
add limitation=150GBdown/50GBup/week profile="profiel streaming" weekdays=sunday,monday,tuesday,wednesday,thursday
add limitation=250GBdown/80GBup/week profile="profiel eigenaars" weekdays=friday,saturday
add limitation=250GBdown/80GBup/week profile="profiel streaming" weekdays=friday,saturday
add limitation="extra 250GB/80GB wifi vertraagd_2" profile="profiel extra wifi vertraagd_2" weekdays=sunday,monday,tuesday,wednesday,thursday
add limitation="extra 250GB/80GB wifi vertraagd_2" profile="profiel extra wifi vertraagd_2" weekdays=friday,saturday
add limitation="extra 150GB/50GB wifi vertraagd" profile="profiel extra wifi vertraagd" weekdays=friday,saturday
/user-manager user
add attributes=Mikrotik-Wireless-Comment:ROM03 group=eigenaars name=ROM03 shared-users=20
add attributes=Mikrotik-Wireless-Comment:ROM04 group=eigenaars name=ROM04 shared-users=20
add attributes=Framed-IP-Address:10.5.50.58,Mikrotik-Wireless-Comment:TVdecoder03 comment="Decoder 03" group=TVstreaming name=74:3A:EF:A6:A4:A7
/user-manager user-profile
add profile="profiel eigenaars" user=ROM03
add profile="profiel eigenaars" user=ROM04
add profile="profiel extra wifi vertraagd" user=ROM03
add profile="profiel extra wifi vertraagd" user=ROM04
add profile="profiel streaming" user=74:3A:EF:A6:A4:A7
add profile="profiel extra wifi vertraagd" user=74:3A:EF:A6:A4:A7
Idea comes from Mikrotik Indonesia:
https://www.youtube.com/watch?v=TrPfGO9AzPk