You are on page 1of 1

contoh kasus :

- user : bedoe
- pass : ganteng
- bandwith sebelum fup : 1m/1m
- fup : 1gb
- bandwith sesudah fup : 128k/128k
- setelah 1 hari, reset fup

tahap :
1. bikin 2 profile user hotspot :
---> profile pertama :
------> nama : belum FUP
------> rate limit : 1m/1m
------> script on login :
==================
/system scheduler add name="reset-FUP-$user" start-time=00:00:01 interval=24:00:00
on-even="/ip hotspot user set $user profile=\"belum FUP\" comment=\"$user belum
FUP\" ; /ip hotspot user reset-counters $user ; /ip hotspot user set $user limit-
bytes-total=1G"
==================

------> script on logoff :


==================
:if ([/ip hotspot user get $user limit-bytes-total] > "1g") do={/ip hotspot user
set $user profile="sudah FUP" comment="user $user terkena fup hari ini" ; /ip
hotspot user set $user limit-bytes-total=0}
==================

---> profile kedua :


------> nama : sudah FUP
------> rate limit : 128k/128k

2. bikin user hotspot :


---> nama : bedoe
---> pass : ganteng
---> profile : belum FUP
---> limit bytes total : 1G

thx
copyright : terracomp - ayahnya rhea

You might also like