Advertisement
hijaunet

settingFUPmikrotik

Mar 29th, 2019
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. contoh kasus :
  2.  
  3. - user : bedoe
  4. - pass : ganteng
  5. - bandwith sebelum fup : 1m/1m
  6. - fup : 1gb
  7. - bandwith sesudah fup : 128k/128k
  8. - setelah 1 hari, reset fup
  9.  
  10. tahap :
  11. 1. bikin 2 profile user hotspot :
  12. ---> profile pertama :
  13. ------> nama : belum FUP
  14. ------> rate limit : 1m/1m
  15. ------> script on login :
  16. ==================
  17. /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"
  18. ==================
  19.  
  20. ------> script on logoff :
  21. ==================
  22. :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}
  23. ==================
  24.  
  25. ---> profile kedua :
  26. ------> nama : sudah FUP
  27. ------> rate limit : 128k/128k
  28.  
  29. 2. bikin user hotspot :
  30. ---> nama : bedoe
  31. ---> pass : ganteng
  32. ---> profile : belum FUP
  33. ---> limit bytes total : 1G
  34.  
  35. thx
  36. copyright : terracomp - ayahnya rhea
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement