Please .... !!!!

created schedule free user hotspot


buatkan profile user terserah nama dan passwordnya contoh "gratis" dan user profiles "gratis" bikin yang bisa dishare 10 client.


Script mikrotiknya : 

/ip hotspot user profile add name=gratis shared-users=10
/ip hotspot user add name=gratis password=gratis profile=gratis

  • lanjut bikin perintah scripts :
berikut scripts untuk meng enable/disable user yang telah kita buat tadi "gratis", dan scripts remove user "gratis" yang sedang aktif/online 
/system script
add name=disablegratis policy=\
    ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive source=\
    "/ip hotspot user disable gratis"
add name=enablegratis policy=\
    ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive source=\
    "/ip hotspot user enable gratis"
add name=removegratis policy=\
    ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive source=\
    "/ip hotspot active remove [/ip hotspot active find user=\"gratis\"];"

  • sekarang tinggal membuat schedule nya gratis jam sahur aja antara Jam 02.00-04.30
/system scheduler
add comment="" disabled=no interval=1d name=gratis_disable on-event=\
    disablegratis policy=\
    reboot,read,write,policy,test,password,sniff,sensitive start-date=\
    feb/01/2012 start-time=04:30:00
add comment="" disabled=no interval=1d name=gratis_enable on-event=\
    enablegratis policy=\
    reboot,read,write,policy,test,password,sniff,sensitive start-date=\
    feb/01/2012 start-time=02:00:00

  • udah didisable tapi masi bisa internetan bikin lagi schedule kick otomatis user "gratis" kasi jedah 10 menit lah dari schedule disable user "gratis" 
/system scheduler
add comment="" disabled=no interval=1d name=remove_gratis on-event=\
    removegratis policy=\
    reboot,read,write,policy,test,password,sniff,sensitive start-date=\
    feb/01/2012 start-time=04:40:00

segitu aja mudah-mudahan bermanfaat dan bahasa gua bisa dipahami

sumber FMI dengan sedikit tambahan saya sendiri :P


0 komentar:

Posting Komentar