Advertisement
saputraaziii

settingan awal paket cafe router mikrotik senennet

Feb 11th, 2019
847
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 16.20 KB | None | 0 0
  1. /interface wireless
  2. set [ find default-name=wlan1 ] band=2ghz-b/g/n disabled=no mode=ap-bridge \
  3.     ssid="@Kopi Ateng Flamboyan" wireless-protocol=802.11
  4. add disabled=no keepalive-frames=disabled mac-address=CE:2D:E0:19:75:A5 \
  5.     master-interface=wlan1 multicast-buffering=disabled name=wlan2 ssid=\
  6.     @senennet.id wds-cost-range=0 wds-default-cost=0 wps-mode=disabled
  7. /interface bridge
  8. add fast-forward=no name=BRIDGE
  9. add fast-forward=no name=bridge
  10. /interface ethernet
  11. set [ find default-name=ether1 ] comment=Internet/Radio mac-address=\
  12.     CC:2D:E0:19:75:A1
  13. set [ find default-name=ether2 ] comment=CCTV mac-address=CC:2D:E0:19:75:A2
  14. set [ find default-name=ether3 ] mac-address=CC:2D:E0:19:75:A3
  15. set [ find default-name=ether4 ] mac-address=CC:2D:E0:19:75:A4
  16. /interface vlan
  17. add interface=ether1 name="vlan10-pppoe senennet" vlan-id=10
  18. add interface=ether1 name=vlan30 vlan-id=30
  19. /interface pppoe-client
  20. add add-default-route=yes disabled=no interface="vlan10-pppoe senennet" name=\
  21.     PPPoE-SENENNET password=7db120s use-peer-dns=yes user=kopiateng@senen.net
  22. /interface list
  23. add name=Client
  24. /interface wireless security-profiles
  25. set [ find default=yes ] supplicant-identity=MikroTik
  26. /ip hotspot profile
  27. add dns-name=login.kopiateng.com hotspot-address=192.168.92.1 html-directory=\
  28.     Kopi-Ateng-Login login-by=http-chap name=hsprof1
  29. /ip pool
  30. add name=hs-pool-6 ranges=192.168.92.2-192.168.92.254
  31. add name=dhcp_pool1 ranges=192.168.1.2-192.168.1.254
  32. /ip dhcp-server
  33. add address-pool=hs-pool-6 disabled=no interface=BRIDGE lease-time=1h name=\
  34.     dhcp1
  35. add address-pool=dhcp_pool1 disabled=no interface=ether2 name=dhcp2
  36. /ip hotspot
  37. add address-pool=hs-pool-6 disabled=no interface=BRIDGE name=hotspot1 \
  38.     profile=hsprof1
  39. /queue simple
  40. add name=All target=""
  41. add max-limit=5M/5M name=CCTV parent=All priority=2/2 target=ether2
  42. add max-limit=1M/2M name="PC Lt2" priority=2/2 target=192.168.92.243/32
  43. add max-limit=3M/5M name=Hotspot parent=All priority=7/7 queue=\
  44.     pcq-upload-default/pcq-download-default target=""
  45. /ip hotspot user profile
  46. set [ find default=yes ] keepalive-timeout=10m parent-queue=Hotspot
  47. add keepalive-timeout=10m name=1Mbps-karyawan parent-queue=Hotspot \
  48.     rate-limit=1M
  49. /interface bridge port
  50. add bridge=BRIDGE interface=wlan1
  51. add bridge=BRIDGE hw=no interface=ether4
  52. add bridge=bridge interface=vlan30
  53. add bridge=bridge interface=wlan2
  54. add bridge=BRIDGE hw=no interface=ether3
  55. /ip neighbor discovery-settings
  56. set discover-interface-list=Client
  57. /interface list member
  58. add interface=BRIDGE list=Client
  59. /ip address
  60. add address=172.27.79.6/24 interface=ether1 network=172.27.79.0
  61. add address=192.168.92.1/24 interface=BRIDGE network=192.168.92.0
  62. add address=192.168.1.1/24 interface=ether2 network=192.168.1.0
  63. /ip dhcp-server lease
  64. add address=192.168.92.243 always-broadcast=yes client-id=1:d8:cb:8a:cb:de:e7 \
  65.     comment="PC " mac-address=D8:CB:8A:CB:DE:E7 server=dhcp1
  66. /ip dhcp-server network
  67. add address=192.168.1.0/24 gateway=192.168.1.1
  68. add address=192.168.92.0/24 comment="hotspot network" gateway=192.168.92.1
  69. /ip dns
  70. set allow-remote-requests=yes
  71. /ip firewall filter
  72. add action=passthrough chain=unused-hs-chain comment=\
  73.     "place hotspot rules here" disabled=yes
  74. /ip firewall nat
  75. add action=passthrough chain=unused-hs-chain comment=\
  76.     "place hotspot rules here" disabled=yes
  77. add action=masquerade chain=srcnat comment="masquerade hotspot network" \
  78.     src-address=192.168.92.0/24
  79. add action=masquerade chain=srcnat out-interface=ether1
  80. add action=masquerade chain=srcnat out-interface=PPPoE-SENENNET
  81. /ip hotspot ip-binding
  82. add address=192.168.92.243 comment="PC " mac-address=D8:CB:8A:CB:DE:E7 \
  83.     server=hotspot1 to-address=192.168.92.243 type=bypassed
  84. /ip hotspot user
  85. add comment=up-853-10.21.18- name=Lia password=121212 profile=1Mbps-karyawan
  86. add comment=up-853-10.21.18- name=ayu password=ayu123 profile=1Mbps-karyawan
  87. add comment=up-853-10.21.18- name=selma password=bibikbantet profile=\
  88.     1Mbps-karyawan
  89. add comment=up-853-10.21.18- name=dhani password=abangkurus profile=\
  90.     1Mbps-karyawan
  91. add comment=vc-853-10.21.18- name=darman password=darman profile=\
  92.     1Mbps-karyawan
  93. add comment=vc-853-10.21.18- name=anugrah password=anugrah profile=\
  94.     1Mbps-karyawan
  95. add comment=vc-853-10.21.18- name=yayat password=yayat profile=1Mbps-karyawan
  96. add name=Dwi password=buntal12 profile=1Mbps-karyawan
  97. add name=Admin password=admin profile=1Mbps-karyawan
  98. add comment=up-429-10.26.18- name=FLK password=587 server=hotspot1
  99. add comment=up-429-10.26.18- name=FKI password=359 server=hotspot1
  100. add comment=up-429-10.26.18- name=UAO password=123 server=hotspot1
  101. add comment=up-429-10.26.18- name=LAI password=359 server=hotspot1
  102. add comment=up-429-10.26.18- name=VJJ password=411 server=hotspot1
  103. /ip service
  104. set telnet disabled=yes
  105. set ftp disabled=yes
  106. set www disabled=yes
  107. set ssh disabled=yes
  108. set api-ssl disabled=yes
  109. /radius
  110. add address=192.168.123.1 secret=senennet service=hotspot
  111. /radius incoming
  112. set accept=yes
  113. /system clock
  114. set time-zone-name=Australia/Brisbane
  115. /system identity
  116. set name="MikroTik-Kopi Ateng Flamboyan"
  117. /system logging
  118. add action=disk prefix=-> topics=hotspot,info,debug
  119. /system ntp client
  120. set enabled=yes primary-ntp=103.31.225.225 secondary-ntp=202.59.163.30
  121. /system routerboard settings
  122. set silent-boot=no
  123. /system scheduler
  124. add comment="Nyala Wifi 06:00" name="Nyala Wifi" on-event=\
  125.     "/system script run mati-wifi" policy=\
  126.     ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon \
  127.     start-date=sep/08/2018 start-time=06:00:00
  128. add comment="Mati Wifi Jam 00:00" name="Mati WiFi" on-event=\
  129.     "/system script run mati-wifi" policy=\
  130.     ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon \
  131.     start-date=sep/08/2018 start-time=00:00:00
  132. add interval=2w1d name="Auto Exportfile Via Email" on-event=\
  133.     "/system script run auto-exportfile-viaemail" policy=\
  134.     ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon \
  135.     start-date=oct/12/2018 start-time=03:00:00
  136. add interval=3w4d name="Auto Backup Via Email" on-event=\
  137.     "/system script run autobackup-email" policy=\
  138.     ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon \
  139.     start-date=oct/12/2018 start-time=03:00:00
  140. /system script
  141. add name=mati-wifi owner=saputraaziii policy=\
  142.     ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source=\
  143.     "/interface wireless disable numbers=0"
  144. add name=nyala-wifi owner=saputraaziii policy=\
  145.     ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source=\
  146.     "interface wireless enable  numbers=0"
  147. add name=autobackup-email owner=saputraaziii policy=\
  148.     ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source="#\
  149.    Date-Declaration#\r\
  150.    \n:local ds [/system clock get date]\r\
  151.    \n:local dds ([:pick \$ds 4 6].[pick \$ds 0 3].[:pick \$ds 7 11])\r\
  152.    \n\r\
  153.    \n#Fix-Variable-Declaration#\r\
  154.    \n:local routeridentity [/system identity get name]\r\
  155.    \n:local mikrotiktype [/system resource get board-name]\r\
  156.    \n\r\
  157.    \n#Backup-Router-Configuration#\r\
  158.    \n:local configbackup (\"config_\".\$routeridentity.\"_\".\$mikrotiktype.\
  159.    \"_\".\$dds.\".backup\")\r\
  160.    \n/system backup save name=\$configbackup\r\
  161.    \n:local emailsubject (\"Mikrotik Router Backup Configuration \".\$routeri\
  162.    dentity)\r\
  163.    \n:local emailbody (\"Please find out (attachment) the mikrotik router bac\
  164.    kup configuration belong of \".\$routeridentity.\", this email created wit\
  165.    h 1 day auto generate by the router itself and powered by Karyomendo Inter\
  166.    net Access,  thank you\")\r\
  167.    \n\r\
  168.    \n#Send-Email+Backup-Configuration#\r\
  169.    \n:delay 3s\r\
  170.    \n/tool e-mail send to=saputraazi98@gmail.com from=azi@karyomendo.com subj\
  171.    ect=\$emailsubject body=\$emailbody file=\$configbackup\r\
  172.    \n:log info \"Router baru saja mengirim backup file config....\"\r\
  173.    \n:delay 3s\r\
  174.    \n\r\
  175.    \n#Menghapus-File-Config-Backup#\r\
  176.    \n:log info \"Akan dilakukan penghapusan file backup dalam 20 detik kedepa\
  177.    n.....\"\r\
  178.    \n:delay 20s\r\
  179.    \n/file remove \$configbackup\r\
  180.    \n:delay 3s\r\
  181.    \n:log info \"\$configbackup telah dihapus......\""
  182. add name=auto-clear/flush owner=saputraaziii policy=\
  183.     ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source="#\
  184.    \_write by shaddana, shaddana@gmail.com +++++++++++\r\
  185.    \n# thanks to Alloh SWT and my parents +++++++++++++++\r\
  186.    \n# start of script +++++++++++++++++++++++++++++++++\r\
  187.    \n:log info message=\"autoreset-flash: auto reset-flush will started.\"\r\
  188.    \n:delay 3s;\r\
  189.    \n# auto reset counters filter ----------\r\
  190.    \n:log info message=\"autoreset-flush: try to reset counter firewall-filte\
  191.    r, please wait...\"\r\
  192.    \n/ip firewall filter reset-counters-all\r\
  193.    \n:delay 5s;\r\
  194.    \n:log info message=\"autoreset-flash: reset counter firewall-filter is do\
  195.    ne\"\r\
  196.    \n:delay 3s;\r\
  197.    \n# auto reset counters mangle ----------\r\
  198.    \n:log info message=\"autoreset-flush: try to reset counter firewall-mangl\
  199.    e, please wait...\"\r\
  200.    \n/ip firewall mangle reset-counters-all\r\
  201.    \n:delay 5s;\r\
  202.    \n:log info message=\"autoreset-flush: reset counter firewall-mangle is do\
  203.    ne\"\r\
  204.    \n:delay 3s;\r\
  205.    \n# auto reset counters nat -------------\r\
  206.    \n:log info message=\"autoreset-flush: try to reset counter firewall-nat, \
  207.    please wait...\"\r\
  208.    \n/ip firewall nat reset-counters-all\r\
  209.    \n:delay 5s;\r\
  210.    \n:log info message=\"autoreset-flush: reset counter firewall-nat is done\
  211.    \"\r\
  212.    \n:delay 3s;\r\
  213.    \n# auto reset counters queue tree ------\r\
  214.    \n:log info message=\"autoreset-flush: try to reset counter queue tree, pl\
  215.    ease wait...\"\r\
  216.    \n/queue tree reset-counters-all\r\
  217.    \n:delay 5s;\r\
  218.    \n:log info message=\"autoreset-flush: reset counter queue tree is done\"\
  219.    \r\
  220.    \n:delay 3s;\r\
  221.    \n# auto reset counters simple queue ----\r\
  222.    \n:log info message=\"autoreset-flush: try to reset counter simple queue, \
  223.    please wait...\"\r\
  224.    \n/queue simple reset-counters-all\r\
  225.    \n:delay 5s;\r\
  226.    \n:log info message=\"autoreset-flush: reset counter simple queue is done\
  227.    \"\r\
  228.    \n:delay 3s;\r\
  229.    \n# auto reset counters dns cache -------\r\
  230.    \n:log info message=\"autoreset-flush: try to flush dns cache, please wait\
  231.    ...\"\r\
  232.    \n/ip dns cache flush\r\
  233.    \n:delay 5s;\r\
  234.    \n:log info message=\"autoreset-flush: flush dns cache is done\"\r\
  235.    \n:delay 3s;\r\
  236.    \n:log info message=\"autoreset-flush: all autoreset-flush process is comp\
  237.    leted\"\r\
  238.    \n# end of script +++++++++++++++++++++++++++++++++++"
  239. add name=sendmail owner=saputraaziii policy=\
  240.     ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source="#\
  241.    Date-Declaration#\r\
  242.    \n:local ds [/system clock get date]\r\
  243.    \n:local dds ([:pick \$ds 4 6].[pick \$ds 0 3].[:pick \$ds 7 11])\r\
  244.    \n\r\
  245.    \n#Fix-Variable-Declaration#\r\
  246.    \n:local routeridentity [/system identity get name]\r\
  247.    \n:local mikrotiktype [/system resource get board-name]\r\
  248.    \n\r\
  249.    \n#Backup-Router-Configuration#\r\
  250.    \n:local configbackup (\"config_\".\$routeridentity.\"_\".\$mikrotiktype.\
  251.    \"_\".\$dds.\".backup\")\r\
  252.    \n/system backup save name=\$configbackup\r\
  253.    \n:local emailsubject (\"Mikrotik Router Backup Configuration \".\$routeri\
  254.    dentity)\r\
  255.    \n:local emailbody (\"Please find out (attachment) the mikrotik router bac\
  256.    kup configuration belong of \".\$routeridentity.\", this email created wit\
  257.    h 1 day auto generate by the router itself and powered by ORBICOM Internet\
  258.    \_Access, thank you\")\r\
  259.    \n\r\
  260.    \n#Send-Email+Backup-Configuration#\r\
  261.    \n:delay 1s\r\
  262.    \n/tool e-mail send to=hostmaster@gmail.com from=azi@karyomendo.com subjec\
  263.    t=\$emailsubject body=\$emailbody file=\$configbackup\r\
  264.    \n:log info \"Router baru saja mengirim backup file config....\"\r\
  265.    \n:delay 3s\r\
  266.    \n\r\
  267.    \n#Menghapus-File-Config-Backup#\r\
  268.    \n:log info \"Akan dilakukan penghapusan file backup dalam 20 detik kedepa\
  269.    n.....\"\r\
  270.    \n:delay 20s\r\
  271.    \n/file remove \$configbackup\r\
  272.    \n:delay 3s\r\
  273.    \n:log info \"\$configbackup telah dihapus......\""
  274. add name=auto-exportfile-viaemail owner=saputraaziii policy=\
  275.     ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source="#\
  276.    Date-Declaration#\r\
  277.    \n:local ds [/system clock get date]\r\
  278.    \n:local dds ([:pick \$ds 4 6].[pick \$ds 0 3].[:pick \$ds 7 11])\r\
  279.    \n\r\
  280.    \n#Fix-Variable-Declaration#\r\
  281.    \n:local routeridentity [/system identity get name]\r\
  282.    \n:local mikrotiktype [/system resource get board-name]\r\
  283.    \n\r\
  284.    \n#Export-Script-Router-Configuration#\r\
  285.    \n:local configbackup (\"config_\".\$routeridentity.\"_\".\$mikrotiktype.\
  286.    \"_\".\$dds.\".script\")\r\
  287.    \n/export file=\$configbackup\r\
  288.    \n:local emailsubject (\"Mikrotik Router File Script \".\$routeridentity)\
  289.    \r\
  290.    \n:local emailbody (\"Please find out (attachment) the mikrotik router scr\
  291.    ipt configuration belong of \".\$routeridentity.\", this email created wit\
  292.    h 1 day auto generate by the router itself and powered by Karyomendo Inter\
  293.    net Access,  thank you\")\r\
  294.    \n\r\
  295.    \n#Send-Email+Backup-Configuration#\r\
  296.    \n:delay 3s\r\
  297.    \n/tool e-mail send to=saputraazi98@gmail.com from=azi@karyomendo.com subj\
  298.    ect=\$emailsubject body=\$emailbody file=\$configbackup\r\
  299.    \n:log info \"Router baru saja mengirim script file config....\"\r\
  300.    \n:delay 3s\r\
  301.    \n\r\
  302.    \n#Menghapus-File-Config-Backup#\r\
  303.    \n:log info \"Akan dilakukan penghapusan file script dalam 20 detik kedepa\
  304.    n.....\"\r\
  305.    \n:delay 20s\r\
  306.    \n/file remove \$configbackup\r\
  307.    \n:delay 3s\r\
  308.    \n:log info \"\$configbackup telah dihapus......\""
  309. add name=script1 owner=saputraaziii policy=\
  310.     ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source=":\
  311.    foreach i in=[/ip dns cache find] do={ :if ([:find [/ip dns cache get \$i \
  312.    name] \"rapidshare\"] > 0) do={ :log info (\"rapidshare: \" . [/ip dns cac\
  313.    he get \$i name] . \" (ip address \" . [/ip dns cache get \$i address] . \
  314.    \")\") /ip firewall address-list add address=[/ip dns cache get \$i addres\
  315.    s] list=rapidshare disabled=no } }\r\
  316.    \n"
  317. add name=dns owner=saputraaziii policy=\
  318.     ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source=\
  319.     "/ip dns cache flush"
  320. add name="SMS Gateway" owner=saputraaziii policy=\
  321.     ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source="/\
  322.    tool sms send usb1 \"085778922135\" \\\r\
  323.    \n   message=\"Pelanggan Yth, Segeralah melakukan pembayaran Bulanan servi\
  324.    ce anda. (  Salam LebahNetworking ) https://lebahnetworking.net \""
  325. add comment=mikhmon name="oct/22/2018-|-13:34:05-|-Kopiatengeusf-|-0-|-192.168\
  326.    .92.10-|-30:CB:F8:4B:45:99-|-3h" owner=oct2018 policy=\
  327.     ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source=\
  328.     oct/22/2018
  329. add comment=mikhmon name="oct/22/2018-|-13:53:15-|-kopiateng-|-0-|-192.168.92.\
  330.    26-|-00:26:B6:09:5A:BE-|-3h" owner=oct2018 policy=\
  331.     ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source=\
  332.     oct/22/2018
  333. add comment=mikhmon name="oct/22/2018-|-15:30:31-|-Kopiatengf48-|-0-|-192.168.\
  334.    92.39-|-0C:98:38:07:AD:3B-|-3h" owner=oct2018 policy=\
  335.     ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source=\
  336.     oct/22/2018
  337. add comment=mikhmon name="oct/22/2018-|-16:48:33-|-Kopiateng627-|-0-|-192.168.\
  338.    92.10-|-30:CB:F8:4B:45:99-|-3h" owner=oct2018 policy=\
  339.     ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source=\
  340.     oct/22/2018
  341. add comment=mikhmon name="oct/22/2018-|-22:41:29-|-Kopiatengarvq-|-0-|-192.168\
  342.    .92.10-|-30:CB:F8:4B:45:99-|-3h" owner=oct2018 policy=\
  343.     ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source=\
  344.     oct/22/2018
  345. /system watchdog
  346. set watchdog-timer=no
  347. /tool e-mail
  348. set address=smtp.gmail.com from=infomikrotikk@gmail.com password=74710879m \
  349.     port=587 start-tls=yes user=infomikrotikk@gmail.com
  350. /tool romon
  351. set enabled=yes secrets=senennet
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement