Sebuahhobi98

gr3

Feb 25th, 2022 (edited)
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 30.91 KB | None | 0 0
  1. # feb/26/2022 07:35:23 by RouterOS 6.48.6
  2.  
  3. /interface ethernet
  4. set [ find default-name=ether1 ] name=ether1_ISP
  5. set [ find default-name=ether2 ] name=ether2_Laptop
  6. set [ find default-name=ether3 ] name=ether3_Hotspot_Rumah
  7. set [ find default-name=ether4 ] name=ether4_Hotspot_Publik
  8. /interface wireless security-profiles
  9. set [ find default=yes ] supplicant-identity=MikroTik
  10. /ip firewall layer7-protocol
  11. add name=facebook regexp="^.+(facebook.com).*\$"
  12. add name=youtube regexp="^.+(youtube.com|www.youtube.com|m.youtube.com|ytimg.c\
  13. om|s.ytimg.com|ytimg.l.google.com|youtube.l.google.com|i.google.com|google\
  14. video.com|youtu.be).*\$"
  15. /ip hotspot profile
  16. set [ find default=yes ] dns-name=sebuahhobi.net hotspot-address=10.20.3.1 \
  17. html-directory=disk1/Ramadhan1442H login-by=http-chap,http-pap,mac-cookie
  18. add dns-name=sebuahhobi.net hotspot-address=10.20.3.1 html-directory=\
  19. disk1/Ramadhan1442H login-by=http-chap,http-pap,mac-cookie name=hsprof1
  20. add dns-name=sebuahhobi.net hotspot-address=10.15.20.1 html-directory=\
  21. disk1/Ramadhan1442H login-by=http-chap,http-pap,mac-cookie name=hsprof2
  22. /ip hotspot user profile
  23. add name=1gb_2d_5000_1M_1M on-login=":put (\",rem,5000,2d,5000,,Disable,\"); {\
  24. :local date [ /system clock get date ];:local year [ :pick \$date 7 11 ];:\
  25. local month [ :pick \$date 0 3 ];:local comment [ /ip hotspot user get [/i\
  26. p hotspot user find where name=\"\$user\"] comment]; :local ucode [:pic \$\
  27. comment 0 2]; :if (\$ucode = \"vc\" or \$ucode = \"up\" or \$comment = \"\
  28. \") do={ /sys sch add name=\"\$user\" disable=no start-date=\$date interva\
  29. l=\"2d\"; :delay 2s; :local exp [ /sys sch get [ /sys sch find where name=\
  30. \"\$user\" ] next-run]; :local getxp [len \$exp]; :if (\$getxp = 15) do={ \
  31. :local d [:pic \$exp 0 6]; :local t [:pic \$exp 7 16]; :local s (\"/\"); :\
  32. local exp (\"\$d\$s\$year \$t\"); /ip hotspot user set comment=\$exp [find\
  33. \_where name=\"\$user\"];}; :if (\$getxp = 8) do={ /ip hotspot user set co\
  34. mment=\"\$date \$exp\" [find where name=\"\$user\"];}; :if (\$getxp > 15) \
  35. do={ /ip hotspot user set comment=\$exp [find where name=\"\$user\"];}; /s\
  36. ys sch remove [find where name=\"\$user\"]}}" parent-queue=none \
  37. rate-limit=1M/1M
  38. add name=2gb_7d_10000_512k_1M on-login=":put (\",rem,10000,7d,10000,,Disable,\
  39. \"); {:local date [ /system clock get date ];:local year [ :pick \$date 7 \
  40. 11 ];:local month [ :pick \$date 0 3 ];:local comment [ /ip hotspot user g\
  41. et [/ip hotspot user find where name=\"\$user\"] comment]; :local ucode [:\
  42. pic \$comment 0 2]; :if (\$ucode = \"vc\" or \$ucode = \"up\" or \$comment\
  43. \_= \"\") do={ /sys sch add name=\"\$user\" disable=no start-date=\$date i\
  44. nterval=\"7d\"; :delay 2s; :local exp [ /sys sch get [ /sys sch find where\
  45. \_name=\"\$user\" ] next-run]; :local getxp [len \$exp]; :if (\$getxp = 15\
  46. ) do={ :local d [:pic \$exp 0 6]; :local t [:pic \$exp 7 16]; :local s (\"\
  47. /\"); :local exp (\"\$d\$s\$year \$t\"); /ip hotspot user set comment=\$ex\
  48. p [find where name=\"\$user\"];}; :if (\$getxp = 8) do={ /ip hotspot user \
  49. set comment=\"\$date \$exp\" [find where name=\"\$user\"];}; :if (\$getxp \
  50. > 15) do={ /ip hotspot user set comment=\$exp [find where name=\"\$user\"]\
  51. ;}; /sys sch remove [find where name=\"\$user\"]}}" parent-queue=none \
  52. rate-limit=512k/1M
  53. add name=10gb_30d_50000_1M_1536k on-login=":put (\",rem,50000,30d,50000,,Disab\
  54. le,\"); {:local date [ /system clock get date ];:local year [ :pick \$date\
  55. \_7 11 ];:local month [ :pick \$date 0 3 ];:local comment [ /ip hotspot us\
  56. er get [/ip hotspot user find where name=\"\$user\"] comment]; :local ucod\
  57. e [:pic \$comment 0 2]; :if (\$ucode = \"vc\" or \$ucode = \"up\" or \$com\
  58. ment = \"\") do={ /sys sch add name=\"\$user\" disable=no start-date=\$dat\
  59. e interval=\"30d\"; :delay 2s; :local exp [ /sys sch get [ /sys sch find w\
  60. here name=\"\$user\" ] next-run]; :local getxp [len \$exp]; :if (\$getxp =\
  61. \_15) do={ :local d [:pic \$exp 0 6]; :local t [:pic \$exp 7 16]; :local s\
  62. \_(\"/\"); :local exp (\"\$d\$s\$year \$t\"); /ip hotspot user set comment\
  63. =\$exp [find where name=\"\$user\"];}; :if (\$getxp = 8) do={ /ip hotspot \
  64. user set comment=\"\$date \$exp\" [find where name=\"\$user\"];}; :if (\$g\
  65. etxp > 15) do={ /ip hotspot user set comment=\$exp [find where name=\"\$us\
  66. er\"];}; /sys sch remove [find where name=\"\$user\"]}}" parent-queue=\
  67. none rate-limit=1M/1536k
  68. add name=15gb_30d_75000_1M_1536k on-login=":put (\",rem,75000,30d,75000,,Disab\
  69. le,\"); {:local date [ /system clock get date ];:local year [ :pick \$date\
  70. \_7 11 ];:local month [ :pick \$date 0 3 ];:local comment [ /ip hotspot us\
  71. er get [/ip hotspot user find where name=\"\$user\"] comment]; :local ucod\
  72. e [:pic \$comment 0 2]; :if (\$ucode = \"vc\" or \$ucode = \"up\" or \$com\
  73. ment = \"\") do={ /sys sch add name=\"\$user\" disable=no start-date=\$dat\
  74. e interval=\"30d\"; :delay 2s; :local exp [ /sys sch get [ /sys sch find w\
  75. here name=\"\$user\" ] next-run]; :local getxp [len \$exp]; :if (\$getxp =\
  76. \_15) do={ :local d [:pic \$exp 0 6]; :local t [:pic \$exp 7 16]; :local s\
  77. \_(\"/\"); :local exp (\"\$d\$s\$year \$t\"); /ip hotspot user set comment\
  78. =\$exp [find where name=\"\$user\"];}; :if (\$getxp = 8) do={ /ip hotspot \
  79. user set comment=\"\$date \$exp\" [find where name=\"\$user\"];}; :if (\$g\
  80. etxp > 15) do={ /ip hotspot user set comment=\$exp [find where name=\"\$us\
  81. er\"];}; /sys sch remove [find where name=\"\$user\"]}}" parent-queue=\
  82. none rate-limit=2M/2M
  83. add name=unlimited_30d_150000_1M_1536k on-login=":put (\",rem,150000,31d,15000\
  84. 0,,Enable,\"); {:local date [ /system clock get date ];:local year [ :pick\
  85. \_\$date 7 11 ];:local month [ :pick \$date 0 3 ];:local comment [ /ip hot\
  86. spot user get [/ip hotspot user find where name=\"\$user\"] comment]; :loc\
  87. al ucode [:pic \$comment 0 2]; :if (\$ucode = \"vc\" or \$ucode = \"up\" o\
  88. r \$comment = \"\") do={ /sys sch add name=\"\$user\" disable=no start-dat\
  89. e=\$date interval=\"31d\"; :delay 2s; :local exp [ /sys sch get [ /sys sch\
  90. \_find where name=\"\$user\" ] next-run]; :local getxp [len \$exp]; :if (\
  91. \$getxp = 15) do={ :local d [:pic \$exp 0 6]; :local t [:pic \$exp 7 16]; \
  92. :local s (\"/\"); :local exp (\"\$d\$s\$year \$t\"); /ip hotspot user set \
  93. comment=\$exp [find where name=\"\$user\"];}; :if (\$getxp = 8) do={ /ip h\
  94. otspot user set comment=\"\$date \$exp\" [find where name=\"\$user\"];}; :\
  95. if (\$getxp > 15) do={ /ip hotspot user set comment=\$exp [find where name\
  96. =\"\$user\"];}; /sys sch remove [find where name=\"\$user\"]; [:local mac \
  97. \$\"mac-address\"; /ip hotspot user set mac-address=\$mac [find where name\
  98. =\$user]]}}" parent-queue=none rate-limit=1M/2M
  99. add name=1_tahun_wa_rumah_1M_1M_50Gb on-login=":put (\",rem,0,360d,0,,Enable,\
  100. \"); {:local date [ /system clock get date ];:local year [ :pick \$date 7 \
  101. 11 ];:local month [ :pick \$date 0 3 ];:local comment [ /ip hotspot user g\
  102. et [/ip hotspot user find where name=\"\$user\"] comment]; :local ucode [:\
  103. pic \$comment 0 2]; :if (\$ucode = \"vc\" or \$ucode = \"up\" or \$comment\
  104. \_= \"\") do={ /sys sch add name=\"\$user\" disable=no start-date=\$date i\
  105. nterval=\"360d\"; :delay 2s; :local exp [ /sys sch get [ /sys sch find whe\
  106. re name=\"\$user\" ] next-run]; :local getxp [len \$exp]; :if (\$getxp = 1\
  107. 5) do={ :local d [:pic \$exp 0 6]; :local t [:pic \$exp 7 16]; :local s (\
  108. \"/\"); :local exp (\"\$d\$s\$year \$t\"); /ip hotspot user set comment=\$\
  109. exp [find where name=\"\$user\"];}; :if (\$getxp = 8) do={ /ip hotspot use\
  110. r set comment=\"\$date \$exp\" [find where name=\"\$user\"];}; :if (\$getx\
  111. p > 15) do={ /ip hotspot user set comment=\$exp [find where name=\"\$user\
  112. \"];}; /sys sch remove [find where name=\"\$user\"]; [:local mac \$\"mac-a\
  113. ddress\"; /ip hotspot user set mac-address=\$mac [find where name=\$user]]\
  114. }}" parent-queue=none rate-limit=3M/3M
  115. /ip pool
  116. add name=dhcp_pool0 ranges=192.168.22.3-192.168.22.10
  117. add name=hs-pool-3-rumah ranges=10.20.3.11-10.20.3.254
  118. add name=hs-pool-4-publik ranges=10.15.20.11-10.15.20.254
  119. /ip dhcp-server
  120. add address-pool=dhcp_pool0 disabled=no interface=ether2_Laptop lease-time=\
  121. 1d10m name=dhcp1
  122. add address-pool=hs-pool-3-rumah disabled=no interface=ether3_Hotspot_Rumah \
  123. lease-time=1h name=ether3_rumah
  124. add address-pool=hs-pool-4-publik disabled=no interface=ether4_Hotspot_Publik \
  125. lease-time=1h name=ether4_publik
  126. /ip hotspot
  127. add address-pool=hs-pool-3-rumah addresses-per-mac=1 disabled=no interface=\
  128. ether3_Hotspot_Rumah name=hotspot1_rumah profile=hsprof1
  129. add address-pool=hs-pool-3-rumah addresses-per-mac=1 disabled=no interface=\
  130. ether4_Hotspot_Publik name=Hostpot2_Publik profile=hsprof2
  131. /ip address
  132. add address=192.168.22.2/10 interface=ether2_Laptop network=192.128.0.0
  133. add address=10.20.3.1/24 interface=ether3_Hotspot_Rumah network=10.20.3.0
  134. add address=10.15.20.1/24 interface=ether4_Hotspot_Publik network=10.15.20.0
  135. /ip dhcp-client
  136. add disabled=no interface=ether1_ISP
  137. /ip dhcp-server network
  138. add address=10.15.20.0/24 comment="hotspot network" gateway=10.15.20.1
  139. add address=10.20.3.0/24 comment="hotspot network" gateway=10.20.3.1
  140. add address=192.128.0.0/10 dns-server=8.8.8.8,8.8.4.4 gateway=192.168.22.2
  141. /ip dns
  142. set allow-remote-requests=yes servers=8.8.8.8,8.8.4.4,1.1.1.1,1.0.0.1
  143. /ip firewall address-list
  144. add address=10.20.3.0/24 list=IP-Hotspot-Rumah
  145. add address=10.15.20.0/24 list=IP-Hotspot-Publik
  146. /ip firewall filter
  147. add action=passthrough chain=unused-hs-chain comment=\
  148. "place hotspot rules here" disabled=yes
  149. add action=drop chain=forward comment=Blok-TIkTok dst-address-list=\
  150. TikTok-List
  151. add action=drop chain=output dst-address-list=TikTok-List
  152. add action=drop chain=forward comment=Blok-YouTube dst-address-list=\
  153. YouTube-List
  154. add action=drop chain=output dst-address-list=YouTube-List
  155. add action=drop chain=forward comment=Blok-Layer-7 dst-port=80,443 \
  156. in-interface=ether3_Hotspot_Rumah layer7-protocol=facebook protocol=tcp
  157. add action=drop chain=forward comment="Game-Blokir ML TCP" dst-port=\
  158. 5000-5221,5224-5227,5229-5241,5243-5508,5551-5559,5601-5700,9001,9443 \
  159. protocol=tcp src-address=10.20.3.0
  160. add action=drop chain=forward dst-port=5520-5529,10003,30000-30300 protocol=\
  161. tcp src-address=10.20.3.0
  162. add action=drop chain=forward dst-port=\
  163. 4001-4009,5000-5221,5224-5241,5243-5508,5551-5559,5601-5700 protocol=udp \
  164. src-address=10.20.3.0
  165. add action=drop chain=forward dst-port=\
  166. 2702,3702,5517,5520-5529,8001,9000-9010,9992,10003,30000-30300 protocol=\
  167. udp src-address=10.20.3.0
  168. add action=drop chain=forward comment="Game-Blokir Free Fire" dst-port="6006,6\
  169. 674,7006,7889,8001-8012,9006,10000-10012,11000-11019,12006,12008,13006" \
  170. protocol=tcp src-address=10.20.3.0
  171. add action=drop chain=forward dst-port=20561,39003,39006,39698,39779,39800 \
  172. protocol=tcp src-address=10.20.3.0
  173. add action=drop chain=forward dst-port=\
  174. 6006,6008,7008,8008,9008,10000-10013,10100,11000-11019,12008,13008 \
  175. protocol=udp src-address=10.20.3.0
  176. add action=drop chain=forward comment="Game-Blokir PUBG" dst-port=\
  177. 8011,9030,10491,10612,12235,13004,13748,17000,17500,20000-20002 protocol=\
  178. udp src-address=10.20.3.0
  179. add action=drop chain=forward dst-port=\
  180. 7086-7995,10039,10096,11455,12070-12460,13894,13972,41182-41192 protocol=\
  181. udp src-address=10.20.3.0
  182. add action=drop chain=forward dst-port=\
  183. 7889,10012,13004,14000,17000,17500,18081,20000-20002,20371 protocol=tcp \
  184. src-address=10.20.3.0
  185. add action=drop chain=forward comment="Game-Blokir Genshin Impact" dst-port=\
  186. 42472 protocol=tcp src-address=10.20.3.0
  187. add action=drop chain=forward dst-port=42472,22101-22102 protocol=udp \
  188. src-address=10.20.3.0
  189. add action=drop chain=forward comment="Game-Blokir Call of Duty" dst-port=\
  190. 3013,10000-10019,18082,50000,65010,65050 protocol=tcp src-address=\
  191. 10.20.3.0
  192. add action=drop chain=forward dst-port=\
  193. 7085-7995,8700,9030,10010-10019,17000-20100 protocol=udp src-address=\
  194. 10.20.3.0
  195. add action=drop chain=forward comment="Game-Blokir AOV" dst-port=10001-10094 \
  196. protocol=tcp src-address=10.20.3.0
  197. add action=drop chain=forward comment=COC dst-port=9330-9340 protocol=udp \
  198. src-address=10.20.3.0
  199. add action=drop chain=forward comment=COC dst-port=9330-9340 protocol=tcp \
  200. src-address=10.20.3.0
  201. add action=drop chain=forward dst-port=16300-16350 protocol=udp src-address=\
  202. 10.20.3.0
  203. add action=drop chain=forward comment=LOL dst-port=2080-2099 protocol=tcp \
  204. src-address=10.20.3.0
  205. add action=drop chain=forward comment=LOL dst-port=5100 protocol=udp \
  206. src-address=10.20.3.0
  207. add action=drop chain=forward comment=DOTA2 dst-port=\
  208. 9100-9200,8230-8250,8110-8120,27000-28998 protocol=tcp src-address=\
  209. 10.20.3.0
  210. add action=drop chain=forward dst-port=27000-28998,39000 protocol=udp \
  211. src-address=10.20.3.0
  212. add action=drop chain=forward comment="FIFA ONLINE" dst-port=7770-7790 \
  213. protocol=tcp src-address=10.20.3.0
  214. add action=drop chain=forward dst-port=10101-10201,10080-10110,17000-18000 \
  215. protocol=udp src-address=10.20.3.0
  216. add action=drop chain=forward comment=Blok-Facebook dst-address-list=\
  217. Facebook-List
  218. add action=drop chain=output dst-address-list=Facebook-List
  219. add action=drop chain=output comment="Blokir IG" dst-address-list=IG-List
  220. add action=drop chain=forward dst-address-list=IG-List
  221. add action=drop chain=forward comment="Blokir Twitter" dst-address-list=\
  222. Twitter-List
  223. add action=drop chain=output dst-address-list=Twitter-List
  224. add action=drop chain=output comment="Blokir SnackVideo" dst-address-list=\
  225. SnackVideo-List
  226. add action=drop chain=forward dst-address-list=SnackVideo-List
  227. /ip firewall nat
  228. add action=passthrough chain=unused-hs-chain comment=\
  229. "place hotspot rules here" disabled=yes
  230. add action=masquerade chain=srcnat out-interface=ether1_ISP
  231. add action=masquerade chain=srcnat comment="masquerade hotspot network" \
  232. src-address=10.20.3.0/24
  233. /ip firewall raw
  234. add action=add-dst-to-address-list address-list=TikTok-List \
  235. address-list-timeout=none-dynamic chain=prerouting comment=TIKTOK \
  236. content=.tiktok.com dst-address-list=!IP-Hotspot-Rumah src-address-list=\
  237. IP-Hotspot-Rumah
  238. add action=add-dst-to-address-list address-list=TikTok-List \
  239. address-list-timeout=none-dynamic chain=prerouting content=.tiktokv.com \
  240. dst-address-list=!IP-Hotspot-Rumah src-address-list=IP-Hotspot-Rumah
  241. add action=add-dst-to-address-list address-list=TikTok-List \
  242. address-list-timeout=none-dynamic chain=prerouting content=.tiktokcdn.com \
  243. dst-address-list=!IP-Hotspot-Rumah src-address-list=IP-Hotspot-Rumah
  244. add action=add-dst-to-address-list address-list=TikTok-List \
  245. address-list-timeout=none-dynamic chain=prerouting content=\
  246. .byteoversea.com dst-address-list=!IP-Hotspot-Rumah src-address-list=\
  247. IP-Hotspot-Rumah
  248. add action=add-dst-to-address-list address-list=TikTok-List \
  249. address-list-timeout=none-dynamic chain=prerouting content=.ibyteimg.com \
  250. dst-address-list=!IP-Hotspot-Rumah src-address-list=IP-Hotspot-Rumah
  251. add action=add-dst-to-address-list address-list=TikTok-List \
  252. address-list-timeout=none-dynamic chain=prerouting content=.ibytedtos.com \
  253. dst-address-list=!IP-Hotspot-Rumah src-address-list=IP-Hotspot-Rumah
  254. add action=add-dst-to-address-list address-list=TikTok-List \
  255. address-list-timeout=none-dynamic chain=prerouting content=.myqcloud.com \
  256. dst-address-list=!IP-Hotspot-Rumah src-address-list=IP-Hotspot-Rumah
  257. add action=add-dst-to-address-list address-list=TikTok-List \
  258. address-list-timeout=none-dynamic chain=prerouting content=.myqcloud.com \
  259. dst-address-list=!IP-Hotspot-Rumah src-address-list=IP-Hotspot-Rumah
  260. add action=add-dst-to-address-list address-list=YouTube-List \
  261. address-list-timeout=none-dynamic chain=prerouting comment=YOUTUBE \
  262. content=.youtube.com dst-address-list=!IP-Hotspot-Rumah src-address-list=\
  263. IP-Hotspot-Rumah
  264. add action=add-dst-to-address-list address-list=YouTube-List \
  265. address-list-timeout=none-dynamic chain=prerouting content=\
  266. .googlevideo.com dst-address-list=!IP-Hotspot-Rumah src-address-list=\
  267. IP-Hotspot-Rumah
  268. add action=add-dst-to-address-list address-list=YouTube-List \
  269. address-list-timeout=none-dynamic chain=prerouting content=.ytimg.com \
  270. dst-address-list=!IP-Hotspot-Rumah src-address-list=IP-Hotspot-Rumah
  271. add action=add-dst-to-address-list address-list=Facebook-List \
  272. address-list-timeout=none-dynamic chain=prerouting comment=FACEBOOK \
  273. content=.facebook.com dst-address-list=!IP-Hotspot-umum src-address-list=\
  274. IP-Hotspot-umum
  275. add action=add-dst-to-address-list address-list=Facebook-List \
  276. address-list-timeout=none-dynamic chain=prerouting content=.facebook.net \
  277. dst-address-list=!IP-Hotspot-umum src-address-list=IP-Hotspot-umum
  278. add action=add-dst-to-address-list address-list=Facebook-List \
  279. address-list-timeout=none-dynamic chain=prerouting content=.fbcdn.net \
  280. dst-address-list=!IP-Hotspot-umum src-address-list=IP-Hotspot-umum
  281. add action=add-dst-to-address-list address-list=Facebook-List \
  282. address-list-timeout=none-dynamic chain=prerouting content=fb.com \
  283. dst-address-list=!IP-Hotspot-umum src-address-list=IP-Hotspot-umum
  284. add action=add-dst-to-address-list address-list=Facebook-List \
  285. address-list-timeout=none-dynamic chain=prerouting content=.fbsbx.com \
  286. dst-address-list=!IP-Hotspot-umum src-address-list=IP-Hotspot-umum
  287. add action=add-dst-to-address-list address-list=Facebook-List \
  288. address-list-timeout=none-dynamic chain=prerouting content=fb.gg \
  289. dst-address-list=!IP-Hotspot-umum src-address-list=IP-Hotspot-umum
  290. add action=add-dst-to-address-list address-list=Facebook-List \
  291. address-list-timeout=none-dynamic chain=prerouting content=fbwat.ch \
  292. dst-address-list=!IP-Hotspot-umum src-address-list=IP-Hotspot-umum
  293. add action=add-dst-to-address-list address-list=Facebook-List \
  294. address-list-timeout=none-dynamic chain=prerouting content=messenger.com \
  295. dst-address-list=!IP-Hotspot-umum src-address-list=IP-Hotspot-umum
  296. add action=add-dst-to-address-list address-list=Facebook-List \
  297. address-list-timeout=none-dynamic chain=prerouting content=m.me \
  298. dst-address-list=!IP-Hotspot-umum src-address-list=IP-Hotspot-umum
  299. add action=add-dst-to-address-list address-list=IG-List address-list-timeout=\
  300. none-dynamic chain=prerouting comment=IG content=.instagram.com \
  301. dst-address-list=!IP-Hotspot-umum src-address-list=IP-Hotspot-umum
  302. add action=add-dst-to-address-list address-list=IG-List address-list-timeout=\
  303. none-dynamic chain=prerouting content=.cdninstagram.com dst-address-list=\
  304. !IP-Hotspot-umum src-address-list=IP-Hotspot-umum
  305. add action=add-dst-to-address-list address-list=Twitter-List \
  306. address-list-timeout=none-dynamic chain=prerouting comment=Twitter \
  307. content=twitter.com dst-address-list=!IP-Hotspot-umum src-address-list=\
  308. IP-Hotspot-umum
  309. add action=add-dst-to-address-list address-list=Twitter-List \
  310. address-list-timeout=none-dynamic chain=prerouting content=.twitter.com \
  311. dst-address-list=!IP-Hotspot-umum src-address-list=IP-Hotspot-umum
  312. add action=add-dst-to-address-list address-list=Twitter-List \
  313. address-list-timeout=none-dynamic chain=prerouting content=.twimg.com \
  314. dst-address-list=!IP-Hotspot-umum src-address-list=IP-Hotspot-umum
  315. add action=add-dst-to-address-list address-list=Twitter-List \
  316. address-list-timeout=none-dynamic chain=prerouting content=t.co \
  317. dst-address-list=!IP-Hotspot-umum src-address-list=IP-Hotspot-umum
  318. add action=add-dst-to-address-list address-list=SnackVideo-List \
  319. address-list-timeout=none-dynamic chain=prerouting comment=SnackVideo \
  320. content=.snackvideo.com dst-address-list=!IP-Hotspot-umum \
  321. src-address-list=IP-Hotspot-umum
  322. add action=add-dst-to-address-list address-list=SnackVideo-List \
  323. address-list-timeout=none-dynamic chain=prerouting content=.myqcloud.com \
  324. dst-address-list=!IP-Hotspot-umum src-address-list=IP-Hotspot-umum
  325. add action=add-dst-to-address-list address-list=SnackVideo-List \
  326. address-list-timeout=none-dynamic chain=prerouting content=.snackvideo.in \
  327. dst-address-list=!IP-Hotspot-umum src-address-list=IP-Hotspot-umum
  328. /ip hotspot user
  329. add comment="feb/28/2022 06:58:11" limit-bytes-total=1073741824 limit-uptime=\
  330. 2d name=tkvg6925 password=tkvg6925 profile=1gb_2d_5000_1M_1M
  331.  
  332.  
  333. /ip proxy
  334. set enabled=yes
  335. /system clock
  336. set time-zone-name=Asia/Jakarta
  337. /system identity
  338. set name=Sebuahhobi
  339. /system logging
  340. add action=disk prefix=-> topics=hotspot,info,debug
  341. /system ntp client
  342. set enabled=yes server-dns-names=id.pool.ntp.org
  343. /system scheduler
  344. add comment="Monitor Profile 1gb_2d_5000_1M_1M" interval=2m33s name=\
  345. 1gb_2d_5000_1M_1M on-event=":local dateint do={:local montharray ( \"jan\"\
  346. ,\"feb\",\"mar\",\"apr\",\"may\",\"jun\",\"jul\",\"aug\",\"sep\",\"oct\",\
  347. \"nov\",\"dec\" );:local days [ :pick \$d 4 6 ];:local month [ :pick \$d 0\
  348. \_3 ];:local year [ :pick \$d 7 11 ];:local monthint ([ :find \$montharray\
  349. \_\$month]);:local month (\$monthint + 1);:if ( [len \$month] = 1) do={:lo\
  350. cal zero (\"0\");:return [:tonum (\"\$year\$zero\$month\$days\")];} else={\
  351. :return [:tonum (\"\$year\$month\$days\")];}}; :local timeint do={ :local \
  352. hours [ :pick \$t 0 2 ]; :local minutes [ :pick \$t 3 5 ]; :return (\$hour\
  353. s * 60 + \$minutes) ; }; :local date [ /system clock get date ]; :local ti\
  354. me [ /system clock get time ]; :local today [\$dateint d=\$date] ; :local \
  355. curtime [\$timeint t=\$time] ; :foreach i in [ /ip hotspot user find where\
  356. \_profile=\"1gb_2d_5000_1M_1M\" ] do={ :local comment [ /ip hotspot user g\
  357. et \$i comment]; :local name [ /ip hotspot user get \$i name]; :local gett\
  358. ime [:pic \$comment 12 20]; :if ([:pic \$comment 3] = \"/\" and [:pic \$co\
  359. mment 6] = \"/\") do={:local expd [\$dateint d=\$comment] ; :local expt [\
  360. \$timeint t=\$gettime] ; :if ((\$expd < \$today and \$expt < \$curtime) or\
  361. \_(\$expd < \$today and \$expt > \$curtime) or (\$expd = \$today and \$exp\
  362. t < \$curtime)) do={ [ /ip hotspot user remove \$i ]; [ /ip hotspot active\
  363. \_remove [find where user=\$name] ];}}}" policy=\
  364. ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon \
  365. start-date=dec/27/2021 start-time=05:18:19
  366. add comment="Monitor Profile 2gb_7d_10000_512k_1M" interval=2m10s name=\
  367. 2gb_7d_10000_512k_1M on-event=":local dateint do={:local montharray ( \"ja\
  368. n\",\"feb\",\"mar\",\"apr\",\"may\",\"jun\",\"jul\",\"aug\",\"sep\",\"oct\
  369. \",\"nov\",\"dec\" );:local days [ :pick \$d 4 6 ];:local month [ :pick \$\
  370. d 0 3 ];:local year [ :pick \$d 7 11 ];:local monthint ([ :find \$montharr\
  371. ay \$month]);:local month (\$monthint + 1);:if ( [len \$month] = 1) do={:l\
  372. ocal zero (\"0\");:return [:tonum (\"\$year\$zero\$month\$days\")];} else=\
  373. {:return [:tonum (\"\$year\$month\$days\")];}}; :local timeint do={ :local\
  374. \_hours [ :pick \$t 0 2 ]; :local minutes [ :pick \$t 3 5 ]; :return (\$ho\
  375. urs * 60 + \$minutes) ; }; :local date [ /system clock get date ]; :local \
  376. time [ /system clock get time ]; :local today [\$dateint d=\$date] ; :loca\
  377. l curtime [\$timeint t=\$time] ; :foreach i in [ /ip hotspot user find whe\
  378. re profile=\"2gb_7d_10000_512k_1M\" ] do={ :local comment [ /ip hotspot us\
  379. er get \$i comment]; :local name [ /ip hotspot user get \$i name]; :local \
  380. gettime [:pic \$comment 12 20]; :if ([:pic \$comment 3] = \"/\" and [:pic \
  381. \$comment 6] = \"/\") do={:local expd [\$dateint d=\$comment] ; :local exp\
  382. t [\$timeint t=\$gettime] ; :if ((\$expd < \$today and \$expt < \$curtime)\
  383. \_or (\$expd < \$today and \$expt > \$curtime) or (\$expd = \$today and \$\
  384. expt < \$curtime)) do={ [ /ip hotspot user remove \$i ]; [ /ip hotspot act\
  385. ive remove [find where user=\$name] ];}}}" policy=\
  386. ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon \
  387. start-date=dec/27/2021 start-time=05:32:25
  388. add comment="Monitor Profile 10gb_30d_50000_1M_1536k" interval=2m33s name=\
  389. 10gb_30d_50000_1M_1536k on-event=":local dateint do={:local montharray ( \
  390. \"jan\",\"feb\",\"mar\",\"apr\",\"may\",\"jun\",\"jul\",\"aug\",\"sep\",\"\
  391. oct\",\"nov\",\"dec\" );:local days [ :pick \$d 4 6 ];:local month [ :pick\
  392. \_\$d 0 3 ];:local year [ :pick \$d 7 11 ];:local monthint ([ :find \$mont\
  393. harray \$month]);:local month (\$monthint + 1);:if ( [len \$month] = 1) do\
  394. ={:local zero (\"0\");:return [:tonum (\"\$year\$zero\$month\$days\")];} e\
  395. lse={:return [:tonum (\"\$year\$month\$days\")];}}; :local timeint do={ :l\
  396. ocal hours [ :pick \$t 0 2 ]; :local minutes [ :pick \$t 3 5 ]; :return (\
  397. \$hours * 60 + \$minutes) ; }; :local date [ /system clock get date ]; :lo\
  398. cal time [ /system clock get time ]; :local today [\$dateint d=\$date] ; :\
  399. local curtime [\$timeint t=\$time] ; :foreach i in [ /ip hotspot user find\
  400. \_where profile=\"10gb_30d_50000_1M_1536k\" ] do={ :local comment [ /ip ho\
  401. tspot user get \$i comment]; :local name [ /ip hotspot user get \$i name];\
  402. \_:local gettime [:pic \$comment 12 20]; :if ([:pic \$comment 3] = \"/\" a\
  403. nd [:pic \$comment 6] = \"/\") do={:local expd [\$dateint d=\$comment] ; :\
  404. local expt [\$timeint t=\$gettime] ; :if ((\$expd < \$today and \$expt < \
  405. \$curtime) or (\$expd < \$today and \$expt > \$curtime) or (\$expd = \$tod\
  406. ay and \$expt < \$curtime)) do={ [ /ip hotspot user remove \$i ]; [ /ip ho\
  407. tspot active remove [find where user=\$name] ];}}}" policy=\
  408. ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon \
  409. start-date=dec/27/2021 start-time=05:57:13
  410. add comment="Monitor Profile 15gb_30d_75000_1M_1536k" interval=2m24s name=\
  411. 15gb_30d_75000_1M_1536k on-event=":local dateint do={:local montharray ( \
  412. \"jan\",\"feb\",\"mar\",\"apr\",\"may\",\"jun\",\"jul\",\"aug\",\"sep\",\"\
  413. oct\",\"nov\",\"dec\" );:local days [ :pick \$d 4 6 ];:local month [ :pick\
  414. \_\$d 0 3 ];:local year [ :pick \$d 7 11 ];:local monthint ([ :find \$mont\
  415. harray \$month]);:local month (\$monthint + 1);:if ( [len \$month] = 1) do\
  416. ={:local zero (\"0\");:return [:tonum (\"\$year\$zero\$month\$days\")];} e\
  417. lse={:return [:tonum (\"\$year\$month\$days\")];}}; :local timeint do={ :l\
  418. ocal hours [ :pick \$t 0 2 ]; :local minutes [ :pick \$t 3 5 ]; :return (\
  419. \$hours * 60 + \$minutes) ; }; :local date [ /system clock get date ]; :lo\
  420. cal time [ /system clock get time ]; :local today [\$dateint d=\$date] ; :\
  421. local curtime [\$timeint t=\$time] ; :foreach i in [ /ip hotspot user find\
  422. \_where profile=\"15gb_30d_75000_1M_1536k\" ] do={ :local comment [ /ip ho\
  423. tspot user get \$i comment]; :local name [ /ip hotspot user get \$i name];\
  424. \_:local gettime [:pic \$comment 12 20]; :if ([:pic \$comment 3] = \"/\" a\
  425. nd [:pic \$comment 6] = \"/\") do={:local expd [\$dateint d=\$comment] ; :\
  426. local expt [\$timeint t=\$gettime] ; :if ((\$expd < \$today and \$expt < \
  427. \$curtime) or (\$expd < \$today and \$expt > \$curtime) or (\$expd = \$tod\
  428. ay and \$expt < \$curtime)) do={ [ /ip hotspot user remove \$i ]; [ /ip ho\
  429. tspot active remove [find where user=\$name] ];}}}" policy=\
  430. ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon \
  431. start-date=dec/27/2021 start-time=02:29:28
  432. add comment="Monitor Profile unlimited_30d_150000_1M_1536k" interval=2m19s \
  433. name=unlimited_30d_150000_1M_1536k on-event=":local dateint do={:local mon\
  434. tharray ( \"jan\",\"feb\",\"mar\",\"apr\",\"may\",\"jun\",\"jul\",\"aug\",\
  435. \"sep\",\"oct\",\"nov\",\"dec\" );:local days [ :pick \$d 4 6 ];:local mon\
  436. th [ :pick \$d 0 3 ];:local year [ :pick \$d 7 11 ];:local monthint ([ :fi\
  437. nd \$montharray \$month]);:local month (\$monthint + 1);:if ( [len \$month\
  438. ] = 1) do={:local zero (\"0\");:return [:tonum (\"\$year\$zero\$month\$day\
  439. s\")];} else={:return [:tonum (\"\$year\$month\$days\")];}}; :local timein\
  440. t do={ :local hours [ :pick \$t 0 2 ]; :local minutes [ :pick \$t 3 5 ]; :\
  441. return (\$hours * 60 + \$minutes) ; }; :local date [ /system clock get dat\
  442. e ]; :local time [ /system clock get time ]; :local today [\$dateint d=\$d\
  443. ate] ; :local curtime [\$timeint t=\$time] ; :foreach i in [ /ip hotspot u\
  444. ser find where profile=\"unlimited_30d_150000_1M_1536k\" ] do={ :local com\
  445. ment [ /ip hotspot user get \$i comment]; :local name [ /ip hotspot user g\
  446. et \$i name]; :local gettime [:pic \$comment 12 20]; :if ([:pic \$comment \
  447. 3] = \"/\" and [:pic \$comment 6] = \"/\") do={:local expd [\$dateint d=\$\
  448. comment] ; :local expt [\$timeint t=\$gettime] ; :if ((\$expd < \$today an\
  449. d \$expt < \$curtime) or (\$expd < \$today and \$expt > \$curtime) or (\$e\
  450. xpd = \$today and \$expt < \$curtime)) do={ [ /ip hotspot user remove \$i \
  451. ]; [ /ip hotspot active remove [find where user=\$name] ];}}}" policy=\
  452. ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon \
  453. start-date=feb/06/2022 start-time=01:49:26
  454. add comment="Monitor Profile 1_tahun_wa_rumah_1M_1M_50Gb" interval=2m28s \
  455. name=1_tahun_wa_rumah_1M_1M_50Gb on-event=":local dateint do={:local month\
  456. array ( \"jan\",\"feb\",\"mar\",\"apr\",\"may\",\"jun\",\"jul\",\"aug\",\"\
  457. sep\",\"oct\",\"nov\",\"dec\" );:local days [ :pick \$d 4 6 ];:local month\
  458. \_[ :pick \$d 0 3 ];:local year [ :pick \$d 7 11 ];:local monthint ([ :fin\
  459. d \$montharray \$month]);:local month (\$monthint + 1);:if ( [len \$month]\
  460. \_= 1) do={:local zero (\"0\");:return [:tonum (\"\$year\$zero\$month\$day\
  461. s\")];} else={:return [:tonum (\"\$year\$month\$days\")];}}; :local timein\
  462. t do={ :local hours [ :pick \$t 0 2 ]; :local minutes [ :pick \$t 3 5 ]; :\
  463. return (\$hours * 60 + \$minutes) ; }; :local date [ /system clock get dat\
  464. e ]; :local time [ /system clock get time ]; :local today [\$dateint d=\$d\
  465. ate] ; :local curtime [\$timeint t=\$time] ; :foreach i in [ /ip hotspot u\
  466. ser find where profile=\"1_tahun_wa_rumah_1M_1M_50Gb\" ] do={ :local comme\
  467. nt [ /ip hotspot user get \$i comment]; :local name [ /ip hotspot user get\
  468. \_\$i name]; :local gettime [:pic \$comment 12 20]; :if ([:pic \$comment 3\
  469. ] = \"/\" and [:pic \$comment 6] = \"/\") do={:local expd [\$dateint d=\$c\
  470. omment] ; :local expt [\$timeint t=\$gettime] ; :if ((\$expd < \$today and\
  471. \_\$expt < \$curtime) or (\$expd < \$today and \$expt > \$curtime) or (\$e\
  472. xpd = \$today and \$expt < \$curtime)) do={ [ /ip hotspot user remove \$i \
  473. ]; [ /ip hotspot active remove [find where user=\$name] ];}}}" policy=\
  474. ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon \
  475. start-date=feb/23/2022 start-time=04:43:54
  476.  
Add Comment
Please, Sign In to add comment