Advertisement
supriyadi_kahar

backup mikrotik hotspot

Mar 26th, 2018
3,048
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 62.01 KB | None | 0 0
  1. # mar/27/2018 06:19:25 by RouterOS 6.39.3
  2. # software id = GDRH-YMBL
  3. #
  4. /interface ethernet
  5. set [ find default-name=ether3 ] arp=proxy-arp mac-address=74:97:81:09:59:57 \
  6. name=Hotspot
  7. set [ find default-name=ether1 ] mac-address=74:97:81:09:69:C7 name=\
  8. Modem_Browser
  9. set [ find default-name=ether5 ] mac-address=74:97:81:09:69:DD name=To-STB
  10. set [ find default-name=ether2 ] mac-address=74:97:81:09:69:CC name=UsetTv
  11. /interface wireless
  12. set [ find default-name=wlan1 ] arp=proxy-arp band=2ghz-b/g/n frequency=2437 \
  13. mode=ap-bridge multicast-helper=full radio-name=cafe ssid=Cafe_Keluarga \
  14. wireless-protocol=802.11 wps-mode=disabled
  15. /interface pptp-client
  16. add comment=DNS4Free connect-to=103.80.80.112 disabled=no name=DNS4Free \
  17. password=!QAZ2wsx#EDC4rfv user=DNS4Free
  18. /interface wireless security-profiles
  19. set [ find default=yes ] supplicant-identity=MikroTik
  20. /ip dhcp-client option
  21. add code=12 name=hostuseetv value="'SU170000668209106-STB-USEETV'"
  22. add code=12 name=hostuseetv2 value="'WP87020178104877-STB-USEETV'"
  23. /ip firewall layer7-protocol
  24. add name=EXE regexp="\\x4d\\x5a(\\x90\\x03|\\x50\\x02)\\x04"
  25. add name=ZIP regexp="pk\\x03\\x04\\x14"
  26. add name=MP4 regexp="\\x18\\x66\\x74\\x79\\x70"
  27. add name=RAR regexp="Rar\\x21\\x1a\\x07"
  28. add name=youtube regexp="r[0-9]+---[a-z]+-+[a-z0-9-]+\\.googlevideo\\.com"
  29. add name=download regexp="^.*get.+\\.(exe|rar|iso|zip|7zip|flv|mkv|avi|mp4|3gp\
  30. |rmvb|mp3|img|dat|mov).*\$"
  31. add name=High regexp="^.*get.+\\.(exe|rar|iso|zip|7zip|0[0-9][1-9]|flv|mkv|avi\
  32. |mp4|3gp|rmvb|mp3|img|dat|mov).*\$"
  33. /ip hotspot profile
  34. set [ find default=yes ] login-by=http-chap,trial,mac-cookie use-radius=yes
  35. /ip hotspot user profile
  36. set [ find default=yes ] insert-queue-before=bottom keepalive-timeout=5m \
  37. shared-users=5 status-autorefresh=3m
  38. add name="1. Aqua Class Rp. 5.000 4 Jam" on-login="{\r\
  39. \n:local usernya \$user;\r\
  40. \n:if ([/ip hotspot user find name=\$usernya limit-uptime=4h]=\"\") do={/i\
  41. p hotspot user set [find name=\$usernya] limit-uptime=4h\r\
  42. \n/ip hotspot active remove [find user=\$usernya]\r\
  43. \n}\r\
  44. \n:if ([/system schedule find name=\$usernya]=\"\") do={\r\
  45. \n/system schedule add name=\$usernya interval=2d on-event=\"/ip hotspot u\
  46. ser remove [find name=\$usernya]\\r\\n/ip hotspot active remove [find user\
  47. =\$usernya]\\r\\n/system schedule remove [find name=\$usernya]\\r\\n/ip ho\
  48. tspot cookie remove [find user=\$usernya]\"\r\
  49. \n}\r\
  50. \n}" on-logout="/tool fetch \"https://api.telegram.org/bot492969668:AAER40\
  51. y5KC3a6q1oGRIscW2WkJ9u8DaiSCY/sendMessage\?chat_id=458752171&text=\$user%2\
  52. 0Logged%20out\" mode=http dst-path=login.txt"
  53. add name="2. Kopi Hitam Rp. 10.000 4 Jam" on-login="{\r\
  54. \n:local usernya \$user;\r\
  55. \n:if ([/ip hotspot user find name=\$usernya limit-uptime=4h]=\"\") do={/i\
  56. p hotspot user set [find name=\$usernya] limit-uptime=4h\r\
  57. \n/ip hotspot active remove [find user=\$usernya]\r\
  58. \n}\r\
  59. \n:if ([/system schedule find name=\$usernya]=\"\") do={\r\
  60. \n/system schedule add name=\$usernya interval=1d on-event=\"/ip hotspot u\
  61. ser remove [find name=\$usernya]\\r\\n/ip hotspot active remove [find user\
  62. =\$usernya]\\r\\n/system schedule remove [find name=\$usernya]\\r\\n/ip ho\
  63. tspot cookie remove [find user=\$usernya]\"\r\
  64. \n}\r\
  65. \n}" on-logout="/tool fetch \"https://api.telegram.org/bot492969668:AAER40\
  66. y5KC3a6q1oGRIscW2WkJ9u8DaiSCY/sendMessage\?chat_id=458752171&text=\$user%2\
  67. 0Logged%20out\" mode=http dst-path=login.txt"
  68. add name="3. Kopi sachet Rp. 20.000 24 Jam" on-login="{\r\
  69. \n:local usernya \$user;\r\
  70. \n:local macaddressnya \$\"mac-address\";\r\
  71. \n:if ([/system schedule find name=\$usernya]=\"\") do={\r\
  72. \n/ip hotspot user set mac-address=\$\"macaddressnya\" comment=\"used\" [f\
  73. ind name=\$usernya]\r\
  74. \n/system schedule add name=\$usernya interval=1d on-event=\"/ip hotspot u\
  75. ser remove [find name=\$usernya]\\r\\n/ip hotspot active remove [find user\
  76. =\$usernya]\\r\\n/system schedule remove [find name=\$usernya]\\r\\n/ip ho\
  77. tspot cookie remove [find user=\$usernya]\"\r\
  78. \n}\r\
  79. \n}" on-logout="/tool fetch \"https://api.telegram.org/bot492969668:AAER40\
  80. y5KC3a6q1oGRIscW2WkJ9u8DaiSCY/sendMessage\?chat_id=458752171&text=\$user%2\
  81. 0Logged%20out\" mode=http dst-path=login.txt"
  82. add keepalive-timeout=5m name="userman paket 4 jam" on-login="/tool fetch \"ht\
  83. tps://api.telegram.org/bot492969668:AAER40y5KC3a6q1oGRIscW2WkJ9u8DaiSCY/se\
  84. ndMessage\?chat_id=458752171&text=\$user%20Logged%20in\" mode=http dst-pat\
  85. h=login.txt" on-logout="/tool fetch \"https://api.telegram.org/bot49296966\
  86. 8:AAER40y5KC3a6q1oGRIscW2WkJ9u8DaiSCY/sendMessage\?chat_id=458752171&text=\
  87. \$user%20Logged%20out\" mode=http dst-path=login.txt" status-autorefresh=\
  88. 3m
  89. add keepalive-timeout=5m name="userman paket 19 jam" on-login="/tool fetch \"h\
  90. ttps://api.telegram.org/bot492969668:AAER40y5KC3a6q1oGRIscW2WkJ9u8DaiSCY/s\
  91. endMessage\?chat_id=458752171&text=\$user%20Logged%20in\" mode=http dst-pa\
  92. th=login.txt" on-logout="/tool fetch \"https://api.telegram.org/bot4929696\
  93. 68:AAER40y5KC3a6q1oGRIscW2WkJ9u8DaiSCY/sendMessage\?chat_id=458752171&text\
  94. =\$user%20Logged%20out\" mode=http dst-path=login.txt" \
  95. status-autorefresh=3m
  96. add keepalive-timeout=5m name="userman paket Qouta" on-login="/tool fetch \"ht\
  97. tps://api.telegram.org/bot492969668:AAER40y5KC3a6q1oGRIscW2WkJ9u8DaiSCY/se\
  98. ndMessage\?chat_id=458752171&text=\$user%20Logged%20in\" mode=http dst-pat\
  99. h=login.txt" on-logout="/tool fetch \"https://api.telegram.org/bot49296966\
  100. 8:AAER40y5KC3a6q1oGRIscW2WkJ9u8DaiSCY/sendMessage\?chat_id=458752171&text=\
  101. \$user%20Logged%20out\" mode=http dst-path=login.txt" status-autorefresh=\
  102. 3m
  103. add add-mac-cookie=no !mac-cookie-timeout name=FreeUser on-login="{\r\
  104. \n:local usernya \$user;\r\
  105. \n:if ([/ip hotspot user find name=\$usernya limit-bytes-out=20971520]=\"\
  106. \") do={/ip hotspot user set [find name=\$usernya] limit-bytes-out=2097152\
  107. 0\r\
  108. \n/ip hotspot active remove [find user=\$usernya]\r\
  109. \n}\r\
  110. \n:if ([/system schedule find name=\$usernya]=\"\") do={\r\
  111. \n/system schedule add name=\$usernya interval=7d on-event=\"/ip hotspot u\
  112. ser remove [find name=\$usernya]\\r\\n/ip hotspot active remove [find user\
  113. =\$usernya]\\r\\n/system schedule remove [find name=\$usernya]\\r\\n/syste\
  114. m schedule remove [find name=\$usernya]\\r\\n/ip hotspot cookie remove [fi\
  115. nd user=\$usernya]\"\r\
  116. \n}\r\
  117. \n}" on-logout="/tool fetch \"https://api.telegram.org/bot492969668:AAER40\
  118. y5KC3a6q1oGRIscW2WkJ9u8DaiSCY/sendMessage\?chat_id=458752171&text=\$user%2\
  119. 0Logged%20out\" mode=http dst-path=login.txt"
  120. add insert-queue-before=bottom keepalive-timeout=5m name=xx on-login="{\r\
  121. \n:local usernya \$user;\r\
  122. \n:if ([/ip hotspot user find name=\$usernya limit-bytes-out=92]=\"\") do=\
  123. {/ip hotspot user set [find name=\$usernya] limit-bytes-out=92\r\
  124. \n/ip hotspot active remove [find user=\$usernya]\r\
  125. \n}\r\
  126. \n:if ([/system schedule find name=\$usernya]=\"\") do={\r\
  127. \n/system schedule add name=\$usernya interval=31d on-event=\"/ip hotspot \
  128. user disable [find name=\$usernya]\\r\\n/ip hotspot active remove [find us\
  129. er=\$usernya]\\r\\n/system schedule remove [find name=\$usernya]\\r\\n/sys\
  130. tem schedule remove [find name=\$usernya]\\r\\n/ip hotspot cookie remove [\
  131. find user=\$usernya]\"\r\
  132. \n}\r\
  133. \n}" on-logout="{\r\
  134. \n:local usernya \$user;\r\
  135. \n:if ([/ip hotspot user get [find name=\$usernya] bytes-out] >= [/ip hots\
  136. pot user get [find name=\$usernya] limit-bytes-out]) do={\r\
  137. \n/ip hotspot user set limit-bytes-out=0 profile=\"qouta_habis\" [find nam\
  138. e=\$usernya]\r\
  139. \n}\r\
  140. \n}" shared-users=5 status-autorefresh=3m
  141. add insert-queue-before=bottom keepalive-timeout=5m name="Pelanggan Uset TV" \
  142. shared-users=5 status-autorefresh=3m
  143. /ip hotspot profile
  144. add dns-name=www.hotspottoraja.net hotspot-address=192.168.1.2 login-by=\
  145. mac,http-chap,trial,mac-cookie name=hsprof1 trial-uptime-reset=3d \
  146. trial-user-profile=FreeUser use-radius=yes
  147. add dns-name=wifi.login hotspot-address=192.168.1.2 login-by=\
  148. mac,http-chap,trial,mac-cookie name=hsprof2 trial-uptime-reset=3d \
  149. trial-user-profile=FreeUser use-radius=yes
  150. /ip pool
  151. add name=hotspot ranges=192.168.1.50,192.168.1.51-192.168.1.254
  152. add name=dhcp_pool1 ranges=\
  153. 10.116.32.1-10.116.45.137,10.116.45.139-10.116.47.254
  154. add name=dhcp_pool2 ranges=\
  155. 10.116.32.1-10.116.45.137,10.116.45.139-10.116.47.254
  156. add name=ip_pelanggan_uset_TV ranges=192.168.20.3,192.168.20.4-192.168.20.254
  157. add name=bulanan ranges=192.168.73.151,192.168.73.152-192.168.73.254
  158. add name=expired ranges=192.168.30.51,192.168.30.52-192.168.30.254
  159. add name=Key ranges=192.168.73.20,192.168.73.21-192.168.73.25
  160. add name=xx ranges=192.168.2.50,192.168.2.51-192.168.2.254
  161. /ip dhcp-server
  162. add address-pool=ip_pelanggan_uset_TV disabled=no interface=To-STB name=STB
  163. add add-arp=yes address-pool=hotspot disabled=no interface=Hotspot \
  164. lease-time=3h name=Hotspot_dhcp
  165. /ip hotspot
  166. add address-pool=hotspot disabled=no interface=Hotspot name=hotspot1 profile=\
  167. hsprof1
  168. /ip hotspot user profile
  169. add add-mac-cookie=no address-pool=expired insert-queue-before=bottom \
  170. keepalive-timeout=5m !mac-cookie-timeout name=expired status-autorefresh=\
  171. 3m
  172. /interface l2tp-client
  173. add connect-to=43.245.186.218 name=l2tp-out1 password=hotspottoraja84 \
  174. profile=default user=hotspottoraja
  175. /queue type
  176. add kind=pcq name=down_pcq pcq-classifier=dst-address pcq-dst-address6-mask=\
  177. 64 pcq-src-address6-mask=64
  178. add kind=pcq name=up_pcq pcq-classifier=src-address pcq-dst-address6-mask=64 \
  179. pcq-src-address6-mask=64
  180. /queue simple
  181. add limit-at=64/64 max-limit=512k/4M name=Hotspot queue=up_pcq/down_pcq \
  182. target=192.168.73.0/24
  183. /ip hotspot user profile
  184. add address-pool=bulanan insert-queue-before=Hotspot keepalive-timeout=5m \
  185. name="userman paket bulanan 1Mbs" on-login="{\r\
  186. \n:local usernya \$user;\r\
  187. \n:if ([/ip hotspot user find name=\$usernya limit-bytes-out=21474836480]=\
  188. \"\") do={/ip hotspot user set [find name=\$usernya] limit-bytes-out=21474\
  189. 836480\r\
  190. \n/ip hotspot active remove [find user=\$usernya]\r\
  191. \n}\r\
  192. \n:if ([/system schedule find name=\$usernya]=\"\") do={\r\
  193. \n/system schedule add name=\$usernya interval=31d on-event=\"/ip hotspot \
  194. user disable [find name=\$usernya]\\r\\n/ip hotspot active remove [find us\
  195. er=\$usernya]\\r\\n/system schedule remove [find name=\$usernya]\\r\\n/sys\
  196. tem schedule remove [find name=\$usernya]\\r\\n/ip hotspot cookie remove [\
  197. find user=\$usernya]\"\r\
  198. \n}\r\
  199. \n}" on-logout="{\r\
  200. \n:local usernya \$user;\r\
  201. \n:if ([/ip hotspot user get [find name=\$usernya] bytes-out] >= [/ip hots\
  202. pot user get [find name=\$usernya] limit-bytes-out]) do={\r\
  203. \n/ip hotspot user set limit-bytes-out=0 profile=\"qouta_habis\" [find nam\
  204. e=\$usernya]\r\
  205. \n}\r\
  206. \n}" parent-queue=Hotspot rate-limit="138k/1024k 0/0m 0/0m 8 8 64/64" \
  207. status-autorefresh=3m
  208. add address-pool=bulanan insert-queue-before=Hotspot keepalive-timeout=5m \
  209. name="userman paket bulanan 2Mbs" on-login="{\r\
  210. \n:local usernya \$user;\r\
  211. \n:if ([/ip hotspot user find name=\$usernya limit-bytes-out=42949672960]=\
  212. \"\") do={/ip hotspot user set [find name=\$usernya] limit-bytes-out=42949\
  213. 672960\r\
  214. \n/ip hotspot active remove [find user=\$usernya]\r\
  215. \n}\r\
  216. \n:if ([/system schedule find name=\$usernya]=\"\") do={\r\
  217. \n/system schedule add name=\$usernya interval=31d on-event=\"/ip hotspot \
  218. user disable [find name=\$usernya]\\r\\n/ip hotspot active remove [find us\
  219. er=\$usernya]\\r\\n/system schedule remove [find name=\$usernya]\\r\\n/sys\
  220. tem schedule remove [find name=\$usernya]\\r\\n/ip hotspot cookie remove [\
  221. find user=\$usernya]\"\r\
  222. \n}\r\
  223. \n}" on-logout="/tool fetch \"https://api.telegram.org/bot492969668:AAER40\
  224. y5KC3a6q1oGRIscW2WkJ9u8DaiSCY/sendMessage\?chat_id=458752171&text=\$user%2\
  225. 0Logged%20out\" mode=http dst-path=login.txt" parent-queue=Hotspot \
  226. rate-limit="256k/2024k 0/0m 0/0m 8 8 64/64" status-autorefresh=3m
  227. add address-pool=bulanan insert-queue-before=Hotspot keepalive-timeout=5m \
  228. name=warnet on-login="{\r\
  229. \n:local usernya \$user;\r\
  230. \n:if ([/system schedule find name=\$usernya]=\"\") do={\r\
  231. \n/system schedule add name=\$usernya interval=7d on-event=\"/ip hotspot u\
  232. ser disable [find name=\$usernya]\\r\\n/ip hotspot active remove [find use\
  233. r=\$usernya]\\r\\n/system schedule remove [find name=\$usernya]\\r\\n/syst\
  234. em schedule remove [find name=\$usernya]\\r\\n/ip hotspot cookie remove [f\
  235. ind user=\$usernya]\"\r\
  236. \n}\r\
  237. \n}" on-logout="/tool fetch \"https://api.telegram.org/bot492969668:AAER40\
  238. y5KC3a6q1oGRIscW2WkJ9u8DaiSCY/sendMessage\?chat_id=458752171&text=\$user%2\
  239. 0Logged%20out\" mode=http dst-path=login.txt" parent-queue=Hotspot \
  240. rate-limit="138k/256 0/0m 0/0m 8 8 64/64" shared-users=5 \
  241. status-autorefresh=3m
  242. add address-pool=bulanan insert-queue-before=Hotspot keepalive-timeout=5m \
  243. mac-cookie-timeout=30m name="Paket Antena free" on-login="{\r\
  244. \n:local usernya \$user;\r\
  245. \n:local resetnya \"reset-counter-\$usernya\";\r\
  246. \n:if ([/ip hotspot user find name=\$usernya limit-bytes-total=2073741824]\
  247. =\"\") do={/ip hotspot user set [find name=\$usernya] limit-bytes-total=20\
  248. 73741824};\r\
  249. \n:if ([/system schedule find name=\$resetnya]=\"\") do={\r\
  250. \n/system schedule add name=\$resetnya start-time=00:00:01 interval=1d on-\
  251. event=\"/ip hotspot user reset-counter [find name=\$usernya]\"\r\
  252. \n}\r\
  253. \n:if ([/system schedule find name=\$usernya]=\"\") do={\r\
  254. \n/system schedule add name=\$usernya interval=365d on-event=\"/ip hotspot\
  255. \_user remove [find name=\$usernya]\\r\\n/ip hotspot active remove [find u\
  256. ser=\$usernya]\\r\\n/system schedule remove [find name=\$resetnya]\\r\\n/s\
  257. ystem schedule remove [find name=\$usernya]\"\r\
  258. \n}\r\
  259. \n}" parent-queue=Hotspot rate-limit="138k/256k 0/1m 0/768k 8 8 64/64" \
  260. status-autorefresh=3m
  261. add insert-queue-before=Hotspot keepalive-timeout=5m name=Paket-Antena-1-Mbs \
  262. on-login="{\r\
  263. \n:local usernya \$user;\r\
  264. \n:if ([/ip hotspot user find name=\$usernya limit-bytes-out=21474836480]=\
  265. \"\") do={/ip hotspot user set [find name=\$usernya] limit-bytes-out=21474\
  266. 836480\r\
  267. \n/ip hotspot active remove [find user=\$usernya]\r\
  268. \n}\r\
  269. \n:if ([/system schedule find name=\$usernya]=\"\") do={\r\
  270. \n/system schedule add name=\$usernya interval=365d on-event=\"/ip hotspot\
  271. \_user disable [find name=\$usernya]\\r\\n/ip hotspot active remove [find \
  272. user=\$usernya]\\r\\n/system schedule remove [find name=\$usernya]\\r\\n/s\
  273. ystem schedule remove [find name=\$usernya]\\r\\n/ip hotspot cookie remove\
  274. \_[find user=\$usernya]\"\r\
  275. \n}\r\
  276. \n}" on-logout="{\r\
  277. \n:local usernya \$user;\r\
  278. \n:if ([/ip hotspot user get [find name=\$usernya] bytes-out] >= [/ip hots\
  279. pot user get [find name=\$usernya] limit-bytes-out]) do={\r\
  280. \n/ip hotspot user set limit-bytes-out=0 profile=\"qouta_habis_1Mbs\" [fin\
  281. d name=\$usernya]\r\
  282. \n}\r\
  283. \n}" parent-queue=Hotspot rate-limit="138k/1024k 0/0m 0/0m 8 8 64/64" \
  284. status-autorefresh=3m
  285. add insert-queue-before=Hotspot keepalive-timeout=5m name=Paket-Antena-2-Mbs \
  286. on-login="{\r\
  287. \n:local usernya \$user;\r\
  288. \n:if ([/ip hotspot user find name=\$usernya limit-bytes-out=42949672960]=\
  289. \"\") do={/ip hotspot user set [find name=\$usernya] limit-bytes-out=42949\
  290. 672960\r\
  291. \n/ip hotspot active remove [find user=\$usernya]\r\
  292. \n}\r\
  293. \n:if ([/system schedule find name=\$usernya]=\"\") do={\r\
  294. \n/system schedule add name=\$usernya interval=31d on-event=\"/ip hotspot \
  295. user disable [find name=\$usernya]\\r\\n/ip hotspot active remove [find us\
  296. er=\$usernya]\\r\\n/system schedule remove [find name=\$usernya]\\r\\n/sys\
  297. tem schedule remove [find name=\$usernya]\\r\\n/ip hotspot cookie remove [\
  298. find user=\$usernya]\"\r\
  299. \n}\r\
  300. \n}" on-logout="{\r\
  301. \n:local usernya \$user;\r\
  302. \n:if ([/ip hotspot user get [find name=\$usernya] bytes-out] >= [/ip hots\
  303. pot user get [find name=\$usernya] limit-bytes-out]) do={\r\
  304. \n/ip hotspot user set limit-bytes-out=0 profile=\"qouta_habis_2Mbs\" [fin\
  305. d name=\$usernya]\r\
  306. \n}\r\
  307. \n}" parent-queue=Hotspot rate-limit="138k/2024k 0/0m 0/0m 8 8 64/64" \
  308. status-autorefresh=3m
  309. add address-pool=bulanan insert-queue-before=Hotspot keepalive-timeout=5m \
  310. name=qouta_habis parent-queue=Hotspot rate-limit=\
  311. "138k/512k 0/0m 0/0m 8 8 64/64" status-autorefresh=3m
  312. add address-pool=bulanan insert-queue-before=Hotspot keepalive-timeout=5m \
  313. name=qouta_habis_1Mbs parent-queue=Hotspot rate-limit=\
  314. "138k/512k 0/0m 0/0m 8 8 64/64" status-autorefresh=3m
  315. add address-pool=bulanan insert-queue-before=Hotspot keepalive-timeout=5m \
  316. name=qouta_habis_2Mbs parent-queue=Hotspot rate-limit=\
  317. "138k/1024k 0/0m 0/0m 8 8 64/64" status-autorefresh=3m
  318. add address-pool=bulanan insert-queue-before=Hotspot keepalive-timeout=5m \
  319. name=qouta_habis_userman_paket_bulanan_2Mbs parent-queue=Hotspot \
  320. rate-limit="138k/1024k 0/0m 0/0m 8 8 64/64" status-autorefresh=3m
  321. /queue simple
  322. add burst-time=8s/8s limit-at=64/64 max-limit=138k/1024k name=Key parent=\
  323. Hotspot queue=up_pcq/down_pcq target="192.168.73.20/32,192.168.73.21/32,19\
  324. 2.168.73.22/32,192.168.73.23/32,192.168.73.24/32,192.168.73.25/32"
  325. /ip hotspot user profile
  326. add address-pool=Key insert-queue-before=Hotspot keepalive-timeout=5m name=\
  327. Paket-Antena-1-Mbs_Key on-login="{\r\
  328. \n:local usernya \$user;\r\
  329. \n:if ([/ip hotspot user find name=\$usernya limit-bytes-out=21474836480]=\
  330. \"\") do={/ip hotspot user set [find name=\$usernya] limit-bytes-out=21474\
  331. 836480\r\
  332. \n/ip hotspot active remove [find user=\$usernya]\r\
  333. \n}\r\
  334. \n:if ([/system schedule find name=\$usernya]=\"\") do={\r\
  335. \n/system schedule add name=\$usernya interval=365d on-event=\"/ip hotspot\
  336. \_user disable [find name=\$usernya]\\r\\n/ip hotspot active remove [find \
  337. user=\$usernya]\\r\\n/system schedule remove [find name=\$usernya]\\r\\n/s\
  338. ystem schedule remove [find name=\$usernya]\\r\\n/ip hotspot cookie remove\
  339. \_[find user=\$usernya]\"\r\
  340. \n}\r\
  341. \n}" on-logout="{\r\
  342. \n:local usernya \$user;\r\
  343. \n:if ([/ip hotspot user get [find name=\$usernya] bytes-out] >= [/ip hots\
  344. pot user get [find name=\$usernya] limit-bytes-out]) do={\r\
  345. \n/ip hotspot user set limit-bytes-out=0 profile=\"qouta_habis_1Mbs\" [fin\
  346. d name=\$usernya]\r\
  347. \n}\r\
  348. \n}" parent-queue=Key rate-limit="138k/1024k 0/0m 0/0m 8 8 64/64" \
  349. shared-users=2 status-autorefresh=3m
  350. add address-pool=Key insert-queue-before=Hotspot keepalive-timeout=5m name=\
  351. qouta_habis_1Mbs_key parent-queue=Key rate-limit=\
  352. "138k/512k 0/0m 0/0m 8 8 64/64" shared-users=3 status-autorefresh=3m
  353. /queue tree
  354. add name="0. Global Traffic" parent=global queue=default
  355. add max-limit=17M name="1. Download" parent="0. Global Traffic" queue=default
  356. add max-limit=1M name="2. Upload" parent="0. Global Traffic"
  357. add limit-at=512k max-limit=3M name="1. Game" packet-mark=games_down parent=\
  358. "1. Download" priority=1 queue=down_pcq
  359. add limit-at=64k max-limit=3M name="2. Icmp" packet-mark=icmp_down parent=\
  360. "1. Download" priority=1 queue=down_pcq
  361. add limit-at=64k max-limit=3M name="3. Dns" packet-mark=dns_down parent=\
  362. "1. Download" priority=1 queue=down_pcq
  363. add max-limit=12M name="5. Download Traffic" parent="1. Download" queue=\
  364. default
  365. add max-limit=9M name="1. Small Browsing" packet-mark=small_browsing_down \
  366. parent="5. Download Traffic" priority=5 queue=down_pcq
  367. add max-limit=9M name="2. Heavy Browsing" packet-mark=heavy_browsing_down \
  368. parent="5. Download Traffic" priority=7 queue=down_pcq
  369. add limit-at=512k max-limit=3M name="4. Remote" packet-mark=remote_down \
  370. parent="1. Download" priority=3 queue=down_pcq
  371. add max-limit=9M name="3. YouTube" packet-mark=youtube_down parent=\
  372. "5. Download Traffic" priority=7 queue=down_pcq
  373. add max-limit=2M name="4. Extensi" packet-mark=extensi_down parent=\
  374. "5. Download Traffic" queue=down_pcq
  375. add limit-at=256k max-limit=1M name="1. game" packet-mark=games_up parent=\
  376. "2. Upload" priority=1 queue=up_pcq
  377. add limit-at=32k max-limit=1M name="2. icmp" packet-mark=icmp_up parent=\
  378. "2. Upload" priority=1 queue=up_pcq
  379. add limit-at=32k max-limit=1M name="3. dns" packet-mark=dns_up parent=\
  380. "2. Upload" priority=1 queue=up_pcq
  381. add limit-at=256k max-limit=1M name="4. remote" packet-mark=remote_up parent=\
  382. "2. Upload" priority=3 queue=up_pcq
  383. add max-limit=512k name="5. Upload Traffic" parent="2. Upload" queue=default
  384. add max-limit=512k name="1. small browsing" packet-mark=small_browsing_up \
  385. parent="5. Upload Traffic" priority=5 queue=up_pcq
  386. add max-limit=512k name="2. heavy browsing" packet-mark=heavy_browsing_up \
  387. parent="5. Upload Traffic" priority=7 queue=up_pcq
  388. add max-limit=512k name="3. youtube" packet-mark=youtube_up parent=\
  389. "5. Upload Traffic" priority=7 queue=up_pcq
  390. add max-limit=512k name="4. extensi" packet-mark=extensi_up parent=\
  391. "5. Upload Traffic" queue=up_pcq
  392. /ip address
  393. add address=192.168.99.2/24 interface=Modem_Browser network=192.168.99.0
  394. add address=192.168.20.2/24 interface=To-STB network=192.168.20.0
  395. add address=192.168.1.2/24 comment="hotspot network" interface=Hotspot \
  396. network=192.168.1.0
  397. add address=172.16.19.2/24 comment="Ip Radio" interface=Hotspot network=\
  398. 172.16.19.0
  399. add address=192.168.30.2/24 comment=expired interface=Hotspot network=\
  400. 192.168.30.0
  401. add address=172.16.16.2/24 comment="Ip Radio Ap & Klient" interface=Hotspot \
  402. network=172.16.16.0
  403. add address=192.168.73.2/24 comment="hotspot network bulanan" interface=\
  404. Hotspot network=192.168.73.0
  405. add address=192.168.2.2/24 interface=Hotspot network=192.168.2.0
  406. /ip dhcp-client
  407. add add-default-route=no dhcp-options=hostuseetv,clientid disabled=no \
  408. interface=UsetTv
  409. /ip dhcp-server network
  410. add address=10.116.32.0/20 gateway=10.116.45.138
  411. add address=192.168.1.0/24 comment="hotspot network" gateway=192.168.1.2 \
  412. netmask=32
  413. add address=192.168.20.0/24 gateway=192.168.20.2
  414. /ip dns
  415. set allow-remote-requests=yes servers=\
  416. 103.80.80.248,103.80.80.249,8.8.8.8,8.8.4.4
  417. /ip firewall address-list
  418. add address=192.168.0.0/16 list=PRIVATE_IP
  419. add address=172.16.0.0/12 list=PRIVATE_IP
  420. add address=10.0.0.0/8 list=PRIVATE_IP
  421. /ip firewall filter
  422. add action=accept chain=input in-interface=UsetTv protocol=udp
  423. add action=accept chain=input in-interface=UsetTv protocol=igmp
  424. add action=passthrough chain=unused-hs-chain comment=\
  425. "place hotspot rules here" disabled=yes
  426. add action=accept chain=forward comment="Allow access expired.html" dst-port=\
  427. 80 protocol=tcp src-address=192.168.30.0/24
  428. add action=drop chain=forward comment="Drop Access Internet" src-address=\
  429. 192.168.30.0/24
  430. /ip firewall mangle
  431. add action=mark-connection chain=forward comment="DNS Traffic" dst-port=53 \
  432. new-connection-mark=dns passthrough=yes protocol=udp src-address-list=\
  433. PRIVATE_IP
  434. add action=mark-packet chain=forward connection-mark=dns in-interface=\
  435. Modem_Browser new-packet-mark=dns_down passthrough=no protocol=udp
  436. add action=mark-packet chain=forward connection-mark=dns in-interface=Hotspot \
  437. new-packet-mark=dns_up passthrough=no protocol=udp
  438. add action=mark-connection chain=forward comment="Remote Traffic" dst-port=\
  439. 22,23,8291,5938,4899 new-connection-mark=remote passthrough=yes protocol=\
  440. tcp src-address-list=PRIVATE_IP
  441. add action=mark-packet chain=forward connection-mark=remote in-interface=\
  442. Modem_Browser new-packet-mark=remote_down passthrough=no
  443. add action=mark-packet chain=forward connection-mark=remote in-interface=\
  444. Hotspot new-packet-mark=remote_up passthrough=no
  445. add action=mark-connection chain=input connection-mark=no-mark in-interface=\
  446. Modem_Browser new-connection-mark=modemUSB_conn
  447. add action=mark-routing chain=output connection-mark=modemUSB_conn \
  448. new-routing-mark=via_browsing passthrough=yes
  449. add action=accept chain=prerouting comment="Bypass Local Paket" \
  450. dst-address-list=PRIVATE_IP src-address-list=PRIVATE_IP
  451. add action=accept chain=forward dst-address-list=PRIVATE_IP src-address-list=\
  452. PRIVATE_IP
  453. add action=accept chain=output dst-address-list=PRIVATE_IP src-address-list=\
  454. PRIVATE_IP
  455. add action=mark-connection chain=forward comment="Games Traffic" dst-port=\
  456. 39190-39200,14000-14010,2080-2099,7770-7790,14300-15512,47611 \
  457. new-connection-mark=game_conn passthrough=yes protocol=tcp \
  458. src-address-list=PRIVATE_IP
  459. add action=mark-connection chain=prerouting dst-port="8000-8010,36567,61000,62\
  460. 000,28001-28010,18900-18910,10009,7341-7350,7451,7451" \
  461. new-connection-mark=game_conn passthrough=yes protocol=tcp src-address=\
  462. 192.168.0.0/16
  463. add action=mark-connection chain=prerouting dst-port=\
  464. 8006,21231,41231,8600,8500,21231,5506,5501-5562,9002,10000-10010,30098 \
  465. new-connection-mark=game_conn passthrough=yes protocol=tcp src-address=\
  466. 192.168.0.0/16
  467. add action=mark-connection chain=prerouting dst-port=\
  468. 27000-27150,9100-9200,8230-8250,8110-8120,5223,5001-5056,5551-5556 \
  469. new-connection-mark=game_conn passthrough=yes protocol=tcp src-address=\
  470. 192.168.0.0/16
  471. add action=mark-connection chain=prerouting dst-port=\
  472. 16358,56058,20363,20046,57500,15248,64330,10393,26371,5220 \
  473. new-connection-mark=game_conn passthrough=yes protocol=udp src-address=\
  474. 192.168.0.0/16
  475. add action=mark-connection chain=prerouting dst-port=\
  476. 40000-40010,14000-14010,5100,16300-16350,15000-15500,27005-27015,8006 \
  477. new-connection-mark=game_conn passthrough=yes protocol=udp src-address=\
  478. 192.168.0.0/16
  479. add action=mark-connection chain=prerouting dst-port=\
  480. 42118-44547,5183,5162,10552,51077,44227,2099,7006-7008 \
  481. new-connection-mark=game_conn passthrough=yes protocol=udp src-address=\
  482. 192.168.0.0/16
  483. add action=mark-connection chain=prerouting dst-port=\
  484. 16358,56058,20363,20046,57500,15248,64330,10393,26371,5220 \
  485. new-connection-mark=game_conn passthrough=yes protocol=udp src-address=\
  486. 192.168.0.0/16
  487. add action=mark-connection chain=prerouting dst-port=\
  488. 27000-27150,347,5201-5274,5233,5166,5192,5272,5102-5185,24030-24160 \
  489. new-connection-mark=game_conn passthrough=yes protocol=udp src-address=\
  490. 192.168.0.0/16
  491. add action=mark-connection chain=prerouting dst-port=\
  492. 40122-42117,5001-5054,24000-24140,5285,5501-5514 new-connection-mark=\
  493. game_conn passthrough=yes protocol=udp src-address=192.168.0.0/16
  494. add action=mark-routing chain=prerouting connection-mark=game_conn \
  495. in-interface=Hotspot new-routing-mark=game_route passthrough=yes
  496. add action=mark-packet chain=forward connection-mark=game_conn in-interface=\
  497. Modem_Browser new-packet-mark=games_down passthrough=no
  498. add action=mark-packet chain=forward connection-mark=game_conn in-interface=\
  499. Hotspot new-packet-mark=games_up passthrough=no
  500. add action=mark-connection chain=forward comment="ICMP Traffic" \
  501. new-connection-mark=icmp passthrough=yes protocol=icmp src-address-list=\
  502. PRIVATE_IP
  503. add action=mark-packet chain=forward connection-mark=icmp in-interface=\
  504. Modem_Browser new-packet-mark=icmp_down passthrough=no protocol=icmp
  505. add action=mark-packet chain=forward connection-mark=icmp in-interface=\
  506. Hotspot new-packet-mark=icmp_up passthrough=no protocol=icmp
  507. add action=mark-connection chain=forward comment="YouTube Traffic" \
  508. layer7-protocol=youtube new-connection-mark=youtube passthrough=yes \
  509. src-address-list=PRIVATE_IP
  510. add action=mark-packet chain=forward connection-mark=youtube in-interface=\
  511. Modem_Browser new-packet-mark=youtube_down passthrough=no
  512. add action=mark-packet chain=forward connection-mark=youtube in-interface=\
  513. Hotspot new-packet-mark=youtube_up passthrough=no
  514. add action=mark-connection chain=forward comment="Extension Layer7" \
  515. layer7-protocol=EXE new-connection-mark=extensi passthrough=yes
  516. add action=mark-connection chain=forward layer7-protocol=ZIP \
  517. new-connection-mark=extensi passthrough=yes
  518. add action=mark-connection chain=forward layer7-protocol=RAR \
  519. new-connection-mark=extensi passthrough=yes
  520. add action=mark-connection chain=forward layer7-protocol=MP4 \
  521. new-connection-mark=extensi passthrough=yes
  522. add action=mark-connection chain=forward layer7-protocol=download \
  523. new-connection-mark=extensi passthrough=yes
  524. add action=mark-connection chain=forward layer7-protocol=High \
  525. new-connection-mark=extensi passthrough=yes
  526. add action=mark-packet chain=forward connection-mark=extensi in-interface=\
  527. Modem_Browser new-packet-mark=extensi_down passthrough=no
  528. add action=mark-packet chain=forward connection-mark=extensi in-interface=\
  529. Hotspot new-packet-mark=extensi_up passthrough=no
  530. add action=mark-connection chain=forward comment="Browsing Traffic" \
  531. connection-mark=!heavy_traffic new-connection-mark=browsing passthrough=\
  532. yes src-address-list=PRIVATE_IP
  533. add action=mark-connection chain=forward comment="Heavy Traffic" \
  534. connection-bytes=1024000-0 connection-mark=browsing connection-rate=\
  535. 256k-102400k new-connection-mark=heavy_traffic passthrough=yes protocol=\
  536. tcp
  537. add action=mark-connection chain=forward connection-bytes=1024000-0 \
  538. connection-mark=browsing connection-rate=256k-102400k \
  539. new-connection-mark=heavy_traffic passthrough=yes protocol=udp
  540. add action=mark-packet chain=forward connection-mark=heavy_traffic \
  541. in-interface=Modem_Browser new-packet-mark=heavy_browsing_down \
  542. passthrough=no
  543. add action=mark-packet chain=forward connection-mark=heavy_traffic \
  544. in-interface=Hotspot new-packet-mark=heavy_browsing_up passthrough=no
  545. add action=mark-packet chain=forward connection-mark=browsing in-interface=\
  546. Modem_Browser new-packet-mark=small_browsing_down passthrough=no
  547. add action=mark-packet chain=forward connection-mark=browsing in-interface=\
  548. Hotspot new-packet-mark=small_browsing_up passthrough=no
  549. /ip firewall nat
  550. add action=passthrough chain=unused-hs-chain comment=\
  551. "place hotspot rules here" disabled=yes
  552. add action=masquerade chain=srcnat comment=DNS4Free out-interface=DNS4Free
  553. add action=masquerade chain=srcnat out-interface=UsetTv
  554. add action=masquerade chain=srcnat out-interface=To-STB
  555. add action=redirect chain=dstnat comment=expired dst-port=80 protocol=tcp \
  556. src-address=192.168.30.0/24 to-ports=3127
  557. add action=masquerade chain=srcnat comment="masquerade hotspot network" \
  558. disabled=yes src-address=192.168.1.0/24
  559. add action=redirect chain=dstnat comment="Transparent DNS" dst-port=53,5353 \
  560. in-interface=Hotspot protocol=udp to-ports=53
  561. add action=redirect chain=dstnat dst-port=53,5353 in-interface=wlan1 \
  562. protocol=udp to-ports=53
  563. add action=redirect chain=dstnat dst-port=53,5353 in-interface=Hotspot \
  564. protocol=tcp to-ports=53
  565. add action=redirect chain=dstnat dst-port=53,5353 in-interface=wlan1 \
  566. protocol=tcp to-ports=53
  567. /ip hotspot ip-binding
  568. add address=172.16.19.16 to-address=172.16.19.16 type=bypassed
  569. add address=192.168.1.16 comment="Modem Ap" mac-address=54:22:F8:99:1B:E4 \
  570. to-address=192.168.1.16 type=bypassed
  571. add address=172.16.16.19 comment="Ap Home" to-address=172.16.16.19 type=\
  572. bypassed
  573. add address=172.16.16.16 comment="Ap Utama Airmax" to-address=172.16.16.16 \
  574. type=bypassed
  575. add address=172.16.16.17 comment="Ap Utama 2" to-address=172.16.16.17 type=\
  576. bypassed
  577. add address=172.16.16.202 comment="Klient Anton" to-address=172.16.16.202 \
  578. type=bypassed
  579. add address=172.16.16.203 comment="Klient Tallo" to-address=172.16.16.203 \
  580. type=bypassed
  581. add address=172.16.16.201 comment="Klient Sepon" to-address=172.16.16.201 \
  582. type=bypassed
  583. add address=172.16.16.53 comment="Ap Sepon" to-address=172.16.16.53 type=\
  584. bypassed
  585. add address=172.16.16.51 comment="Ap Anton" to-address=172.16.16.51 type=\
  586. bypassed
  587. add address=172.16.16.55 comment="Repeter boy" to-address=172.16.16.55 type=\
  588. bypassed
  589. add address=172.16.16.204 comment="Key Ap (My Hp)" mac-address=\
  590. D4:6E:0E:A5:3E:06 to-address=172.16.16.204 type=bypassed
  591. /ip hotspot user
  592. add limit-uptime=52w1d mac-address=50:3C:EA:C8:09:63 name=99 password=99
  593. add limit-uptime=4h name=8mar791 password=176 profile=\
  594. "1. Aqua Class Rp. 5.000 4 Jam"
  595. add limit-uptime=4h name=8mar387 password=083 profile=\
  596. "1. Aqua Class Rp. 5.000 4 Jam"
  597. add limit-uptime=4h name=8mar126 password=489 profile=\
  598. "1. Aqua Class Rp. 5.000 4 Jam"
  599. add limit-uptime=4h name=8mar557 password=785 profile=\
  600. "1. Aqua Class Rp. 5.000 4 Jam"
  601. add limit-uptime=4h name=9mar603 password=643 profile=\
  602. "2. Kopi Hitam Rp. 10.000 4 Jam"
  603. add limit-uptime=4h name=9mar694 password=627 profile=\
  604. "2. Kopi Hitam Rp. 10.000 4 Jam"
  605. add limit-uptime=4h name=9mar868 password=894 profile=\
  606. "2. Kopi Hitam Rp. 10.000 4 Jam"
  607. add limit-uptime=4h name=9mar299 password=090 profile=\
  608. "2. Kopi Hitam Rp. 10.000 4 Jam"
  609. add limit-uptime=4h name=9mar880 password=468 profile=\
  610. "2. Kopi Hitam Rp. 10.000 4 Jam"
  611. add limit-uptime=52w1d name=kfl password=kfl profile="userman paket 19 jam"
  612. add name=warnet password=warnethotspottoraja profile=warnet server=hotspot1
  613. add limit-uptime=1d name=jef password=jef profile="userman paket 4 jam" \
  614. server=hotspot1
  615. add limit-bytes-out=21474836480 limit-uptime=4w3d name=wawan password=wawan78 \
  616. profile="userman paket bulanan 1Mbs" server=hotspot1
  617. add limit-bytes-total=2073741824 limit-uptime=52w1d name=sepon password=\
  618. siomai100 profile="Paket Antena free" server=hotspot1
  619. add address=192.168.73.132 comment=Tallo limit-bytes-out=42949672960 \
  620. limit-uptime=52w1d name=C8:3A:35:78:57:60 profile=Paket-Antena-2-Mbs \
  621. server=hotspot1
  622. add limit-bytes-out=21474836480 limit-uptime=4w3d name=erik password=erik09 \
  623. profile="userman paket bulanan 1Mbs" server=hotspot1
  624. add limit-bytes-out=52428800 mac-address=C4:42:02:96:3D:2C name=\
  625. T-C4:42:02:96:3D:2C profile=expired
  626. add limit-bytes-out=52428800 mac-address=CC:79:CF:D9:A6:BC name=\
  627. T-CC:79:CF:D9:A6:BC profile=expired
  628. add mac-address=E4:F8:EF:3C:96:79 name=1 password=2
  629. add limit-bytes-out=21474836480 limit-uptime=52w1d name=key89 password=key89 \
  630. profile=Paket-Antena-1-Mbs_Key server=hotspot1
  631. add address=192.168.73.131 comment=Key disabled=yes limit-bytes-out=\
  632. 21474836480 name=C8:3A:35:78:57:D0 profile=Paket-Antena-1-Mbs server=\
  633. hotspot1
  634. add limit-uptime=4h name=26mar4958 password=5232 profile=\
  635. "1. Aqua Class Rp. 5.000 4 Jam"
  636. add limit-uptime=4h name=26mar8809 password=3319 profile=\
  637. "1. Aqua Class Rp. 5.000 4 Jam"
  638. add limit-uptime=4h name=26mar5765 password=2574 profile=\
  639. "1. Aqua Class Rp. 5.000 4 Jam"
  640. add limit-uptime=4h name=26mar5853 password=7140 profile=\
  641. "1. Aqua Class Rp. 5.000 4 Jam"
  642. add limit-uptime=4h name=26mar0862 password=1711 profile=\
  643. "1. Aqua Class Rp. 5.000 4 Jam"
  644. add limit-uptime=4h name=27mar7064 password=1051 profile=\
  645. "1. Aqua Class Rp. 5.000 4 Jam"
  646. add limit-uptime=4h name=27mar1332 password=9600 profile=\
  647. "1. Aqua Class Rp. 5.000 4 Jam"
  648. add limit-uptime=4h name=27mar9711 password=3660 profile=\
  649. "1. Aqua Class Rp. 5.000 4 Jam"
  650. add limit-uptime=4h name=27mar1408 password=0841 profile=\
  651. "1. Aqua Class Rp. 5.000 4 Jam"
  652. add limit-uptime=4h name=27mar6416 password=3412 profile=\
  653. "1. Aqua Class Rp. 5.000 4 Jam"
  654. /ip hotspot walled-garden
  655. add comment="place hotspot rules here" disabled=yes
  656. /ip hotspot walled-garden ip
  657. add action=accept disabled=no !dst-address dst-host=s2.mylivechat.com \
  658. !dst-port !protocol !src-address
  659. /ip proxy
  660. set cache-path=web-proxy1 enabled=yes max-cache-size=none parent-proxy=\
  661. 0.0.0.0 port=3127
  662. /ip proxy access
  663. add dst-address=192.168.1.2 dst-port=80
  664. add action=deny redirect-to=192.168.1.2/expired.html src-address=\
  665. 192.168.30.0/24
  666. /ip route
  667. add distance=1 gateway=202.134.1.10 routing-mark=via_browsing scope=10
  668. add comment="route game" distance=1 gateway=192.168.99.1 routing-mark=\
  669. game_route
  670. add comment=DNS4Free distance=1 gateway=172.31.255.254 routing-mark=DNS4Free
  671. add distance=1 gateway=202.134.1.10 scope=10
  672. add comment="use tv" distance=1 dst-address=10.0.0.0/8 gateway=10.116.32.1
  673. add comment=link distance=1 dst-address=192.168.7.0/24 gateway=192.168.99.1
  674. add check-gateway=ping distance=1 dst-address=202.134.1.10/32 gateway=\
  675. 192.168.99.1 scope=10
  676. /ip route rule
  677. add comment=DNS4Free dst-address=103.80.80.243/32 table=DNS4Free
  678. add comment=DNS4Free dst-address=103.80.80.244/32 table=DNS4Free
  679. add comment=DNS4Free dst-address=103.80.80.248/32 table=DNS4Free
  680. add comment=DNS4Free dst-address=103.80.80.249/32 table=DNS4Free
  681. add comment=DNS4Free dst-address=208.67.220.220/32 table=DNS4Free
  682. add comment=DNS4Free dst-address=208.67.222.222/32 table=DNS4Free
  683. /ip service
  684. set telnet disabled=yes
  685. set ftp disabled=yes
  686. set www port=6667
  687. set ssh disabled=yes
  688. /radius
  689. add address=192.168.99.1 secret=12345 service=hotspot
  690. /routing igmp-proxy
  691. set query-response-interval=1m40s quick-leave=yes
  692. /routing igmp-proxy interface
  693. add alternative-subnets=0.0.0.0/0 interface=UsetTv upstream=yes
  694. add interface=To-STB
  695. add interface=Hotspot
  696. /system clock
  697. set time-zone-autodetect=no time-zone-name=Asia/Makassar
  698. /system identity
  699. set name=Cafe
  700. /system ntp client
  701. set enabled=yes primary-ntp=202.162.32.12 secondary-ntp=203.114.224.31
  702. /system scheduler
  703. add interval=10m name="kick non login" on-event="/ip hotspot host remove [find\
  704. \_where !authorized !bypassed]\r\
  705. \n/ip hotspot host remove [find where !authorized !bypassed]" policy=\
  706. ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon \
  707. start-date=feb/24/2018 start-time=00:00:00
  708. add interval=5m name=limitdata on-event="#Set your dowload limit in MegaBYTES!\
  709. \r\
  710. \n:local downloadlimitmb \"50\"\r\
  711. \n\r\
  712. \n### You will not need to edit anything below this line ###\r\
  713. \n:local downloadlimit [(\$downloadlimitmb * 1048576)]\r\
  714. \n:local counter\r\
  715. \n:local datadown\r\
  716. \n:local username\r\
  717. \n:local macaddress\r\
  718. \n:foreach counter in=[/ip hotspot active find where user~\"^[T][-].{17}\"\
  719. ] do={\r\
  720. \n:set datadown [/ip hotspot active get \$counter bytes-out]\r\
  721. \n:if (\$datadown>\$downloadlimit) do={\r\
  722. \n:set username [/ip hotspot active get \$counter user]\r\
  723. \n:set macaddress [/ip hotspot active get \$counter mac-address]\r\
  724. \n/ip hotspot user remove [/ip hotspot user find where name=\$username pro\
  725. file=FreeUser]\r\
  726. \n/ip hotspot user add name=\$username limit-bytes-out=\$downloadlimit mac\
  727. -address=\$macaddress profile=FreeUser\r\
  728. \n/ip hotspot active remove \$counter\r\
  729. \n:log info \"Force logout on user: \$username - Reached download quota\"\
  730. \r\
  731. \n}}" policy=\
  732. ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon \
  733. start-date=feb/28/2018 start-time=00:00:00
  734. add interval=5d name=clearusers on-event=":log info \"Checking Users\"\r\
  735. \n:local counter\r\
  736. \n\r\
  737. \n:foreach counter in=[/ip hotspot user find profile=\"FreeUser\" ] do={\r\
  738. \n/ip hotspot user remove \$counter\r\
  739. \n}" policy=\
  740. ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon \
  741. start-date=feb/28/2018 start-time=00:00:01
  742. add interval=1d name=reboot on-event="/system reboot" policy=\
  743. ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon \
  744. start-date=mar/02/2018 start-time=05:59:59
  745. add interval=4w3d name=kfl on-event="/ip hotspot user disable [find name=kfl]\
  746. \r\
  747. \n/ip hotspot active remove [find user=kfl]\r\
  748. \n/system schedule remove [find name=kfl]\r\
  749. \n/system schedule remove [find name=kfl]\r\
  750. \n/ip hotspot cookie remove [find user=kfl]" policy=\
  751. ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon \
  752. start-date=mar/19/2018 start-time=09:31:04
  753. add interval=23h59m name="kick warnet 24 jam" on-event=\
  754. "/ip hotspot active remove [find user=warnet]" policy=\
  755. ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon \
  756. start-date=mar/21/2018 start-time=00:00:00
  757. add interval=5d name=Backup_Mikrotik on-event=":log info \"Backup konfigurasi \
  758. Mikrotik dimulai . . .\"\r\
  759. \n:global backupfile configbackup\r\
  760. \n:global mikrotikexport exportbackup\r\
  761. \n \r\
  762. \n:log info \"Menghapus file backup lama jika ada,.Jika tidak, abaikan. La\
  763. njutkan proses berikutnya . . .\"\r\
  764. \n \r\
  765. \n/system backup save name=\$backupfile\r\
  766. \n/export file=\$mikrotikexport\r\
  767. \n \r\
  768. \n:log info \"Mulai proses backup . . .\"\r\
  769. \n:delay 20s\r\
  770. \n:log info \"Mulai mengirim file backup lewat email . . .\"\r\
  771. \n \r\
  772. \n/tool e-mail send to=\"supriyadiwaropen@gmail.com\" password=a1b2c3kafil\
  773. ah subject=([/system clock get date] . \\\r\
  774. \n\"-Mikrotik Config Backup\") from=backuphotspotaisyah@gmail.com file=\$b\
  775. ackupfile server=74.125.130.108 start-tls=yes\r\
  776. \n \r\
  777. \n/tool e-mail send to=\"supriyadiwaropen@gmail.com\" password=a1b2c3kafil\
  778. ah subject=([/system clock get date] . \\\r\
  779. \n\"-Mikrotik Export Backup\") from=backuphotspotaisyah@gmail.com file=\$m\
  780. ikrotikexport server=74.125.130.108 start-tls=yes\r\
  781. \n \r\
  782. \n:delay 40s\r\
  783. \n:log info \"Proses Backup dan pengiriman lewat email Selesai.\"\r\
  784. \n:log info \"Menghapus Backup File. Semuanya Selesai. (hotspotaisyah.net)\
  785. \"\r\
  786. \n/file remove \$backupfile\r\
  787. \n/file remove \$mikrotikexport" policy=\
  788. ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon \
  789. start-date=mar/22/2018 start-time=00:00:01
  790. add interval=1w name=jef on-event="/ip hotspot user disable [find name=jef]\r\
  791. \n/ip hotspot active remove [find user=jef]\r\
  792. \n/system schedule remove [find name=jef]\r\
  793. \n/system schedule remove [find name=jef]\r\
  794. \n/ip hotspot cookie remove [find user=jef]" policy=\
  795. ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon \
  796. start-date=mar/23/2018 start-time=18:46:59
  797. add interval=1d name=reset-counter-sepon on-event=\
  798. "/ip hotspot user reset-counter [find name=sepon]" policy=\
  799. ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon \
  800. start-date=mar/25/2018 start-time=00:00:01
  801. add interval=52w1d name=sepon on-event="/ip hotspot user remove [find name=sep\
  802. on]\r\
  803. \n/ip hotspot active remove [find user=sepon]\r\
  804. \n/system schedule remove [find name=reset-counter-sepon]\r\
  805. \n/system schedule remove [find name=sepon]" policy=\
  806. ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon \
  807. start-date=mar/25/2018 start-time=07:28:50
  808. add interval=1d name=Backup_Userman on-event="#----deklarasi variable---------\
  809. --------------\r\
  810. \n#:local ts [/system clock get time]\r\
  811. \n#:set ts ([:pick \$ts 0 0].[:pick \$ts 3 5].[:pick \$ts 6 8])\r\
  812. \n:local ds [/system clock get date]\r\
  813. \n:set ds ([:pick \$ds 7 11].[:pick \$ds 0 3].[:pick \$ds 4 6])\r\
  814. \n:local identitasRouter [/system identity get name];\r\
  815. \n:local emailTujuan [/tool e-mail get from];\r\
  816. \n:local seriMikrotik [/system resource get board-name];\r\
  817. \n#--------------------------------------\r\
  818. \n#-----Backup usermanager mikrotik---------------\r\
  819. \n:local usermanBackup (\$identitasRouter.\$seriMikrotik.\"-userman-\".\$d\
  820. s.\".umb\")\r\
  821. \n/tool user-manager database save name=\$usermanBackup;\r\
  822. \n#-----Mengirim email-------------------\r\
  823. \n:delay 20s\r\
  824. \n:log info \"Sedang mengirim email, silahkan tunggu beberapa detik...\"\r\
  825. \n\r\
  826. \n/tool e-mail send to=\"hotspottoraja@gmail.com\" password=a1b2c3kafilah \
  827. subject=([/system clock get date] . \\\r\
  828. \n\"-usermanBackup\") from=backuphotspotaisyah@gmail.com file=\$usermanBac\
  829. kup server=74.125.130.108 start-tls=yes\r\
  830. \n:log info \"Email sudah terkirim...\"\r\
  831. \n#--------------------------------------\r\
  832. \n#-----menghapus -----------------------\r\
  833. \n:delay 40s\r\
  834. \n:log info \"Proses Backup dan pengiriman lewat email Selesai.\"\r\
  835. \n:log info \"Menghapus Backup File. Semuanya Selesai. (hotspotaisyah.net)\
  836. \"\r\
  837. \n/file remove \$usermanBackup" policy=\
  838. ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon \
  839. start-date=mar/24/2018 start-time=00:00:01
  840. add interval=20m name="anti netcut" on-event="source=\":local hosts [/ip dhcp-\
  841. server lease find]\\r\\\r\
  842. \n \\n:local pcname \\\"X\\\"\\r\\\r\
  843. \n \\n:local pcnum 0\\r\\\r\
  844. \n \\n:global hacklist \\\"\\\"\\r\\\r\
  845. \n \\n:foreach h in \\\$hosts do={\\r\\\r\
  846. \n \\n:local host [/ip dhcp-server lease get \\\$h host-name]\\r\\\r\
  847. \n \\n:if ([:len \\\$host] >0) do {\\r\\\r\
  848. \n \\n:set pcname (\\\$pcname . \\\",\\\" . \\\$host)\\r\\\r\
  849. \n \\n:set pcnum (\\\$pcnum + 1)\\r\\\r\
  850. \n \\n}\\r\\\r\
  851. \n \\n}\\r\\\r\
  852. \n \\n:foreach h in \\\$pcname do={\\r\\\r\
  853. \n \\n:local hh 0\\r\\\r\
  854. \n \\n:if (!([:find \\\$hacklist \\\$h]>=0)) do={\\r\\\r\
  855. \n \\n:foreach k in \\\$pcname do={ :if (\\\$k=\\\$h) do={:set hh (\\\$\
  856. hh + 1) } }\\r\\\r\
  857. \n \\n:if (\\\$hh>2) do={\\r\\\r\
  858. \n \\n:if ([:len \\\$hacklist] >0) do {:set hacklist (\\\$hacklist . \\\
  859. \",\\\" . \\\$h)}\\\r\
  860. \n \\_else={:set hacklist \\\$h}\\r\\\r\
  861. \n \\n}\\r\\\r\
  862. \n \\n}\\r\\\r\
  863. \n \\n}\\r\\\r\
  864. \n \\n:local timer [:pick [/system clock get time] 3 5]\\r\\\r\
  865. \n \\n:if ((\\\$switch > 0) || (\\\$timer >= \\\"58\\\")) do={\\r\\\r\
  866. \n \\n:log warning (\\\"New Hacklist: \\\" . \\\$hacklist)\"" policy=\
  867. ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon \
  868. start-date=mar/24/2018 start-time=00:00:00
  869. add interval=4w3d name=wawan on-event="/ip hotspot user disable [find name=waw\
  870. an]\r\
  871. \n/ip hotspot active remove [find user=wawan]\r\
  872. \n/system schedule remove [find name=wawan]\r\
  873. \n/system schedule remove [find name=wawan]\r\
  874. \n/ip hotspot cookie remove [find user=wawan]" policy=\
  875. ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon \
  876. start-date=mar/21/2018 start-time=19:37:56
  877. add interval=6h name="kick sepon" on-event=\
  878. "/ip hotspot active remove [find user=sepon]" policy=\
  879. ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon \
  880. start-date=mar/25/2018 start-time=00:00:00
  881. add interval=4w3d name="Paket Antena 1 Mbs" on-event="ip hotspot user set prof\
  882. ile=\"Paket-Antena-1-Mbs\" [/ip hotspot user find profile=\"qouta_habis_1M\
  883. bs\"]" policy=\
  884. ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon \
  885. start-date=mar/01/2018 start-time=00:00:01
  886. add interval=4w3d name=Paket-Antena-2-Mbs on-event="ip hotspot user set profil\
  887. e=\"Paket-Antena-2-Mbs\" [/ip hotspot user find profile=\"qouta_habis_2Mbs\
  888. \"]" policy=\
  889. ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon \
  890. start-date=mar/01/2018 start-time=00:00:01
  891. add interval=4w3d name="Paket-Antena-1-Mbs_reset Counter" on-event=\
  892. "ip hotspot user reset-counter [find profile=\"Paket-Antena-1-Mbs\"]" \
  893. policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon \
  894. start-date=mar/01/2018 start-time=00:03:00
  895. add interval=4w3d name="Paket-Antena-2-Mbs_reset Counter" on-event=\
  896. "ip hotspot user reset-counter [find profile=\"Paket-Antena-2-Mbs\"]" \
  897. policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon \
  898. start-date=mar/01/2018 start-time=00:03:00
  899. add interval=4w3d name=erik on-event="/ip hotspot user disable [find name=erik\
  900. ]\r\
  901. \n/ip hotspot active remove [find user=erik]\r\
  902. \n/system schedule remove [find name=erik]\r\
  903. \n/system schedule remove [find name=erik]\r\
  904. \n/ip hotspot cookie remove [find user=erik]" policy=\
  905. ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon \
  906. start-date=mar/20/2018 start-time=08:37:24
  907. add interval=1d name="set free user ke expired" on-event="ip hotspot user set \
  908. profile=\"expired\" [/ip hotspot user find profile=\"FreeUser\"]" policy=\
  909. ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon \
  910. start-date=mar/25/2018 start-time=00:00:01
  911. add interval=1w name="clearusers expired" on-event=":log info \"Checking Users\
  912. \"\r\
  913. \n:local counter\r\
  914. \n\r\
  915. \n:foreach counter in=[/ip hotspot user find profile=\"expired\" ] do={\r\
  916. \n/ip hotspot user remove \$counter\r\
  917. \n}" policy=\
  918. ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon \
  919. start-date=mar/25/2018 start-time=00:00:01
  920. add interval=2d name="pagi 08.00" on-event="tampilan fitur" policy=\
  921. ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon \
  922. start-date=mar/25/2018 start-time=08:00:00
  923. add interval=2d name="pagi 08.05" on-event="tampilan hotspot" policy=\
  924. ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon \
  925. start-date=mar/25/2018 start-time=08:05:00
  926. add interval=2d name="siang 02.00" on-event="tampilan fitur" policy=\
  927. ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon \
  928. start-date=mar/25/2018 start-time=14:00:00
  929. add interval=2d name="siang 02.05" on-event="tampilan hotspot" policy=\
  930. ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon \
  931. start-date=mar/25/2018 start-time=14:05:00
  932. add interval=1d name="malam 20.00" on-event="tampilan fitur" policy=\
  933. ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon \
  934. start-date=mar/25/2018 start-time=20:00:00
  935. add interval=1d name="malam 20.10" on-event="tampilan hotspot" policy=\
  936. ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon \
  937. start-date=mar/25/2018 start-time=20:10:00
  938. add interval=4w3d name=9C:B7:0D:85:73:0E on-event="/ip hotspot user disable [f\
  939. ind name=9C:B7:0D:85:73:0E]\r\
  940. \n/ip hotspot active remove [find user=9C:B7:0D:85:73:0E]\r\
  941. \n/system schedule remove [find name=9C:B7:0D:85:73:0E]\r\
  942. \n/system schedule remove [find name=9C:B7:0D:85:73:0E]\r\
  943. \n/ip hotspot cookie remove [find user=9C:B7:0D:85:73:0E]" policy=\
  944. ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon \
  945. start-date=mar/26/2018 start-time=17:10:01
  946. add interval=4w3d name=key89 on-event="/ip hotspot user disable [find name=key\
  947. 89]\r\
  948. \n/ip hotspot active remove [find user=key89]\r\
  949. \n/system schedule remove [find name=key89]\r\
  950. \n/system schedule remove [find name=key89]\r\
  951. \n/ip hotspot cookie remove [find user=key89]" policy=\
  952. ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon \
  953. start-date=mar/26/2018 start-time=17:21:50
  954. add interval=4w3d name=Paket-Antena-1-Mbs_Key on-event="ip hotspot user set pr\
  955. ofile=\"Paket-Antena-1-Mbs_Key\" [/ip hotspot user find profile=\"qouta_ha\
  956. bis_1Mbs_key\"]" policy=\
  957. ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon \
  958. start-date=mar/01/2018 start-time=00:00:01
  959. add interval=4w3d name="Paket-Antena-1-Mbs_reset Counter_key" on-event=\
  960. "ip hotspot user reset-counter [find profile=\"Paket-Antena-1-Mbs_Key\"]" \
  961. policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon \
  962. start-date=mar/01/2018 start-time=00:03:00
  963. add interval=2d name=8mar387 on-event="/ip hotspot user remove [find name=8mar\
  964. 387]\r\
  965. \n/ip hotspot active remove [find user=8mar387]\r\
  966. \n/system schedule remove [find name=8mar387]\r\
  967. \n/ip hotspot cookie remove [find user=8mar387]" policy=\
  968. ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon \
  969. start-date=mar/26/2018 start-time=18:39:23
  970. add interval=4w3d name="userman paket bulanan 1Mbs reset counter" on-event=\
  971. "ip hotspot user reset-counter [find profile=\"qouta_habis\"]" policy=\
  972. ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon \
  973. start-date=mar/01/2018 start-time=00:03:00
  974. add interval=4w3d name="userman paket bulanan 2Mbs reset counter" on-event="ip\
  975. \_hotspot user reset-counter [find profile=\"qouta_habis_userman_paket_bul\
  976. anan_2Mbs\"]" policy=\
  977. ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon \
  978. start-date=mar/01/2018 start-time=00:03:00
  979. add interval=4w3d name=C8:3A:35:78:57:60 on-event="/ip hotspot user disable [f\
  980. ind name=C8:3A:35:78:57:60]\r\
  981. \n/ip hotspot active remove [find user=C8:3A:35:78:57:60]\r\
  982. \n/system schedule remove [find name=C8:3A:35:78:57:60]\r\
  983. \n/system schedule remove [find name=C8:3A:35:78:57:60]\r\
  984. \n/ip hotspot cookie remove [find user=C8:3A:35:78:57:60]" policy=\
  985. ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon \
  986. start-date=mar/26/2018 start-time=21:36:19
  987. add interval=2d name="dini hari 01.00" on-event="tampilan fitur" policy=\
  988. ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon \
  989. start-date=mar/25/2018 start-time=01:00:00
  990. add interval=2d name="dini hari 03.00" on-event="tampilan hotspot" policy=\
  991. ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon \
  992. start-date=mar/25/2018 start-time=03:10:00
  993. /system script
  994. add name=Backup_Mikrotik owner=aisyah policy=\
  995. ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source=":\
  996. log info \"Backup konfigurasi Mikrotik dimulai . . .\"\r\
  997. \n:global backupfile configbackup\r\
  998. \n:global mikrotikexport exportbackup\r\
  999. \n \r\
  1000. \n:log info \"Menghapus file backup lama jika ada,.Jika tidak, abaikan. La\
  1001. njutkan proses berikutnya . . .\"\r\
  1002. \n \r\
  1003. \n/system backup save name=\$backupfile\r\
  1004. \n/export file=\$mikrotikexport\r\
  1005. \n \r\
  1006. \n:log info \"Mulai proses backup . . .\"\r\
  1007. \n:delay 20s\r\
  1008. \n:log info \"Mulai mengirim file backup lewat email . . .\"\r\
  1009. \n \r\
  1010. \n/tool e-mail send to=\"supriyadiwaropen@gmail.com\" password=a1b2c3kafil\
  1011. ah subject=([/system clock get date] . \\\r\
  1012. \n\"-Mikrotik Config Backup\") from=backuphotspotaisyah@gmail.com file=\$b\
  1013. ackupfile server=74.125.130.108 start-tls=yes\r\
  1014. \n \r\
  1015. \n/tool e-mail send to=\"supriyadiwaropen@gmail.com\" password=a1b2c3kafil\
  1016. ah subject=([/system clock get date] . \\\r\
  1017. \n\"-Mikrotik Export Backup\") from=backuphotspotaisyah@gmail.com file=\$m\
  1018. ikrotikexport server=74.125.130.108 start-tls=yes\r\
  1019. \n \r\
  1020. \n:delay 40s\r\
  1021. \n:log info \"Proses Backup dan pengiriman lewat email Selesai.\"\r\
  1022. \n:log info \"Menghapus Backup File. Semuanya Selesai. (hotspotaisyah.net)\
  1023. \"\r\
  1024. \n/file remove \$backupfile\r\
  1025. \n/file remove \$mikrotikexport"
  1026. add name=xx owner=aisyah policy=\
  1027. ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source="i\
  1028. p hotspot user set profile=\"xx\" [/ip hotspot user find profile=\"qouta_h\
  1029. abis\"]"
  1030. add name="xxxx reset counter" owner=aisyah policy=\
  1031. ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source=\
  1032. "ip hotspot user reset-counter [find profile=\"xx\"]"
  1033. add name="tampilan fitur" owner=aisyah policy=\
  1034. ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source=\
  1035. "/ip hotspot profile set 1 html-directory=\"Fitur\""
  1036. add name="tampilan hotspot" owner=aisyah policy=\
  1037. ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source=\
  1038. "/ip hotspot profile set 1 html-directory=\"hotspot\""
  1039. /tool e-mail
  1040. set address=74.125.130.108 from=supriyadiwaropen@gmail.com password=\
  1041. a1b2c3kafilah port=587 start-tls=yes user=backuphotspotaisyah@gmail.com
  1042. /tool netwatch
  1043. add disabled=yes down-script=":log info \"Down Axarva Media Teknologi\"" \
  1044. host=43.245.186.218 interval=10s timeout=300ms up-script=\
  1045. ":log info \"Up Axarva Media Teknologi\""
  1046. add comment="queue tree down" down-script=\
  1047. "/queue tree set \"1. Download\" max-limit=4000k" host=172.16.16.19 \
  1048. up-script="/queue tree set \"1. Download\" max-limit=17M"
  1049. add down-script="/queue tree set \"5. Download Traffic\" max-limit=3M" host=\
  1050. 172.16.16.19 up-script=\
  1051. "/queue tree set \"5. Download Traffic\" max-limit=12M"
  1052. add down-script="/queue tree set \"2. Upload\" max-limit=512k" host=\
  1053. 172.16.16.19 up-script="/queue tree set \"2. Upload\" max-limit=1M"
  1054. add down-script="/queue tree set \"5. Upload Traffic\" max-limit=384k" host=\
  1055. 172.16.16.19 up-script=\
  1056. "/queue tree set \"5. Upload Traffic\" max-limit=512k"
  1057. add down-script="ip hotspot user disable [find name=sepon]" host=172.16.16.53 \
  1058. up-script="ip hotspot user enable [find name=sepon]"
  1059. add down-script="/ip firewall mangle disable [find comment=squid3]" host=\
  1060. 192.168.3.2 interval=10s up-script=\
  1061. "/ip firewall mangle enable [find comment=squid3]"
  1062. add comment="kick jika internet down" disabled=yes down-script=":local dumplis\
  1063. t [/ip hotspot active find]\r\
  1064. \n:foreach i in=\$dumplist do={\r\
  1065. \n /ip hotspot active remove \$i\r\
  1066. \n}\r\
  1067. \n:local dumplist [/ip hotspot cookie find]\r\
  1068. \n:foreach i in=\$dumplist do={\r\
  1069. \n /ip hotspot cookie remove \$i\r\
  1070. \n}" host=8.8.8.8 interval=5m timeout=10s
  1071. add comment="Info login down" down-script=\
  1072. "/ip hotspot profile set 1 html-directory=\"aisyah\"" host=8.8.8.8 \
  1073. up-script="/ip hotspot profile set 1 html-directory=\"hotspot\""
  1074. add comment="Ap Utama" down-script="/tool fetch url=\"https://api.telegram.org\
  1075. /bot492969668:AAER40y5KC3a6q1oGRIscW2WkJ9u8DaiSCY/sendMessage\?chat_id=458\
  1076. 752171&text=Ap Utamat Down\" keep-result=no" host=172.16.16.17 interval=\
  1077. 10s timeout=100ms up-script="/tool fetch url=\"https://api.telegram.org/bo\
  1078. t492969668:AAER40y5KC3a6q1oGRIscW2WkJ9u8DaiSCY/sendMessage\?chat_id=458752\
  1079. 171&text=AP Utama UP\" keep-result=no"
  1080. add comment=Station down-script="/tool fetch url=\"https://api.telegram.org/bo\
  1081. t492969668:AAER40y5KC3a6q1oGRIscW2WkJ9u8DaiSCY/sendMessage\?chat_id=458752\
  1082. 171&text=Station Sepont Down\" keep-result=no" host=172.16.16.201 \
  1083. up-script="/tool fetch url=\"https://api.telegram.org/bot492969668:AAER40y\
  1084. 5KC3a6q1oGRIscW2WkJ9u8DaiSCY/sendMessage\?chat_id=458752171&text=Station S\
  1085. epon UP\" keep-result=no"
  1086. add comment=Station down-script="/tool fetch url=\"https://api.telegram.org/bo\
  1087. t492969668:AAER40y5KC3a6q1oGRIscW2WkJ9u8DaiSCY/sendMessage\?chat_id=458752\
  1088. 171&text=Station Anton Down\" keep-result=no" host=172.16.16.202 \
  1089. up-script="/tool fetch url=\"https://api.telegram.org/bot492969668:AAER40y\
  1090. 5KC3a6q1oGRIscW2WkJ9u8DaiSCY/sendMessage\?chat_id=458752171&text=Station A\
  1091. nton UP\" keep-result=no"
  1092. add comment=Station down-script="/tool fetch url=\"https://api.telegram.org/bo\
  1093. t492969668:AAER40y5KC3a6q1oGRIscW2WkJ9u8DaiSCY/sendMessage\?chat_id=458752\
  1094. 171&text=Station Tallo Down\" keep-result=no" host=172.16.16.203 \
  1095. up-script="/tool fetch url=\"https://api.telegram.org/bot492969668:AAER40y\
  1096. 5KC3a6q1oGRIscW2WkJ9u8DaiSCY/sendMessage\?chat_id=458752171&text=Station T\
  1097. allo UP\" keep-result=no"
  1098. add comment="Ap Utama 3" down-script="/tool fetch url=\"https://api.telegram.o\
  1099. rg/bot492969668:AAER40y5KC3a6q1oGRIscW2WkJ9u8DaiSCY/sendMessage\?chat_id=4\
  1100. 58752171&text=Ap Utamat 3 Down\" keep-result=no" host=172.16.16.19 \
  1101. interval=10s timeout=100ms up-script="/tool fetch url=\"https://api.telegr\
  1102. am.org/bot492969668:AAER40y5KC3a6q1oGRIscW2WkJ9u8DaiSCY/sendMessage\?chat_\
  1103. id=458752171&text=AP Utama 3 UP\" keep-result=no"
  1104. add comment="Ap Utama" down-script="/tool fetch url=\"https://api.telegram.org\
  1105. /bot492969668:AAER40y5KC3a6q1oGRIscW2WkJ9u8DaiSCY/sendMessage\?chat_id=458\
  1106. 752171&text=Ap Utamat AirmaxDown\" keep-result=no" host=172.16.16.16 \
  1107. interval=10s timeout=100ms up-script="/tool fetch url=\"https://api.telegr\
  1108. am.org/bot492969668:AAER40y5KC3a6q1oGRIscW2WkJ9u8DaiSCY/sendMessage\?chat_\
  1109. id=458752171&text=AP Utama Airmax\" keep-result=no"
  1110. add comment="di sable user sepon" down-script=\
  1111. "ip hotspot user disable [find name=sepon]" host=172.16.16.201 up-script=\
  1112. "ip hotspot user enable [find name=sepon]"
  1113. add comment="remove use sepon" down-script=\
  1114. "/ip hotspot active remove [find user=sepon]" host=172.16.16.201
  1115. add comment="Ap sepon log" down-script=Jablay-koneksi host=172.16.16.201 \
  1116. timeout=300ms up-script=":log info \"Up Sepon\""
  1117. add comment="Ap Anton log" down-script=Jablay-koneksi host=172.16.16.202 \
  1118. timeout=300ms up-script=":log info \"Up Anton\""
  1119. add comment="Ap Tallo log" down-script=Jablay-koneksi host=172.16.16.203 \
  1120. timeout=300ms up-script=":log info \"Up Tallo\""
  1121. add comment="Dns Log" down-script=":log info \"Down dns indonusa\"" host=\
  1122. 202.93.142.10 interval=10s timeout=100ms up-script=\
  1123. ":log info \"Up dns indonusa\""
  1124. add comment="Ping Repeter key" down-script=":log info \"Down Repeter key\"" \
  1125. host=172.16.16.54 up-script=":log info \"Up Repeter key\""
  1126. add comment="Dns Telegram" down-script="/tool fetch url=\"https://api.telegram\
  1127. .org/bot492969668:AAER40y5KC3a6q1oGRIscW2WkJ9u8DaiSCY/sendMessage\?chat_id\
  1128. =458752171&text=Dns Down\" keep-result=no" host=8.8.8.8 up-script="/tool f\
  1129. etch url=\"https://api.telegram.org/bot492969668:AAER40y5KC3a6q1oGRIscW2Wk\
  1130. J9u8DaiSCY/sendMessage\?chat_id=458752171&text=Dns UP\" keep-result=no"
  1131. add comment="Dns Log Google" down-script=":log info \"Down dns google\"" \
  1132. host=8.8.8.8 interval=10s timeout=100ms up-script=\
  1133. ":log info \"Up dns google\""
  1134. add comment="repeter boy" down-script="/tool fetch url=\"https://api.telegram.\
  1135. org/bot492969668:AAER40y5KC3a6q1oGRIscW2WkJ9u8DaiSCY/sendMessage\?chat_id=\
  1136. 458752171&text=Repeter boy Down\" keep-result=no" host=172.16.16.55 \
  1137. up-script="/tool fetch url=\"https://api.telegram.org/bot492969668:AAER40y\
  1138. 5KC3a6q1oGRIscW2WkJ9u8DaiSCY/sendMessage\?chat_id=458752171&text=Repeter b\
  1139. oy UP\" keep-result=no"
  1140. /tool romon
  1141. set enabled=yes id=00:00:00:02:00:03 secrets=a1b2c3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement