Advertisement
rootplg3544

buat otomatis custom simple queue untuk hotspot

Jun 10th, 2018
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. [Share]
  2. Siapa tau berguna buat otomatis custom simple queue untuk hotspot
  3.  
  4. 1.Syarat Rate Limit (rx/tx) dikosongin
  5. 2.Jika ada parent tinggal tambahkan script untuk parent contoh parent="3.PREMIUM"
  6. 3.Jika menggunakan user manager tinggal masukin nama profile hotspot ke dalam Group name pada usermanager, jangan lupa Rate limit di kosongin
  7.  
  8. # Script Pada On Login:
  9. :local datetime [/system clock get date];
  10. :local timedate [/system clock get time];
  11. /queue simple add name="$user -> $address" comment=("Login at: [ $timedate - $datetime ] From: [ $interface ] Mac: [ ".$"mac-address"." ]") target="$address" max-limit=1M/1M
  12. :log warning ("--> [ $user ] Login at: [ $timedate - $datetime ] From: [ $interface ] Mac: [ ".$"mac-address"." ]")
  13.  
  14. # Script Pada On Logout:
  15. /queue simple remove [find name="$user -> $address"] ;
  16. :log warning ("--> [ $user ] Logout at: [ $timedate - $datetime ] From: [ $interface ] Mac: [ ".$"mac-address"." ]")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement