Sunday 15 December 2013

Memberi Info Internet sedang Gangguan Kepada Pelanggan Hotspot (otomatis script)

Pemberitahuan ini akan muncul di page login juragan berikut scriptnya :

Cari login.html di folder page login silahkan tambah kode berikut terserah letakan dimana :

<center><img src='http://s27.postimg.org/tfeybnnyr/image.png'
onerror="this.src='img/down.png'"/align="middle"></center>


gambar internet normal letakan di server luar sedangkan gambar inernet down letakan dilocal mikrotik

Penampakan jika internet normal :

penampakan jika internet down : 

Tinggal tambahkan diwaled garden gambar yang diletakan di server luar berikut scriptnya :

/ip hotspot walled-garden
add action=allow disabled=no dst-host=s27.postimg.org dst-port=80

cat. apabila gambar sama dengan diposting ini bisa langsung pastekan

Agar pelanggan hotpsot yang sedang login bisa lihat pesan di page login kalau internet sedang gangguan, kick secara otomatis dengan script berikut:

/tool netwatch
add comment=internet-down-hotspot disabled=no down-script=":local dumplist [/ip hotspot active find]\r\
    \n:foreach i in=\$dumplist do={\r\
    \n    /ip hotspot active remove \$i\r\
    \n}\r\
    \n:local dumplist [/ip hotspot cookie find]\r\
    \n:foreach i in=\$dumplist do={\r\
    \n    /ip hotspot cookie remove \$i\r\
    \n}" host=8.8.8.8 interval=30s timeout=1s up-script=""


jika diatas error tinggal pastekan di tools-netcwath-down :

:local dumplist [/ip hotspot active find]
:foreach i in=$dumplist do={
    /ip hotspot active remove $i
}
:local dumplist [/ip hotspot cookie find]
:foreach i in=$dumplist do={
    /ip hotspot cookie remove $i
}


sedangkan hostnya 8.8.8.8

 

Site Info

free counters

SyakirahNET Copyright © 2009 BeMagazine Blogger Template is Designed by Blogger Template
In Collaboration with fifa