Advertisement
rootplg3544

Siapa tau berguna buat otomatis custom simple queue untuk ho

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