Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /interface wireless
- set [ find default-name=wlan1 ] band=2ghz-b/g/n disabled=no mode=ap-bridge \
- ssid="@Kopi Ateng Flamboyan" wireless-protocol=802.11
- add disabled=no keepalive-frames=disabled mac-address=CE:2D:E0:19:75:A5 \
- master-interface=wlan1 multicast-buffering=disabled name=wlan2 ssid=\
- @senennet.id wds-cost-range=0 wds-default-cost=0 wps-mode=disabled
- /interface bridge
- add fast-forward=no name=BRIDGE
- add fast-forward=no name=bridge
- /interface ethernet
- set [ find default-name=ether1 ] comment=Internet/Radio mac-address=\
- CC:2D:E0:19:75:A1
- set [ find default-name=ether2 ] comment=CCTV mac-address=CC:2D:E0:19:75:A2
- set [ find default-name=ether3 ] mac-address=CC:2D:E0:19:75:A3
- set [ find default-name=ether4 ] mac-address=CC:2D:E0:19:75:A4
- /interface vlan
- add interface=ether1 name="vlan10-pppoe senennet" vlan-id=10
- add interface=ether1 name=vlan30 vlan-id=30
- /interface pppoe-client
- add add-default-route=yes disabled=no interface="vlan10-pppoe senennet" name=\
- PPPoE-SENENNET password=7db120s use-peer-dns=yes user=kopiateng@senen.net
- /interface list
- add name=Client
- /interface wireless security-profiles
- set [ find default=yes ] supplicant-identity=MikroTik
- /ip hotspot profile
- add dns-name=login.kopiateng.com hotspot-address=192.168.92.1 html-directory=\
- Kopi-Ateng-Login login-by=http-chap name=hsprof1
- /ip pool
- add name=hs-pool-6 ranges=192.168.92.2-192.168.92.254
- add name=dhcp_pool1 ranges=192.168.1.2-192.168.1.254
- /ip dhcp-server
- add address-pool=hs-pool-6 disabled=no interface=BRIDGE lease-time=1h name=\
- dhcp1
- add address-pool=dhcp_pool1 disabled=no interface=ether2 name=dhcp2
- /ip hotspot
- add address-pool=hs-pool-6 disabled=no interface=BRIDGE name=hotspot1 \
- profile=hsprof1
- /queue simple
- add name=All target=""
- add max-limit=5M/5M name=CCTV parent=All priority=2/2 target=ether2
- add max-limit=1M/2M name="PC Lt2" priority=2/2 target=192.168.92.243/32
- add max-limit=3M/5M name=Hotspot parent=All priority=7/7 queue=\
- pcq-upload-default/pcq-download-default target=""
- /ip hotspot user profile
- set [ find default=yes ] keepalive-timeout=10m parent-queue=Hotspot
- add keepalive-timeout=10m name=1Mbps-karyawan parent-queue=Hotspot \
- rate-limit=1M
- /interface bridge port
- add bridge=BRIDGE interface=wlan1
- add bridge=BRIDGE hw=no interface=ether4
- add bridge=bridge interface=vlan30
- add bridge=bridge interface=wlan2
- add bridge=BRIDGE hw=no interface=ether3
- /ip neighbor discovery-settings
- set discover-interface-list=Client
- /interface list member
- add interface=BRIDGE list=Client
- /ip address
- add address=172.27.79.6/24 interface=ether1 network=172.27.79.0
- add address=192.168.92.1/24 interface=BRIDGE network=192.168.92.0
- add address=192.168.1.1/24 interface=ether2 network=192.168.1.0
- /ip dhcp-server lease
- add address=192.168.92.243 always-broadcast=yes client-id=1:d8:cb:8a:cb:de:e7 \
- comment="PC " mac-address=D8:CB:8A:CB:DE:E7 server=dhcp1
- /ip dhcp-server network
- add address=192.168.1.0/24 gateway=192.168.1.1
- add address=192.168.92.0/24 comment="hotspot network" gateway=192.168.92.1
- /ip dns
- set allow-remote-requests=yes
- /ip firewall filter
- add action=passthrough chain=unused-hs-chain comment=\
- "place hotspot rules here" disabled=yes
- /ip firewall nat
- add action=passthrough chain=unused-hs-chain comment=\
- "place hotspot rules here" disabled=yes
- add action=masquerade chain=srcnat comment="masquerade hotspot network" \
- src-address=192.168.92.0/24
- add action=masquerade chain=srcnat out-interface=ether1
- add action=masquerade chain=srcnat out-interface=PPPoE-SENENNET
- /ip hotspot ip-binding
- add address=192.168.92.243 comment="PC " mac-address=D8:CB:8A:CB:DE:E7 \
- server=hotspot1 to-address=192.168.92.243 type=bypassed
- /ip hotspot user
- add comment=up-853-10.21.18- name=Lia password=121212 profile=1Mbps-karyawan
- add comment=up-853-10.21.18- name=ayu password=ayu123 profile=1Mbps-karyawan
- add comment=up-853-10.21.18- name=selma password=bibikbantet profile=\
- 1Mbps-karyawan
- add comment=up-853-10.21.18- name=dhani password=abangkurus profile=\
- 1Mbps-karyawan
- add comment=vc-853-10.21.18- name=darman password=darman profile=\
- 1Mbps-karyawan
- add comment=vc-853-10.21.18- name=anugrah password=anugrah profile=\
- 1Mbps-karyawan
- add comment=vc-853-10.21.18- name=yayat password=yayat profile=1Mbps-karyawan
- add name=Dwi password=buntal12 profile=1Mbps-karyawan
- add name=Admin password=admin profile=1Mbps-karyawan
- add comment=up-429-10.26.18- name=FLK password=587 server=hotspot1
- add comment=up-429-10.26.18- name=FKI password=359 server=hotspot1
- add comment=up-429-10.26.18- name=UAO password=123 server=hotspot1
- add comment=up-429-10.26.18- name=LAI password=359 server=hotspot1
- add comment=up-429-10.26.18- name=VJJ password=411 server=hotspot1
- /ip service
- set telnet disabled=yes
- set ftp disabled=yes
- set www disabled=yes
- set ssh disabled=yes
- set api-ssl disabled=yes
- /radius
- add address=192.168.123.1 secret=senennet service=hotspot
- /radius incoming
- set accept=yes
- /system clock
- set time-zone-name=Australia/Brisbane
- /system identity
- set name="MikroTik-Kopi Ateng Flamboyan"
- /system logging
- add action=disk prefix=-> topics=hotspot,info,debug
- /system ntp client
- set enabled=yes primary-ntp=103.31.225.225 secondary-ntp=202.59.163.30
- /system routerboard settings
- set silent-boot=no
- /system scheduler
- add comment="Nyala Wifi 06:00" name="Nyala Wifi" on-event=\
- "/system script run mati-wifi" policy=\
- ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon \
- start-date=sep/08/2018 start-time=06:00:00
- add comment="Mati Wifi Jam 00:00" name="Mati WiFi" on-event=\
- "/system script run mati-wifi" policy=\
- ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon \
- start-date=sep/08/2018 start-time=00:00:00
- add interval=2w1d name="Auto Exportfile Via Email" on-event=\
- "/system script run auto-exportfile-viaemail" policy=\
- ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon \
- start-date=oct/12/2018 start-time=03:00:00
- add interval=3w4d name="Auto Backup Via Email" on-event=\
- "/system script run autobackup-email" policy=\
- ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon \
- start-date=oct/12/2018 start-time=03:00:00
- /system script
- add name=mati-wifi owner=saputraaziii policy=\
- ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source=\
- "/interface wireless disable numbers=0"
- add name=nyala-wifi owner=saputraaziii policy=\
- ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source=\
- "interface wireless enable numbers=0"
- add name=autobackup-email owner=saputraaziii policy=\
- ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source="#\
- Date-Declaration#\r\
- \n:local ds [/system clock get date]\r\
- \n:local dds ([:pick \$ds 4 6].[pick \$ds 0 3].[:pick \$ds 7 11])\r\
- \n\r\
- \n#Fix-Variable-Declaration#\r\
- \n:local routeridentity [/system identity get name]\r\
- \n:local mikrotiktype [/system resource get board-name]\r\
- \n\r\
- \n#Backup-Router-Configuration#\r\
- \n:local configbackup (\"config_\".\$routeridentity.\"_\".\$mikrotiktype.\
- \"_\".\$dds.\".backup\")\r\
- \n/system backup save name=\$configbackup\r\
- \n:local emailsubject (\"Mikrotik Router Backup Configuration \".\$routeri\
- dentity)\r\
- \n:local emailbody (\"Please find out (attachment) the mikrotik router bac\
- kup configuration belong of \".\$routeridentity.\", this email created wit\
- h 1 day auto generate by the router itself and powered by Karyomendo Inter\
- net Access, thank you\")\r\
- \n\r\
- \n#Send-Email+Backup-Configuration#\r\
- \n:delay 3s\r\
- \n/tool e-mail send to=saputraazi98@gmail.com from=azi@karyomendo.com subj\
- ect=\$emailsubject body=\$emailbody file=\$configbackup\r\
- \n:log info \"Router baru saja mengirim backup file config....\"\r\
- \n:delay 3s\r\
- \n\r\
- \n#Menghapus-File-Config-Backup#\r\
- \n:log info \"Akan dilakukan penghapusan file backup dalam 20 detik kedepa\
- n.....\"\r\
- \n:delay 20s\r\
- \n/file remove \$configbackup\r\
- \n:delay 3s\r\
- \n:log info \"\$configbackup telah dihapus......\""
- add name=auto-clear/flush owner=saputraaziii policy=\
- ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source="#\
- \_write by shaddana, shaddana@gmail.com +++++++++++\r\
- \n# thanks to Alloh SWT and my parents +++++++++++++++\r\
- \n# start of script +++++++++++++++++++++++++++++++++\r\
- \n:log info message=\"autoreset-flash: auto reset-flush will started.\"\r\
- \n:delay 3s;\r\
- \n# auto reset counters filter ----------\r\
- \n:log info message=\"autoreset-flush: try to reset counter firewall-filte\
- r, please wait...\"\r\
- \n/ip firewall filter reset-counters-all\r\
- \n:delay 5s;\r\
- \n:log info message=\"autoreset-flash: reset counter firewall-filter is do\
- ne\"\r\
- \n:delay 3s;\r\
- \n# auto reset counters mangle ----------\r\
- \n:log info message=\"autoreset-flush: try to reset counter firewall-mangl\
- e, please wait...\"\r\
- \n/ip firewall mangle reset-counters-all\r\
- \n:delay 5s;\r\
- \n:log info message=\"autoreset-flush: reset counter firewall-mangle is do\
- ne\"\r\
- \n:delay 3s;\r\
- \n# auto reset counters nat -------------\r\
- \n:log info message=\"autoreset-flush: try to reset counter firewall-nat, \
- please wait...\"\r\
- \n/ip firewall nat reset-counters-all\r\
- \n:delay 5s;\r\
- \n:log info message=\"autoreset-flush: reset counter firewall-nat is done\
- \"\r\
- \n:delay 3s;\r\
- \n# auto reset counters queue tree ------\r\
- \n:log info message=\"autoreset-flush: try to reset counter queue tree, pl\
- ease wait...\"\r\
- \n/queue tree reset-counters-all\r\
- \n:delay 5s;\r\
- \n:log info message=\"autoreset-flush: reset counter queue tree is done\"\
- \r\
- \n:delay 3s;\r\
- \n# auto reset counters simple queue ----\r\
- \n:log info message=\"autoreset-flush: try to reset counter simple queue, \
- please wait...\"\r\
- \n/queue simple reset-counters-all\r\
- \n:delay 5s;\r\
- \n:log info message=\"autoreset-flush: reset counter simple queue is done\
- \"\r\
- \n:delay 3s;\r\
- \n# auto reset counters dns cache -------\r\
- \n:log info message=\"autoreset-flush: try to flush dns cache, please wait\
- ...\"\r\
- \n/ip dns cache flush\r\
- \n:delay 5s;\r\
- \n:log info message=\"autoreset-flush: flush dns cache is done\"\r\
- \n:delay 3s;\r\
- \n:log info message=\"autoreset-flush: all autoreset-flush process is comp\
- leted\"\r\
- \n# end of script +++++++++++++++++++++++++++++++++++"
- add name=sendmail owner=saputraaziii policy=\
- ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source="#\
- Date-Declaration#\r\
- \n:local ds [/system clock get date]\r\
- \n:local dds ([:pick \$ds 4 6].[pick \$ds 0 3].[:pick \$ds 7 11])\r\
- \n\r\
- \n#Fix-Variable-Declaration#\r\
- \n:local routeridentity [/system identity get name]\r\
- \n:local mikrotiktype [/system resource get board-name]\r\
- \n\r\
- \n#Backup-Router-Configuration#\r\
- \n:local configbackup (\"config_\".\$routeridentity.\"_\".\$mikrotiktype.\
- \"_\".\$dds.\".backup\")\r\
- \n/system backup save name=\$configbackup\r\
- \n:local emailsubject (\"Mikrotik Router Backup Configuration \".\$routeri\
- dentity)\r\
- \n:local emailbody (\"Please find out (attachment) the mikrotik router bac\
- kup configuration belong of \".\$routeridentity.\", this email created wit\
- h 1 day auto generate by the router itself and powered by ORBICOM Internet\
- \_Access, thank you\")\r\
- \n\r\
- \n#Send-Email+Backup-Configuration#\r\
- \n:delay 1s\r\
- \n/tool e-mail send to=hostmaster@gmail.com from=azi@karyomendo.com subjec\
- t=\$emailsubject body=\$emailbody file=\$configbackup\r\
- \n:log info \"Router baru saja mengirim backup file config....\"\r\
- \n:delay 3s\r\
- \n\r\
- \n#Menghapus-File-Config-Backup#\r\
- \n:log info \"Akan dilakukan penghapusan file backup dalam 20 detik kedepa\
- n.....\"\r\
- \n:delay 20s\r\
- \n/file remove \$configbackup\r\
- \n:delay 3s\r\
- \n:log info \"\$configbackup telah dihapus......\""
- add name=auto-exportfile-viaemail owner=saputraaziii policy=\
- ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source="#\
- Date-Declaration#\r\
- \n:local ds [/system clock get date]\r\
- \n:local dds ([:pick \$ds 4 6].[pick \$ds 0 3].[:pick \$ds 7 11])\r\
- \n\r\
- \n#Fix-Variable-Declaration#\r\
- \n:local routeridentity [/system identity get name]\r\
- \n:local mikrotiktype [/system resource get board-name]\r\
- \n\r\
- \n#Export-Script-Router-Configuration#\r\
- \n:local configbackup (\"config_\".\$routeridentity.\"_\".\$mikrotiktype.\
- \"_\".\$dds.\".script\")\r\
- \n/export file=\$configbackup\r\
- \n:local emailsubject (\"Mikrotik Router File Script \".\$routeridentity)\
- \r\
- \n:local emailbody (\"Please find out (attachment) the mikrotik router scr\
- ipt configuration belong of \".\$routeridentity.\", this email created wit\
- h 1 day auto generate by the router itself and powered by Karyomendo Inter\
- net Access, thank you\")\r\
- \n\r\
- \n#Send-Email+Backup-Configuration#\r\
- \n:delay 3s\r\
- \n/tool e-mail send to=saputraazi98@gmail.com from=azi@karyomendo.com subj\
- ect=\$emailsubject body=\$emailbody file=\$configbackup\r\
- \n:log info \"Router baru saja mengirim script file config....\"\r\
- \n:delay 3s\r\
- \n\r\
- \n#Menghapus-File-Config-Backup#\r\
- \n:log info \"Akan dilakukan penghapusan file script dalam 20 detik kedepa\
- n.....\"\r\
- \n:delay 20s\r\
- \n/file remove \$configbackup\r\
- \n:delay 3s\r\
- \n:log info \"\$configbackup telah dihapus......\""
- add name=script1 owner=saputraaziii policy=\
- ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source=":\
- foreach i in=[/ip dns cache find] do={ :if ([:find [/ip dns cache get \$i \
- name] \"rapidshare\"] > 0) do={ :log info (\"rapidshare: \" . [/ip dns cac\
- he get \$i name] . \" (ip address \" . [/ip dns cache get \$i address] . \
- \")\") /ip firewall address-list add address=[/ip dns cache get \$i addres\
- s] list=rapidshare disabled=no } }\r\
- \n"
- add name=dns owner=saputraaziii policy=\
- ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source=\
- "/ip dns cache flush"
- add name="SMS Gateway" owner=saputraaziii policy=\
- ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source="/\
- tool sms send usb1 \"085778922135\" \\\r\
- \n message=\"Pelanggan Yth, Segeralah melakukan pembayaran Bulanan servi\
- ce anda. ( Salam LebahNetworking ) https://lebahnetworking.net \""
- add comment=mikhmon name="oct/22/2018-|-13:34:05-|-Kopiatengeusf-|-0-|-192.168\
- .92.10-|-30:CB:F8:4B:45:99-|-3h" owner=oct2018 policy=\
- ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source=\
- oct/22/2018
- add comment=mikhmon name="oct/22/2018-|-13:53:15-|-kopiateng-|-0-|-192.168.92.\
- 26-|-00:26:B6:09:5A:BE-|-3h" owner=oct2018 policy=\
- ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source=\
- oct/22/2018
- add comment=mikhmon name="oct/22/2018-|-15:30:31-|-Kopiatengf48-|-0-|-192.168.\
- 92.39-|-0C:98:38:07:AD:3B-|-3h" owner=oct2018 policy=\
- ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source=\
- oct/22/2018
- add comment=mikhmon name="oct/22/2018-|-16:48:33-|-Kopiateng627-|-0-|-192.168.\
- 92.10-|-30:CB:F8:4B:45:99-|-3h" owner=oct2018 policy=\
- ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source=\
- oct/22/2018
- add comment=mikhmon name="oct/22/2018-|-22:41:29-|-Kopiatengarvq-|-0-|-192.168\
- .92.10-|-30:CB:F8:4B:45:99-|-3h" owner=oct2018 policy=\
- ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source=\
- oct/22/2018
- /system watchdog
- set watchdog-timer=no
- /tool e-mail
- set address=smtp.gmail.com from=infomikrotikk@gmail.com password=74710879m \
- port=587 start-tls=yes user=infomikrotikk@gmail.com
- /tool romon
- set enabled=yes secrets=senennet
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement