Script Queues
Script Queues
2
# software id = 7AJK-BCB5
#
# model = RouterBOARD 750 r2
# serial number = 67D206627491
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip firewall layer7-protocol
add name=facebook regexp="^.+facebook.com.*\$"
/ip hotspot profile
set [ find default=yes ] html-directory=flash/hotspot
add dns-name=www.alvinwifi.net hotspot-address=192.168.10.1 html-directory=\
flash/hotspot name=hsprof1
add dns-name=www.alvinwifi.net hotspot-address=192.168.20.1 html-directory=\
flash/hotspot name=hsprof2
/ip hotspot user profile
add name=ALVIN-FAMILY on-login=":put (\",,0,,,noexp,Enable,\"); [:local mac \$\
\"mac-address\"; /ip hotspot user set mac-address=\$mac [find where name=\
\$user]]" parent-queue=none transparent-proxy=yes
add name=VOCHER-ALVIN-WIFI on-login=":put (\",rem,3000,16h,0,,Enable,\"); {:lo\
cal date [ /system clock get date ];:local year [ :pick \$date 7 11 ];:loc\
al month [ :pick \$date 0 3 ];:local comment [ /ip hotspot user get [/ip h\
otspot user find where name=\"\$user\"] comment]; :local ucode [:pic \$com\
ment 0 2]; :if (\$ucode = \"vc\" or \$ucode = \"up\" or \$comment = \"\") \
do={ /sys sch add name=\"\$user\" disable=no start-date=\$date interval=\"\
16h\"; :delay 2s; :local exp [ /sys sch get [ /sys sch find where name=\"\
\$user\" ] next-run]; :local getxp [len \$exp]; :if (\$getxp = 15) do={ :l\
ocal d [:pic \$exp 0 6]; :local t [:pic \$exp 7 16]; :local s (\"/\"); :lo\
cal exp (\"\$d\$s\$year \$t\"); /ip hotspot user set comment=\$exp [find w\
here name=\"\$user\"];}; :if (\$getxp = 8) do={ /ip hotspot user set comme\
nt=\"\$date \$exp\" [find where name=\"\$user\"];}; :if (\$getxp > 15) do=\
{ /ip hotspot user set comment=\$exp [find where name=\"\$user\"];}; /sys \
sch remove [find where name=\"\$user\"]; [:local mac \$\"mac-address\"; /i\
p hotspot user set mac-address=\$mac [find where name=\$user]]}}" \
parent-queue=none transparent-proxy=yes
add name=PAKET-KU on-login=":put (\",,0,,,noexp,Disable,\")" parent-queue=\
none shared-users=2 transparent-proxy=yes
add name=UMUM on-login=":put (\",,0,,,noexp,Disable,\")" parent-queue=none \
shared-users=6 transparent-proxy=yes
add name=PAKET-BULANAN-50K on-login=":put (\",rem,50000,30d,0,,Enable,\"); {:l\
ocal date [ /system clock get date ];:local year [ :pick \$date 7 11 ];:lo\
cal month [ :pick \$date 0 3 ];:local comment [ /ip hotspot user get [/ip \
hotspot user find where name=\"\$user\"] comment]; :local ucode [:pic \$co\
mment 0 2]; :if (\$ucode = \"vc\" or \$ucode = \"up\" or \$comment = \"\")\
\_do={ /sys sch add name=\"\$user\" disable=no start-date=\$date interval=\
\"30d\"; :delay 2s; :local exp [ /sys sch get [ /sys sch find where name=\
\"\$user\" ] next-run]; :local getxp [len \$exp]; :if (\$getxp = 15) do={ \
:local d [:pic \$exp 0 6]; :local t [:pic \$exp 7 16]; :local s (\"/\"); :\
local exp (\"\$d\$s\$year \$t\"); /ip hotspot user set comment=\$exp [find\
\_where name=\"\$user\"];}; :if (\$getxp = 8) do={ /ip hotspot user set co\
mment=\"\$date \$exp\" [find where name=\"\$user\"];}; :if (\$getxp > 15) \
do={ /ip hotspot user set comment=\$exp [find where name=\"\$user\"];}; /s\
ys sch remove [find where name=\"\$user\"]; [:local mac \$\"mac-address\";\
\_/ip hotspot user set mac-address=\$mac [find where name=\$user]]}}" \
parent-queue=none transparent-proxy=yes
/ip pool
add name=dhcp_pool0 ranges=192.168.10.2-192.168.10.254
add name=dhcp_pool1 ranges=192.168.20.2-192.168.20.254
/ip dhcp-server
add address-pool=dhcp_pool0 disabled=no interface=ether2 name=dhcp1
add address-pool=dhcp_pool1 disabled=no interface=ether3 name=dhcp2
/ip hotspot
add address-pool=dhcp_pool0 disabled=no interface=ether2 name=hotspot1 \
profile=hsprof1
add address-pool=dhcp_pool1 disabled=no interface=ether3 name=hs-ether3 \
profile=hsprof2
/queue simple
add max-limit=0/30M name=TOTAL-BANDWITH queue=default/default target=\
ether2,ether3
add name=1.GAME-ONLINE packet-marks="GAME UPLOAD,GAME DOWNLOAD" parent=\
TOTAL-BANDWITH priority=1/1 queue=pcq-upload-default/pcq-download-default \
target=ether2,ether3
add name=2.ICMP-DNS packet-marks=ICMP-DNS-UP,ICMP-DNS-DOWN parent=\
TOTAL-BANDWITH queue=pcq-upload-default/pcq-download-default target=\
ether2,ether3
add max-limit=0/20M name=3.ALL-TRAFIC-UMUM-YOUTUBE packet-marks=\
UMUM-UPLOAD,UMUM-DOWNLOAD,YOUTUBE-UPLOAD,YOUTUBE-DOWNLOAD parent=\
TOTAL-BANDWITH queue=default/default target=ether2,ether3
add max-limit=0/20M name=1.CLIENT-ALVIN-WIFI parent=3.ALL-TRAFIC-UMUM-YOUTUBE \
queue=pcq-upload-default/pcq-download-default target=ether2
add max-limit=0/10M name=2.CLIENT-ENTIN-WIFI parent=3.ALL-TRAFIC-UMUM-YOUTUBE \
queue=pcq-upload-default/pcq-download-default target=ether3
/queue tree
add name="GLOBAL TRAFIC" parent=global queue=default
add max-limit=30M name="TOTAL DOWNLOAD" parent="GLOBAL TRAFIC" queue=\
pcq-download-default
add name="TOTAL UPLOAD" parent="GLOBAL TRAFIC" queue=pcq-upload-default
add name="1.GAME DOWNLOAD" packet-mark="GAME DOWNLOAD" parent=\
"TOTAL DOWNLOAD" priority=1 queue=pcq-download-default
add name="1.GAME UPLOAD" packet-mark="GAME UPLOAD" parent="TOTAL UPLOAD" \
priority=1 queue=pcq-upload-default
add name=2.ICMP-DNS-DOWNLOAD packet-mark=ICMP-DNS-DOWN parent=\
"TOTAL DOWNLOAD" queue=pcq-download-default
add name=2.ICMP-DNS-UPLOAD packet-mark=ICMP-DNS-UP parent="TOTAL UPLOAD" \
queue=pcq-upload-default
add max-limit=20M name=3.ALL-TRAFIC-DOWNLOAD parent="TOTAL DOWNLOAD" queue=\
pcq-download-default
add name=3.ALL-TRAFIC-UPLOAD parent="TOTAL UPLOAD" queue=pcq-upload-default
add limit-at=10M max-limit=20M name=1.UMUM-DOWNLOAD packet-mark=UMUM-DOWNLOAD \
parent=3.ALL-TRAFIC-DOWNLOAD queue=pcq-download-default
add name=1.UMUM-UPLOAD packet-mark=UMUM-UPLOAD parent=3.ALL-TRAFIC-UPLOAD \
queue=pcq-upload-default
add limit-at=10M max-limit=20M name=2.YOUTUBE-DOWNLOAD packet-mark=\
YOUTUBE-DOWNLOAD parent=3.ALL-TRAFIC-DOWNLOAD queue=pcq-download-default
add name=2.YOUTUBE-UPLOAD packet-mark=YOUTUBE-UPLOAD parent=\
3.ALL-TRAFIC-UPLOAD queue=pcq-upload-default
/interface bridge port
add comment=defconf interface=ether1
add comment=defconf interface=ether2
add comment=defconf interface=ether3
add comment=defconf interface=ether4
add comment=defconf interface=ether5
/ip address
add address=192.168.10.1/24 interface=ether2 network=192.168.10.0
add address=192.168.20.1/24 interface=ether3 network=192.168.20.0
/ip dhcp-client
add dhcp-options=hostname,clientid disabled=no interface=ether1
/ip dhcp-server network
add address=192.168.10.0/24 gateway=192.168.10.1
add address=192.168.20.0/24 gateway=192.168.20.1
/ip firewall address-list
add address=192.168.10.0/24 list=IP-LOCAL
add address=192.168.20.0/24 list=IP-LOCAL
/ip firewall filter
add action=passthrough chain=unused-hs-chain comment=\
"place hotspot rules here" disabled=yes
/ip firewall mangle
add action=mark-connection chain=prerouting comment=ICMP-DNS \
dst-address-list=!IP-LOCAL new-connection-mark=ICMP-DNS passthrough=yes \
protocol=icmp src-address-list=IP-LOCAL
add action=mark-connection chain=prerouting dst-address-list=!IP-LOCAL \
dst-port=53 new-connection-mark=ICMP-DNS passthrough=yes protocol=udp \
src-address-list=IP-LOCAL
add action=mark-packet chain=forward connection-mark=ICMP-DNS in-interface=\
ether1 new-packet-mark=ICMP-DNS-DOWN passthrough=no
add action=mark-packet chain=forward connection-mark=ICMP-DNS \
new-packet-mark=ICMP-DNS-UP out-interface=ether1 passthrough=no
add action=mark-connection chain=postrouting comment="GAME ONLINE" \
dst-address-list=IP-GAME new-connection-mark="GAME ONLINE" passthrough=\
yes src-address-list=IP-LOCAL
add action=mark-packet chain=forward connection-mark="GAME ONLINE" \
in-interface=ether1 new-packet-mark="GAME DOWNLOAD" passthrough=no
add action=mark-packet chain=forward connection-mark="GAME ONLINE" \
new-packet-mark="GAME UPLOAD" out-interface=ether1 passthrough=no
add action=mark-connection chain=postrouting comment=\
"ALIHKAN GAME ONLINE KE KONEKSI UMUM" connection-rate=200k-30M \
dst-address-list=IP-GAME new-connection-mark=KONEKSI-UMUM passthrough=yes \
src-address-list=IP-LOCAL
add action=mark-connection chain=postrouting comment="KONEKSI UMUM" \
dst-address-list=IP-UMUM new-connection-mark=KONEKSI-UMUM passthrough=yes \
src-address-list=IP-LOCAL
add action=mark-packet chain=forward connection-mark=KONEKSI-UMUM \
in-interface=ether1 new-packet-mark=UMUM-DOWNLOAD passthrough=no
add action=mark-packet chain=forward connection-mark=KONEKSI-UMUM \
new-packet-mark=UMUM-UPLOAD out-interface=ether1 passthrough=no
add action=mark-connection chain=postrouting comment=YOUTUBE \
dst-address-list=IP-YOUTUBE new-connection-mark=KONEKSI-YOUTUBE \
passthrough=yes src-address-list=IP-LOCAL
add action=mark-packet chain=forward connection-mark=KONEKSI-YOUTUBE \
in-interface=ether1 new-packet-mark=YOUTUBE-DOWNLOAD passthrough=no
add action=mark-packet chain=forward connection-mark=KONEKSI-YOUTUBE \
new-packet-mark=YOUTUBE-UPLOAD out-interface=ether1 passthrough=no
/ip firewall nat
add action=passthrough chain=unused-hs-chain comment=\
"place hotspot rules here" disabled=yes
add action=masquerade chain=srcnat out-interface=ether1
add action=masquerade chain=srcnat comment="masquerade hotspot network" \
src-address=192.168.10.0/24
add action=masquerade chain=srcnat comment="masquerade hotspot network" \
src-address=192.168.20.0/24
/ip firewall raw
add action=add-dst-to-address-list address-list=IP-GAME address-list-timeout=\
12h chain=prerouting comment="MOBILE LAGEN" dst-address-list=!IP-LOCAL \
dst-port=5000-5508,5551-5558,5601-5608,5651-5658,30097-30147 protocol=tcp \
src-address-list=IP-LOCAL
add action=add-dst-to-address-list address-list=IP-GAME address-list-timeout=\
12h chain=prerouting dst-address-list=!IP-LOCAL dst-port=\
5000-5508,5551-5558,5601-5608,5651-5658 protocol=udp src-address-list=\
IP-LOCAL
add action=add-dst-to-address-list address-list=IP-GAME address-list-timeout=\
12h chain=prerouting comment="PUBG MOBILE" dst-address-list=!IP-LOCAL \
dst-port=10012,17500 protocol=tcp src-address-list=IP-LOCAL
add action=add-dst-to-address-list address-list=IP-GAME address-list-timeout=\
12h chain=prerouting dst-address-list=!IP-LOCAL dst-port=\
20000,12235,13748,13972,13894,11455,10096,10039 protocol=udp \
src-address-list=IP-LOCAL
add action=add-dst-to-address-list address-list=IP-GAME address-list-timeout=\
12h chain=prerouting comment="PUBG PC" dst-address-list=!IP-LOCAL \
dst-port=7086-7995,12070-12460,41182-42474 protocol=tcp src-address-list=\
IP-LOCAL
add action=add-dst-to-address-list address-list=IP-GAME address-list-timeout=\
12h chain=prerouting dst-address-list=!IP-LOCAL dst-port=\
7086-7995,12070-12460,41182-42474 protocol=udp src-address-list=IP-LOCAL
add action=add-dst-to-address-list address-list=IP-GAME address-list-timeout=\
12h chain=prerouting comment="DOTA 2" dst-address-list=!IP-LOCAL \
dst-port=27000-28998 protocol=tcp src-address-list=IP-LOCAL
add action=add-dst-to-address-list address-list=IP-GAME address-list-timeout=\
12h chain=prerouting comment="DOTA 2" dst-address-list=!IP-LOCAL \
dst-port=27000-28998 protocol=udp src-address-list=IP-LOCAL
add action=add-dst-to-address-list address-list=IP-GAME address-list-timeout=\
12h chain=prerouting comment="FREE FIRE" dst-address-list=!IP-LOCAL \
dst-port=\
10000-10007,6006,7006,8006,9006,10006,10012,11006,13006,39003,39698,39779 \
protocol=tcp src-address-list=IP-LOCAL
add action=add-dst-to-address-list address-list=IP-GAME address-list-timeout=\
12h chain=prerouting dst-address-list=!IP-LOCAL dst-port="10000-10007,6008\
,7008,8008,9008,10001,10002,10003,10004,10005,10007,10008,11008,13008" \
protocol=udp src-address-list=IP-LOCAL
add action=add-dst-to-address-list address-list=IP-UMUM address-list-timeout=\
12h chain=prerouting comment="PORT UMUM" dst-address-list=!IP-LOCAL \
dst-port=80,81,443,8000-8081,21,22,23,81,88,5050,843,182,53 protocol=tcp \
src-address-list=IP-LOCAL
add action=add-dst-to-address-list address-list=IP-UMUM address-list-timeout=\
12h chain=prerouting dst-address-list=!IP-LOCAL dst-port=\
80,81,443,8000-8081,21,22,23,81,88,5050,843,182,53 protocol=udp \
src-address-list=IP-LOCAL
add action=add-dst-to-address-list address-list=IP-YOUTUBE \
address-list-timeout=30m chain=prerouting comment=YOUTUBE content=\
googlevideo.com dst-address-list=!IP-LOCAL src-address-list=IP-LOCAL
/ip hotspot user
add name=bagu5 password=bagu5
add comment=vc- mac-address=20:34:FB:DA:FF:B2 name=irfan1 password=irfan1 \
profile=ALVIN-FAMILY
add comment=vc- mac-address=58:85:A2:E7:C1:61 name=novi1 password=novi1 \
profile=ALVIN-FAMILY
add comment=vc- mac-address=50:29:F5:E1:B1:33 name=entin1 password=entin1 \
profile=ALVIN-FAMILY
add comment=vc- mac-address=80:79:5D:41:94:69 name=aldi1 password=aldi1 \
profile=ALVIN-FAMILY
add comment=vc- name=b4gus password=b4gus profile=PAKET-KU
add comment=vc- name=yogi1 password=yogi1 profile=PAKET-KU
add comment=vc- name=beba5 password=beba5 profile=UMUM
add comment=vc- limit-bytes-total=5368709120 name=hvx65 password=hvx65 \
profile=VOCHER-ALVIN-WIFI
add comment=vc- limit-bytes-total=5368709120 name=tnb77 password=tnb77 \
profile=VOCHER-ALVIN-WIFI
add comment=vc- limit-bytes-total=5368709120 name=djk87 password=djk87 \
profile=VOCHER-ALVIN-WIFI
add comment=vc- limit-bytes-total=5368709120 name=fuv82 password=fuv82 \
profile=VOCHER-ALVIN-WIFI
add comment=vc- limit-bytes-total=5368709120 name=cpc35 password=cpc35 \
profile=VOCHER-ALVIN-WIFI
add comment=vc- limit-bytes-total=5368709120 name=idy83 password=idy83 \
profile=VOCHER-ALVIN-WIFI
add comment=vc- limit-bytes-total=5368709120 name=kjb26 password=kjb26 \
profile=VOCHER-ALVIN-WIFI
add comment="nov/30/2020 17:35:46" mac-address=00:0A:F5:EF:C7:68 name=bud1 \
password=bud1 profile=PAKET-BULANAN-50K
add comment=vc-935-11.05.20- limit-bytes-total=6442450944 name=vtx75 \
password=vtx75 profile=VOCHER-ALVIN-WIFI
add comment=vc-935-11.05.20- limit-bytes-total=6442450944 name=ggw78 \
password=ggw78 profile=VOCHER-ALVIN-WIFI
add comment=vc-935-11.05.20- limit-bytes-total=6442450944 name=fbw53 \
password=fbw53 profile=VOCHER-ALVIN-WIFI
add comment=vc-935-11.05.20- limit-bytes-total=6442450944 name=ckj86 \
password=ckj86 profile=VOCHER-ALVIN-WIFI
add comment=vc-935-11.05.20- limit-bytes-total=6442450944 name=ffa46 \
password=ffa46 profile=VOCHER-ALVIN-WIFI
add comment=vc-935-11.05.20- limit-bytes-total=6442450944 name=tzk64 \
password=tzk64 profile=VOCHER-ALVIN-WIFI
add comment=vc-935-11.05.20- limit-bytes-total=6442450944 name=gcv73 \
password=gcv73 profile=VOCHER-ALVIN-WIFI
add comment=vc-935-11.05.20- limit-bytes-total=6442450944 name=bja47 \
password=bja47 profile=VOCHER-ALVIN-WIFI
add comment=vc-935-11.05.20- limit-bytes-total=6442450944 name=vhx23 \
password=vhx23 profile=VOCHER-ALVIN-WIFI
add comment=vc-935-11.05.20- limit-bytes-total=6442450944 name=ibd42 \
password=ibd42 profile=VOCHER-ALVIN-WIFI
add comment=vc-935-11.05.20- limit-bytes-total=6442450944 name=tje78 \
password=tje78 profile=VOCHER-ALVIN-WIFI
add comment=vc-935-11.05.20- limit-bytes-total=6442450944 name=gxm28 \
password=gxm28 profile=VOCHER-ALVIN-WIFI
add comment=vc-935-11.05.20- limit-bytes-total=6442450944 name=exg95 \
password=exg95 profile=VOCHER-ALVIN-WIFI
add comment=vc-935-11.05.20- limit-bytes-total=6442450944 name=ddu59 \
password=ddu59 profile=VOCHER-ALVIN-WIFI
add comment=vc-935-11.05.20- limit-bytes-total=6442450944 name=nzs57 \
password=nzs57 profile=VOCHER-ALVIN-WIFI
add comment=vc-935-11.05.20- limit-bytes-total=6442450944 name=dct98 \
password=dct98 profile=VOCHER-ALVIN-WIFI
add comment=vc-935-11.05.20- limit-bytes-total=6442450944 name=ame79 \
password=ame79 profile=VOCHER-ALVIN-WIFI
add comment=vc-935-11.05.20- limit-bytes-total=6442450944 name=xws26 \
password=xws26 profile=VOCHER-ALVIN-WIFI
add comment=vc-935-11.05.20- limit-bytes-total=6442450944 name=tes46 \
password=tes46 profile=VOCHER-ALVIN-WIFI
add comment=vc-935-11.05.20- limit-bytes-total=6442450944 name=edm82 \
password=edm82 profile=VOCHER-ALVIN-WIFI
add comment=vc-935-11.05.20- limit-bytes-total=6442450944 name=jbj23 \
password=jbj23 profile=VOCHER-ALVIN-WIFI
add comment=vc-935-11.05.20- limit-bytes-total=6442450944 name=kyf36 \
password=kyf36 profile=VOCHER-ALVIN-WIFI
add comment=vc-935-11.05.20- limit-bytes-total=6442450944 name=usx87 \
password=usx87 profile=VOCHER-ALVIN-WIFI
add comment=vc-935-11.05.20- limit-bytes-total=6442450944 name=kbx37 \
password=kbx37 profile=VOCHER-ALVIN-WIFI
add comment=vc-935-11.05.20- limit-bytes-total=6442450944 name=yff33 \
password=yff33 profile=VOCHER-ALVIN-WIFI
add comment=vc-935-11.05.20- limit-bytes-total=6442450944 name=btv29 \
password=btv29 profile=VOCHER-ALVIN-WIFI
add comment=vc-935-11.05.20- limit-bytes-total=6442450944 name=hwj39 \
password=hwj39 profile=VOCHER-ALVIN-WIFI
add comment=vc-935-11.05.20- limit-bytes-total=6442450944 name=rjk75 \
password=rjk75 profile=VOCHER-ALVIN-WIFI
add comment=vc-935-11.05.20- limit-bytes-total=6442450944 name=esm75 \
password=esm75 profile=VOCHER-ALVIN-WIFI
add comment=vc-935-11.05.20- limit-bytes-total=6442450944 name=hzs23 \
password=hzs23 profile=VOCHER-ALVIN-WIFI
add comment=vc-935-11.05.20- limit-bytes-total=6442450944 name=wgw66 \
password=wgw66 profile=VOCHER-ALVIN-WIFI
add comment=vc-935-11.05.20- limit-bytes-total=6442450944 name=tbf25 \
password=tbf25 profile=VOCHER-ALVIN-WIFI
add comment=vc-935-11.05.20- limit-bytes-total=6442450944 name=isw72 \
password=isw72 profile=VOCHER-ALVIN-WIFI
add comment=vc-935-11.05.20- limit-bytes-total=6442450944 name=rxx76 \
password=rxx76 profile=VOCHER-ALVIN-WIFI
add comment=vc-935-11.05.20- limit-bytes-total=6442450944 name=sfs32 \
password=sfs32 profile=VOCHER-ALVIN-WIFI
add comment=vc-935-11.05.20- limit-bytes-total=6442450944 name=hpw73 \
password=hpw73 profile=VOCHER-ALVIN-WIFI
add comment=vc-935-11.05.20- limit-bytes-total=6442450944 name=tkj68 \
password=tkj68 profile=VOCHER-ALVIN-WIFI
add comment=vc-935-11.05.20- limit-bytes-total=6442450944 name=iti95 \
password=iti95 profile=VOCHER-ALVIN-WIFI
add comment=vc-935-11.05.20- limit-bytes-total=6442450944 name=rha96 \
password=rha96 profile=VOCHER-ALVIN-WIFI
add comment=vc-935-11.05.20- limit-bytes-total=6442450944 name=jds54 \
password=jds54 profile=VOCHER-ALVIN-WIFI
add comment=vc-935-11.05.20- limit-bytes-total=6442450944 name=bbv29 \
password=bbv29 profile=VOCHER-ALVIN-WIFI
add comment=vc-935-11.05.20- limit-bytes-total=6442450944 name=api78 \
password=api78 profile=VOCHER-ALVIN-WIFI
add comment=vc-935-11.05.20- limit-bytes-total=6442450944 name=geg39 \
password=geg39 profile=VOCHER-ALVIN-WIFI
add comment=vc-935-11.05.20- limit-bytes-total=6442450944 name=epr85 \
password=epr85 profile=VOCHER-ALVIN-WIFI
add comment=vc-935-11.05.20- limit-bytes-total=6442450944 name=uya66 \
password=uya66 profile=VOCHER-ALVIN-WIFI
add comment=vc-935-11.05.20- limit-bytes-total=6442450944 name=kbp32 \
password=kbp32 profile=VOCHER-ALVIN-WIFI
add comment=vc-935-11.05.20- limit-bytes-total=6442450944 name=vdg28 \
password=vdg28 profile=VOCHER-ALVIN-WIFI
add comment=vc-935-11.05.20- limit-bytes-total=6442450944 name=ief98 \
password=ief98 profile=VOCHER-ALVIN-WIFI
add comment=vc-935-11.05.20- limit-bytes-total=6442450944 name=rau67 \
password=rau67 profile=VOCHER-ALVIN-WIFI
add comment=vc-935-11.05.20- limit-bytes-total=6442450944 name=gee34 \
password=gee34 profile=VOCHER-ALVIN-WIFI
add comment=vc-935-11.05.20- limit-bytes-total=6442450944 name=uxj84 \
password=uxj84 profile=VOCHER-ALVIN-WIFI
add comment=vc-935-11.05.20- limit-bytes-total=6442450944 name=dyk52 \
password=dyk52 profile=VOCHER-ALVIN-WIFI
add comment=vc-935-11.05.20- limit-bytes-total=6442450944 name=avb45 \
password=avb45 profile=VOCHER-ALVIN-WIFI
add comment=vc-935-11.05.20- limit-bytes-total=6442450944 name=hsz48 \
password=hsz48 profile=VOCHER-ALVIN-WIFI
add comment=vc-935-11.05.20- limit-bytes-total=6442450944 name=epk72 \
password=epk72 profile=VOCHER-ALVIN-WIFI
add comment=vc-935-11.05.20- limit-bytes-total=6442450944 name=gat56 \
password=gat56 profile=VOCHER-ALVIN-WIFI
add comment=vc-935-11.05.20- limit-bytes-total=6442450944 name=vgp79 \
password=vgp79 profile=VOCHER-ALVIN-WIFI
add comment=vc-935-11.05.20- limit-bytes-total=6442450944 name=dmc38 \
password=dmc38 profile=VOCHER-ALVIN-WIFI
add comment=vc-935-11.05.20- limit-bytes-total=6442450944 name=uau93 \
password=uau93 profile=VOCHER-ALVIN-WIFI
add comment=vc-935-11.05.20- limit-bytes-total=6442450944 name=yia59 \
password=yia59 profile=VOCHER-ALVIN-WIFI
add comment=vc-935-11.05.20- limit-bytes-total=6442450944 name=gwh83 \
password=gwh83 profile=VOCHER-ALVIN-WIFI
add comment=vc-935-11.05.20- limit-bytes-total=6442450944 name=tii36 \
password=tii36 profile=VOCHER-ALVIN-WIFI
add comment=vc-935-11.05.20- limit-bytes-total=6442450944 name=mie74 \
password=mie74 profile=VOCHER-ALVIN-WIFI
add comment=vc-935-11.05.20- limit-bytes-total=6442450944 name=whw65 \
password=whw65 profile=VOCHER-ALVIN-WIFI
add comment=vc-935-11.05.20- limit-bytes-total=6442450944 name=hmy45 \
password=hmy45 profile=VOCHER-ALVIN-WIFI
add comment=vc-935-11.05.20- limit-bytes-total=6442450944 name=mfx32 \
password=mfx32 profile=VOCHER-ALVIN-WIFI
add comment=vc-935-11.05.20- limit-bytes-total=6442450944 name=bic34 \
password=bic34 profile=VOCHER-ALVIN-WIFI
add comment=vc-935-11.05.20- limit-bytes-total=6442450944 name=gtd58 \
password=gtd58 profile=VOCHER-ALVIN-WIFI
add comment=vc-935-11.05.20- limit-bytes-total=6442450944 name=guk56 \
password=guk56 profile=VOCHER-ALVIN-WIFI
add comment=vc-935-11.05.20- limit-bytes-total=6442450944 name=jwj69 \
password=jwj69 profile=VOCHER-ALVIN-WIFI
add comment=vc-935-11.05.20- limit-bytes-total=6442450944 name=meh69 \
password=meh69 profile=VOCHER-ALVIN-WIFI
add comment=vc-935-11.05.20- limit-bytes-total=6442450944 name=yxi33 \
password=yxi33 profile=VOCHER-ALVIN-WIFI
add comment=vc-935-11.05.20- limit-bytes-total=6442450944 name=uhh43 \
password=uhh43 profile=VOCHER-ALVIN-WIFI
add comment=vc-935-11.05.20- limit-bytes-total=6442450944 name=bwz47 \
password=bwz47 profile=VOCHER-ALVIN-WIFI
add comment=vc-935-11.05.20- limit-bytes-total=6442450944 name=ejb96 \
password=ejb96 profile=VOCHER-ALVIN-WIFI
add comment=vc-935-11.05.20- limit-bytes-total=6442450944 name=mbg82 \
password=mbg82 profile=VOCHER-ALVIN-WIFI
/system clock
set time-zone-name=Asia/Jakarta
/system logging
add action=disk prefix=-> topics=hotspot,info,debug
/system ntp client
set enabled=yes primary-ntp=202.65.114.202 secondary-ntp=203.160.128.59
/system scheduler
add comment="Monitor Profile VOCHER-ALVIN-WIFI" interval=2m22s name=\
VOCHER-ALVIN-WIFI on-event=":local dateint do={:local montharray ( \"jan\"\
,\"feb\",\"mar\",\"apr\",\"may\",\"jun\",\"jul\",\"aug\",\"sep\",\"oct\",\
\"nov\",\"dec\" );:local days [ :pick \$d 4 6 ];:local month [ :pick \$d 0\
\_3 ];:local year [ :pick \$d 7 11 ];:local monthint ([ :find \$montharray\
\_\$month]);:local month (\$monthint + 1);:if ( [len \$month] = 1) do={:lo\
cal zero (\"0\");:return [:tonum (\"\$year\$zero\$month\$days\")];} else={\
:return [:tonum (\"\$year\$month\$days\")];}}; :local timeint do={ :local \
hours [ :pick \$t 0 2 ]; :local minutes [ :pick \$t 3 5 ]; :return (\$hour\
s * 60 + \$minutes) ; }; :local date [ /system clock get date ]; :local ti\
me [ /system clock get time ]; :local today [\$dateint d=\$date] ; :local \
curtime [\$timeint t=\$time] ; :foreach i in [ /ip hotspot user find where\
\_profile=\"VOCHER-ALVIN-WIFI\" ] do={ :local comment [ /ip hotspot user g\
et \$i comment]; :local name [ /ip hotspot user get \$i name]; :local gett\
ime [:pic \$comment 12 20]; :if ([:pic \$comment 3] = \"/\" and [:pic \$co\
mment 6] = \"/\") do={:local expd [\$dateint d=\$comment] ; :local expt [\
\$timeint t=\$gettime] ; :if ((\$expd < \$today and \$expt < \$curtime) or\
\_(\$expd < \$today and \$expt > \$curtime) or (\$expd = \$today and \$exp\
t < \$curtime)) do={ [ /ip hotspot user remove \$i ]; [ /ip hotspot active\
\_remove [find where user=\$name] ];}}}" policy=\
ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon \
start-date=jan/02/1970 start-time=01:26:40
add comment="Monitor Profile PAKET-BULANAN-50K" interval=2m17s name=\
PAKET-BULANAN-50K on-event=":local dateint do={:local montharray ( \"jan\"\
,\"feb\",\"mar\",\"apr\",\"may\",\"jun\",\"jul\",\"aug\",\"sep\",\"oct\",\
\"nov\",\"dec\" );:local days [ :pick \$d 4 6 ];:local month [ :pick \$d 0\
\_3 ];:local year [ :pick \$d 7 11 ];:local monthint ([ :find \$montharray\
\_\$month]);:local month (\$monthint + 1);:if ( [len \$month] = 1) do={:lo\
cal zero (\"0\");:return [:tonum (\"\$year\$zero\$month\$days\")];} else={\
:return [:tonum (\"\$year\$month\$days\")];}}; :local timeint do={ :local \
hours [ :pick \$t 0 2 ]; :local minutes [ :pick \$t 3 5 ]; :return (\$hour\
s * 60 + \$minutes) ; }; :local date [ /system clock get date ]; :local ti\
me [ /system clock get time ]; :local today [\$dateint d=\$date] ; :local \
curtime [\$timeint t=\$time] ; :foreach i in [ /ip hotspot user find where\
\_profile=\"PAKET-BULANAN-50K\" ] do={ :local comment [ /ip hotspot user g\
et \$i comment]; :local name [ /ip hotspot user get \$i name]; :local gett\
ime [:pic \$comment 12 20]; :if ([:pic \$comment 3] = \"/\" and [:pic \$co\
mment 6] = \"/\") do={:local expd [\$dateint d=\$comment] ; :local expt [\
\$timeint t=\$gettime] ; :if ((\$expd < \$today and \$expt < \$curtime) or\
\_(\$expd < \$today and \$expt > \$curtime) or (\$expd = \$today and \$exp\
t < \$curtime)) do={ [ /ip hotspot user remove \$i ]; [ /ip hotspot active\
\_remove [find where user=\$name] ];}}}" policy=\
ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon \
start-date=jan/10/1970 start-time=02:46:58