HOME

MIKROTIK ALL-IN-ONE NOTIFICATION EXPIRED FOR HOTSPOT, PPPOE AND STATIC IP

Copy-Paste the Script to your Terminal!
###############################################################
# Mikrotik Notification Expired For Hotspot, PPPoE and Static-IP Generator
# Date/Time:
# - mikrotiktool.github.io
###############################################################

/ip proxy set enabled=yes port=8082 max-cache-size=none
/ip proxy access
add action=allow dst-port=8082 src-address=10.20.20.0/24 comment="EXPIRED By BNT"
add action=deny local-port=8082 comment="EXPIRED By BNT"
/ip address
add address=10.20.20.1/24 interface=bridge1 comment="EXPIRED By BNT"
/ip firewall address-list
add list=EXPIRED address=10.20.20.0/24 comment="EXPIRED By BNT"
/ip pool
add name=EXPIRED ranges=10.20.20.2-10.20.20.254 comment="EXPIRED By BNT"
/ip firewall filter
add chain=forward src-address-list=EXPIRED action=drop comment="EXPIRED By BNT"
/ip firewall nat
add chain=dstnat src-address-list=EXPIRED protocol=tcp dst-port=80,443 action=redirect to-ports=8082 comment="EXPIRED By BNT"
/ppp profile
add name=EXPIRED local-address=10.20.20.1 remote-address=EXPIRED comment="EXPIRED By BNT" on-down=":local username \$\"user\";\r\n/ip proxy access 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\";"
/ip hotspot user profile
add address-pool=EXPIRED !mac-cookie-timeout transparent-proxy=no on-login=":local username \$\"user\";\r\n:local ipaddress \$\"address\";\r\n/ip proxy access add action=deny src-address=\$ipaddress 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\"]" name=EXPIRED shared-users=100
/ip hotspot walled-garden ip
add action=accept disabled=no !dst-address !dst-address-list dst-port=8082 protocol=tcp !src-address !src-address-list comment="EXPIRED By BNT"

Download error.html
EXPIRED!
DEAR CUSTOMER, WE INFORM YOU THAT YOUR INTERNET SERVICE IS CURRENTLY ISOLATED. PLEASE MAKE PAYMENT OF THE BILL THROUGH THE ACCOUNT WE PROVIDE. IN ORDER FOR THE INTERNET SERVICE TO REMAIN ACTIVE, IT IS REQUESTED TO MAKE A PAYMENT BEFORE THE DUE DATE OF EACH MONTH.

Contact Owner: +62 813-2222-3333