Pengaturan Script Expired
Hasil Script Terminal
###############################################################
# NOTIFICATION EXPIRED FOR HOTSPOT, PPPOE AND STATIC IP WITH PROXY
# Date/Time:
# Generated By: JLA Tools Generator
###############################################################
/ip proxy set enabled=yes max-cache-size=none port=8082
/ip proxy access
add action=allow dst-port=8082 comment="Expired by JLA"
add action=deny redirect-to=192.168.1.1:8082 comment="Expired by JLA" dst-port=80
/ip firewall address-list
add list=EXPIRED address=0.0.0.0 comment="Expired by JLA"
/ip firewall filter
/ip firewall filter add action=drop chain=forward comment="Expired by JLA" dst-port=!80,8082 protocol=tcp src-address-list=EXPIRED
/ip firewall filter add action=drop chain=forward comment="Expired by JLA" dst-port=!53,5353 protocol=udp src-address-list=EXPIRED
/ip firewall nat
add chain=dstnat src-address-list=EXPIRED protocol=tcp action=redirect to-ports=8082 comment="Expired by JLA"
/ppp profile
add address-list=EXPIRED comment="Expired by JLA" name=EXPIRED on-down=":local username $\"user\";\r\
\n/ip proxy access remove [find comment=\"ppp-$username\"];\r\
\n/ip firewall address-list remove [find comment=\"ppp-$username\"];" on-up=":local username $\"user\";\r\
\n:local address $\"remote-address\";\r\
\n/ip proxy access add action=deny src-address=$address comment=\"ppp-$username\";\r\
\n/ip firewall address-list add list=EXPIRED address=$address comment=\"ppp-$username\""
/ip hotspot user profile
add add-mac-cookie=no address-list=EXPIRED !mac-cookie-timeout name=EXPIRED on-login=":local username $\"user\";\r\
\n:local ipaddress $\"address\";\r\
\n/ip proxy access add action=deny src-address=$ipaddress comment=\"hs-$username\";\r\
\n/ip firewall address-list add list=EXPIRED address=$address comment=\"hs-$username\"" on-logout=":local username $user;\r\
\n/ip hotspot cookie remove [find user=$username]\r\
\n/ip proxy access remove [find comment=\"hs-$username\"]\r\
\n/ip firewall address-list remove [find comment=\"hs-$username\"];" shared-users=50
Live Preview (error.html)
EXPIRE!
Tutorial Instalasi:
1. Download error.html melalui tombol di atas, lalu upload ke winbox pada menu "Files" ke dalam folder "webproxy/error.html".
2. Untuk mengaktifkan halaman expired, cukup set profil user Anda menjadi "EXPIRED" pada menu Hotspot atau PPPoE di Winbox.
3. Jangan gunakan "EXPIRED" untuk Hotspot Voucher, gunakan hanya untuk sistem Hotspot bulanan.
4. Untuk Static-IP, masukkan secara manual IP pelanggan ke Firewall -> Address Lists -> EXPIRED.
1. Download error.html melalui tombol di atas, lalu upload ke winbox pada menu "Files" ke dalam folder "webproxy/error.html".
2. Untuk mengaktifkan halaman expired, cukup set profil user Anda menjadi "EXPIRED" pada menu Hotspot atau PPPoE di Winbox.
3. Jangan gunakan "EXPIRED" untuk Hotspot Voucher, gunakan hanya untuk sistem Hotspot bulanan.
4. Untuk Static-IP, masukkan secara manual IP pelanggan ke Firewall -> Address Lists -> EXPIRED.