HEX
Server: Apache
System: Linux server2.voipitup.com.au 4.18.0-553.104.1.lve.el8.x86_64 #1 SMP Tue Feb 10 20:07:30 UTC 2026 x86_64
User: posscale (1027)
PHP: 8.2.29
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/posscale/backup/MT_Backups/Creative_Kids/BACKUP-Creative Kids DayCare-2024jan11-205935.rsc
# jan/11/2024 20:59:35 by RouterOS 6.49.7
# software id = 2MWW-B9Y7
#
# model = RouterBOARD 3011UiAS
# serial number = 783F08385B38
/caps-man channel
add band=2ghz-g/n control-channel-width=20mhz frequency=2412 name=channel1
add band=2ghz-b/g/n control-channel-width=20mhz frequency=2437 name=channel6
add band=2ghz-b/g/n control-channel-width=20mhz frequency=2472 name=channel11
add band=5ghz-a/n/ac control-channel-width=40mhz-turbo frequency=5.18 name=\
    "5g 36"
add band=5ghz-a/n/ac control-channel-width=40mhz-turbo frequency=5.24 name=\
    "5g  48"
add band=5ghz-a/n/ac control-channel-width=40mhz-turbo frequency=5.3 name=\
    "5g  60"
add band=5ghz-a/n/ac control-channel-width=40mhz-turbo frequency=5.765 name=\
    "5g  60"
add band=5ghz-a/n/ac control-channel-width=40mhz-turbo frequency=5.825 name=\
    "5g 165"
/interface bridge
add admin-mac=CC:2D:E0:15:8E:C0 auto-mac=no comment=defconf name=\
    Office_Bridge
/interface ethernet
set [ find default-name=ether1 ] comment="4G BACKUP" speed=100Mbps
set [ find default-name=ether2 ] name=ether2-master speed=100Mbps
set [ find default-name=ether3 ] speed=100Mbps
set [ find default-name=ether4 ] speed=100Mbps
set [ find default-name=ether5 ] comment="NEW NBN VoIP It UP" speed=100Mbps
set [ find default-name=ether6 ] name=ether6-master speed=100Mbps
set [ find default-name=ether7 ] speed=100Mbps
set [ find default-name=ether8 ] speed=100Mbps
set [ find default-name=ether9 ] speed=100Mbps
set [ find default-name=ether10 ] speed=100Mbps
set [ find default-name=sfp1 ] advertise=\
    10M-half,10M-full,100M-half,100M-full,1000M-half,1000M-full
/interface vlan
add interface=ether5 name=NBN-Vlan-100 vlan-id=100
/caps-man datapath
add bridge=Office_Bridge client-to-client-forwarding=yes name=datapath1
add bridge=Office_Bridge client-to-client-forwarding=no name="Temp Data Path"
/caps-man security
add authentication-types=wpa2-psk encryption=aes-ccm name=\
    "Staff Security-Staff974082" passphrase=Staff974082
add authentication-types=wpa-psk,wpa2-psk encryption=aes-ccm,tkip name=\
    "Temp - Creative2018" passphrase=Creative2018
/caps-man configuration
add channel=channel1 country=australia datapath=datapath1 datapath.bridge=\
    Office_Bridge mode=ap name=OfficeNet security=\
    "Staff Security-Staff974082" ssid=CK-Staff
add channel=channel6 country=australia datapath=datapath1 datapath.bridge=\
    Office_Bridge mode=ap name=cfg2 security="Staff Security-Staff974082" \
    ssid=CK-Staff
add channel=channel11 country=australia datapath=datapath1 datapath.bridge=\
    Office_Bridge mode=ap name=cfg3 security="Staff Security-Staff974082" \
    ssid=CK-Staff
add channel.band=5ghz-n/ac channel.control-channel-width=40mhz-turbo \
    channel.frequency=5190 country=australia datapath=datapath1 \
    datapath.bridge=Office_Bridge mode=ap name="5G 1" security=\
    "Staff Security-Staff974082" ssid=CK-Staff
add channel.band=5ghz-n/ac channel.control-channel-width=40mhz-turbo \
    channel.frequency=5230 country=australia datapath=datapath1 \
    datapath.bridge=Office_Bridge mode=ap name="5G 2" security=\
    "Staff Security-Staff974082" ssid=CK-Staff
add channel.band=5ghz-n/ac channel.control-channel-width=40mhz-turbo \
    channel.frequency=5270 country=australia datapath=datapath1 \
    datapath.bridge=Office_Bridge mode=ap name="5G 3" security=\
    "Staff Security-Staff974082" ssid=CK-Staff
/caps-man interface
add channel.band=5ghz-n/ac channel.control-channel-width=20mhz \
    channel.frequency=5270 configuration.country=australia \
    configuration.mode=ap configuration.ssid=CK-Staff datapath=datapath1 \
    disabled=no l2mtu=1600 mac-address=CC:2D:E0:A1:B1:28 master-interface=\
    none name="Back Room 5GHz" radio-mac=CC:2D:E0:A1:B1:28 radio-name=\
    CC2DE0A1B128 security="Staff Security-Staff974082"
add channel.band=2ghz-g/n channel.control-channel-width=20mhz \
    channel.frequency=2412 configuration.country=australia \
    configuration.mode=ap configuration.ssid=CK-Staff datapath.bridge=\
    Office_Bridge datapath.client-to-client-forwarding=yes disabled=no l2mtu=\
    1600 mac-address=CC:2D:E0:A1:B1:27 master-interface=none name=\
    "Back room 2.4GHz" radio-mac=CC:2D:E0:A1:B1:27 radio-name=CC2DE0A1B127 \
    security="Staff Security-Staff974082"
add channel.band=2ghz-g/n channel.control-channel-width=20mhz \
    channel.frequency=2472 configuration=OfficeNet configuration.country=\
    australia configuration.mode=ap configuration.ssid=CK-Staff disabled=no \
    l2mtu=1600 mac-address=CC:2D:E0:A1:B0:DD master-interface=none name=\
    "Entry 2.4" radio-mac=CC:2D:E0:A1:B0:DD radio-name=CC2DE0A1B0DD
add channel.band=5ghz-a/n/ac channel.control-channel-width=20mhz \
    channel.frequency=5230 configuration.country=australia \
    configuration.mode=ap configuration.ssid=CK-Staff datapath=datapath1 \
    disabled=no l2mtu=1600 mac-address=CC:2D:E0:A1:B0:DE master-interface=\
    none name="Entry 5GHz" radio-mac=CC:2D:E0:A1:B0:DE radio-name=\
    CC2DE0A1B0DE security="Staff Security-Staff974082"
add channel.band=2ghz-g/n channel.control-channel-width=20mhz \
    channel.frequency=2437 configuration=OfficeNet disabled=no l2mtu=1600 \
    mac-address=CC:2D:E0:A1:B1:0B master-interface=none name="OSHC 2.4GHz" \
    radio-mac=CC:2D:E0:A1:B1:0B radio-name=CC2DE0A1B10B \
    rates.vht-supported-mcs=""
add channel.band=5ghz-n/ac channel.control-channel-width=20mhz \
    channel.frequency=5190 configuration.country=australia \
    configuration.mode=ap configuration.ssid=CK-Staff datapath=datapath1 \
    disabled=no l2mtu=1600 mac-address=CC:2D:E0:A1:B1:0C master-interface=\
    none name="OSHC 5GHz" radio-mac=CC:2D:E0:A1:B1:0C radio-name=CC2DE0A1B10C \
    security="Staff Security-Staff974082"
/interface list
add exclude=dynamic name=discover
add name=mactel
add name=mac-winbox
add name=WAN
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip pool
add name=default-dhcp ranges=192.168.1.10-192.168.1.149
/ip dhcp-server
add address-pool=default-dhcp disabled=no interface=Office_Bridge lease-time=\
    10h name=defconf
/port
set 1 baud-rate=9600 data-bits=8 flow-control=none name=usb2 parity=none \
    stop-bits=1
/interface ppp-client
add apn=internet name=ppp-out1 port=usb2
/user group
set full policy="local,telnet,ssh,ftp,reboot,read,write,policy,test,winbox,pas\
    sword,web,sniff,sensitive,api,romon,dude,tikapp"
/caps-man access-list
add action=accept allow-signal-out-of-range=10s disabled=yes interface=any \
    signal-range=-85..120 ssid-regexp=""
add action=reject allow-signal-out-of-range=10s disabled=yes interface=any \
    signal-range=-120..-86 ssid-regexp=""
/caps-man manager
set enabled=yes upgrade-policy=suggest-same-version
/interface bridge port
add bridge=Office_Bridge comment=defconf interface=ether2-master
add bridge=Office_Bridge comment=defconf interface=ether6-master
add bridge=Office_Bridge comment=defconf hw=no interface=sfp1
add bridge=Office_Bridge interface=ether3
add bridge=Office_Bridge interface=ether4
add bridge=Office_Bridge interface=ether7
add bridge=Office_Bridge interface=ether8
add bridge=Office_Bridge interface=ether9
add bridge=Office_Bridge interface=ether10
/ip neighbor discovery-settings
set discover-interface-list=all
/interface list member
add interface=ether2-master list=discover
add interface=ether3 list=discover
add interface=ether4 list=discover
add interface=ether5 list=discover
add interface=sfp1 list=discover
add interface=ether6-master list=discover
add interface=ether7 list=discover
add interface=ether8 list=discover
add interface=ether9 list=discover
add interface=ether10 list=discover
add interface=Office_Bridge list=discover
add interface=Office_Bridge list=mactel
add interface=Office_Bridge list=mac-winbox
add interface=ether1 list=WAN
add interface=ether5 list=WAN
add interface=NBN-Vlan-100 list=WAN
/ip address
add address=192.168.1.5/24 comment=defconf interface=Office_Bridge network=\
    192.168.1.0
add address=101.187.109.233 disabled=yes interface=ether1 network=\
    101.187.109.233
add address=203.63.23.250/30 interface=NBN-Vlan-100 network=203.63.23.248
/ip dhcp-client
add comment=defconf default-route-distance=2 disabled=no interface=ether1
/ip dhcp-server alert
add disabled=no interface=Office_Bridge
/ip dhcp-server lease
add address=192.168.1.4 client-id=1:cc:2d:e0:a1:b1:9 mac-address=\
    CC:2D:E0:A1:B1:09 server=defconf
add address=192.168.1.19 comment="Telstra Modem" mac-address=\
    08:02:8E:F1:14:BB server=defconf
add address=192.168.1.3 client-id=1:cc:2d:e0:a1:b1:25 mac-address=\
    CC:2D:E0:A1:B1:25 server=defconf
add address=192.168.1.61 client-id=1:0:1b:c2:5a:9b:ab comment=\
    "WX Protegue - Access Control" disabled=yes mac-address=00:1B:C2:5A:9B:AB \
    server=defconf
add address=192.168.1.2 client-id=1:cc:2d:e0:a1:b0:db mac-address=\
    CC:2D:E0:A1:B0:DB server=defconf
add address=192.168.1.210 comment="Permacon PM-54" mac-address=\
    BC:7D:D1:07:CD:EF server=defconf
add address=192.168.1.9 comment="CCTV - NVR" disabled=yes mac-address=\
    00:12:16:D2:AB:E8 server=defconf
add address=192.168.1.200 comment="3CX  SBC   " disabled=yes
/ip dhcp-server network
add address=192.168.1.0/24 comment=defconf dns-server=192.168.1.5,8.8.8.8 \
    gateway=192.168.1.5
/ip dns
set allow-remote-requests=yes servers=8.8.8.8,203.12.160.35,203.12.160.36
/ip dns static
add address=192.168.88.1 name=router
/ip firewall address-list
add address=61.69.57.74 list=Management
add address=119.18.33.185 list=Alarm_Monitoring
add address=120.88.122.221 list=Alarm_Monitoring
add address=159.196.60.32 list=Alarm_Monitoring
/ip firewall filter
add action=drop chain=input disabled=yes in-interface=NBN-Vlan-100 \
    src-address=8.8.8.8
add action=drop chain=input dst-port=53 in-interface-list=WAN protocol=udp
add action=drop chain=input dst-port=53 in-interface-list=WAN protocol=tcp
add action=accept chain=input comment="defconf: accept ICMP" protocol=icmp
add action=accept chain=input dst-port=8291 in-interface-list=WAN protocol=\
    tcp src-address-list=Management
add action=accept chain=forward in-interface-list=WAN src-address-list=\
    Alarm_Monitoring
add action=accept chain=input comment="defconf: accept established,related" \
    connection-state=established,related
add action=drop chain=input comment="defconf: drop all from WAN" \
    in-interface-list=WAN
add action=drop chain=forward comment="Unknowen CCTV Access" in-interface=\
    NBN-Vlan-100 log-prefix="Unknowen IP CCTV access drop" src-address=\
    185.195.232.178
add action=fasttrack-connection chain=forward comment="defconf: fasttrack" \
    connection-state=established,related
add action=accept chain=forward comment="defconf: accept established,related" \
    connection-state=established,related
add action=drop chain=forward comment=\
    "defconf:  drop all from WAN not DSTNATed" connection-nat-state=!dstnat \
    connection-state=new in-interface-list=WAN
add action=drop chain=forward comment="defconf: drop invalid" \
    connection-state=invalid in-interface-list=WAN log=yes log-prefix=\
    "FIrewall Drop:  "
/ip firewall nat
add action=masquerade chain=srcnat comment="defconf: masquerade" \
    out-interface-list=WAN
add action=accept chain=dstnat disabled=yes dst-port=8291 in-interface-list=\
    WAN protocol=tcp src-address=61.69.57.74 to-addresses=192.168.0.5
add action=dst-nat chain=dstnat dst-port=5050 in-interface-list=WAN protocol=\
    tcp to-addresses=192.168.1.102
add action=dst-nat chain=dstnat dst-port=4433 in-interface-list=WAN protocol=\
    tcp to-addresses=192.168.1.102
add action=dst-nat chain=dstnat comment="Alarm SYSTEM Texecom" dst-port=10001 \
    in-interface-list=WAN protocol=tcp to-addresses=192.168.1.90
add action=dst-nat chain=dstnat dst-port=10001 in-interface-list=WAN \
    protocol=udp to-addresses=192.168.1.90
add action=dst-nat chain=dstnat comment="Protege WX - Access Control" \
    dst-port=9450 in-interface-list=WAN protocol=tcp to-addresses=\
    192.168.1.250
add action=dst-nat chain=dstnat comment="Protege WX - Access Control" \
    dst-port=5950 in-interface-list=WAN log-prefix="ITC:   " protocol=tcp \
    to-addresses=192.168.1.250 to-ports=80
add action=dst-nat chain=dstnat comment="Protege WX - Access Control" \
    dst-port=9450 in-interface-list=WAN protocol=udp to-addresses=\
    192.168.1.250
add action=dst-nat chain=dstnat comment="Protege WX - Access Control" \
    dst-port=8080 in-interface-list=WAN protocol=tcp src-address-list=\
    Management to-addresses=192.168.1.250 to-ports=80
add action=dst-nat chain=dstnat comment=\
    "CCTV \?  ICP internet communication Payment\?" disabled=yes dst-port=80 \
    in-interface-list=WAN protocol=tcp to-addresses=192.168.1.9
add action=dst-nat chain=dstnat comment=\
    "CCTV \?  ICP internet communication Payment\?" disabled=yes dst-port=80 \
    in-interface-list=WAN protocol=tcp to-addresses=192.168.1.186
add action=dst-nat chain=dstnat comment=\
    "CCTV \?  ICP internet communication Payment\?" disabled=yes dst-port=\
    34567 in-interface-list=WAN log=yes log-prefix="cctv  " protocol=tcp \
    to-addresses=192.168.1.9
add action=dst-nat chain=dstnat comment=\
    "CCTV \?  ICP internet communication Payment\?" disabled=yes dst-port=554 \
    in-interface-list=WAN log=yes log-prefix="cctv  " protocol=tcp \
    to-addresses=192.168.1.9
add action=dst-nat chain=dstnat comment=\
    "CCTV \?  ICP internet communication Payment\?" disabled=yes dst-port=\
    34567 in-interface-list=WAN log=yes log-prefix="cctv  " protocol=udp \
    to-addresses=192.168.1.9
add action=dst-nat chain=dstnat comment="DMZ ALL OTHER Trafic   !!!!!!" \
    disabled=yes in-interface-list=WAN log=yes log-prefix="DMZ :::   " \
    to-addresses=192.168.1.19
add action=dst-nat chain=dstnat dst-port=6036 in-interface-list=WAN log=yes \
    log-prefix="Provision-Monitoring: " protocol=tcp src-address-list=\
    Alarm_Monitoring to-addresses=192.168.1.9
add action=dst-nat chain=dstnat dst-port=6036 in-interface-list=WAN log=yes \
    log-prefix="Provision-Monitoring: " protocol=udp src-address-list=\
    Alarm_Monitoring to-addresses=192.168.1.9
/ip firewall service-port
set sip disabled=yes
/ip route
add check-gateway=ping distance=1 gateway=203.63.23.249
add distance=1 dst-address=1.1.1.1/32 gateway=172.19.239.1
/ip service
set telnet disabled=yes
set ftp disabled=yes
set www disabled=yes
set ssh disabled=yes
set api disabled=yes
set api-ssl disabled=yes
/ip ssh
set allow-none-crypto=yes forwarding-enabled=remote
/system clock
set time-zone-autodetect=no time-zone-name=Australia/Brisbane
/system clock manual
set time-zone=+10:00
/system identity
set name="Creative Kids DayCare"
/system leds
set 0 interface=ether1 type=modem-technology
/system logging
set 1 action=disk
set 3 action=disk
/system ntp client
set enabled=yes primary-ntp=162.159.200.1 secondary-ntp=52.65.92.111
/system ntp server
set enabled=yes
/system scheduler
add interval=1w name=autobackup on-event=":local saveUserDB false\r\
    \n:local saveSysBackup true\r\
    \n:local encryptSysBackup false\r\
    \n:local saveRawExport true\r\
    \n\r\
    \n:local FTPServer \"backup.posscales.com.au\"\r\
    \n:local FTPPort 21\r\
    \n:local FTPUser \"MT_Backups@backup.posscales.com.au\"\r\
    \n:local FTPPass \"!Dgt.974082\"\r\
    \n:local FTPdest \"/Creative_Kids\"\r\
    \n\r\
    \n:local ts [/system clock get time]\r\
    \n:set ts ([:pick \$ts 0 2].[:pick \$ts 3 5].[:pick \$ts 6 8])\r\
    \n:local ds [/system clock get date]\r\
    \n:set ds ([:pick \$ds 7 11].[:pick \$ds 0 3].[:pick \$ds 4 6])\r\
    \n\r\
    \n:local fname (\"BACKUP-\".[/system identity get name].\"-\".\$ds.\"-\".\
    \$ts)\r\
    \n:local sfname (\"/\".\$fname)\r\
    \n:if (\$saveUserDB) do={\r\
    \n  /tool user-manager database save name=(\$sfname.\".umb\")\r\
    \n  :log info message=\"User Manager DB Backup Finished\"\r\
    \n}\r\
    \n:if (\$saveSysBackup) do={\r\
    \n  :if (\$encryptSysBackup = true) do={ /system backup save name=(\$sfnam\
    e.\".backup\") }\r\
    \n  :if (\$encryptSysBackup = false) do={ /system backup save dont-encrypt\
    =yes name=(\$sfname.\".backup\") }\r\
    \n  :log info message=\"System Backup Finished\"\r\
    \n}\r\
    \nif (\$saveRawExport) do={\r\
    \n  /export file=(\$sfname.\".rsc\")\r\
    \n  :log info message=\"Raw configuration script export Finished\"\r\
    \n}\r\
    \n:local backupFileName \"\"\r\
    \n:local backupDestPath \"\"\r\
    \n:foreach backupFile in=[/file find] do={\r\
    \n  :set backupFileName (\"/\".[/file get \$backupFile name])\r\
    \n  :set backupDestPath (\$FTPdest.\$backupFileName)\r\
    \n  :if ([:typeof [:find \$backupFileName \$sfname]] != \"nil\") do={\r\
    \n  # :log warning message=\"/tool fetch address=\$FTPServer port=\$FTPPor\
    t src-path=\$backupFileName user=\$FTPUser mode=ftp password=\$FTPPass dst\
    -path=\$backupDestPath upload=yes\"\r\
    \n\r\
    \n    /tool fetch address=\$FTPServer port=\$FTPPort src-path=\$backupFile\
    Name user=\$FTPUser mode=ftp password=\$FTPPass dst-path=\$backupDestPath \
    upload=yes\r\
    \n  }\r\
    \n}\r\
    \n:delay 5s\r\
    \n:foreach backupFile in=[/file find] do={\r\
    \n  :if ([:typeof [:find [/file get \$backupFile name] \"BACKUP-\"]]!=\"ni\
    l\") do={\r\
    \n    /file remove \$backupFile\r\
    \n  }\r\
    \n}\r\
    \n\r\
    \n:log info message=\"Successfully removed Temporary Backup Files\"\r\
    \n:log info message=\"Automatic Backup Completed Successfully\"" policy=\
    ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon \
    start-date=aug/05/2021 start-time=20:59:35
/system script
add dont-require-permissions=no name=test owner=posscales policy=\
    ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source=":\
    log err \"START Monitor UP\";\r\
    \n#Set the monitored IP address\r\
    \n:local addre 8.8.8.8;\r\
    \n\r\
    \n:local ToEml \"jloeken@posscales.com.au\";\r\
    \n:local CcEml \"jloeken@voipitup.com.au\";    #Seperate Mutiple by \",\"\
    \r\
    \n\r\
    \n:local int;\r\
    \n:local RouterName;  #identity\r\
    \n:local RouterVer;   #version\r\
    \n:local RouterUP;    #uptime\r\
    \n:local int in=[/ip neighbor find where address=\$addre]\r\
    \n  if ([/ip neighbor get \$int value-name=address] = \$addre ) do={\r\
    \n  :log info \"IP found in Neighbours \$addre\";\r\
    \n  :local RouterName [/ip neighbor get \$int value-name=identity];\r\
    \n  :local RouterVer [/ip neighbor get \$int value-name=version];\r\
    \n  :local RouterUP [/ip neighbor get \$int value-name=uptime];\r\
    \n\r\
    \n   else={:log info \"IP Not Found in Neighbours: \".\$addre}\r\
    \n}\r\
    \n\r\
    \n:log err \"RouterName= \$RouterName\";\r\
    \n:log err \"RouterVer= \$RouterVer\";\r\
    \n:log err \"RouterUP= \$RouterUP\";\r\
    \n\r\
    \n:local Themes \"Creative Kids - ROUTER Monitor \".\$RouterName.\"- Conne\
    ction UP -  IP:\".\$addre;\r\
    \n\r\
    \n\r\
    \n#Set the delay\r\
    \n:local ms 2;\r\
    \n:local avgRtt;\r\
    \n:local pin\r\
    \n:local pout\r\
    \n/tool flood-ping \$addre count=10 do={\r\
    \n  :if (\$sent = 10) do={\r\
    \n    :set avgRtt \$\"avg-rtt\"\r\
    \n    :set pout \$sent\r\
    \n    :set pin \$received\r\
    \n  }\r\
    \n}\r\
    \n:local ploss (100 - ((\$pin * 100) / \$pout))\r\
    \n:local logmsg (\"Ping Average for \".[:tostr \$addre].\" - \".[:tostr \$\
    avgRtt].\"ms - packet loss: \".[:tostr \$ploss].\"%\")\r\
    \n:log info \$logmsg\r\
    \n\r\
    \n\r\
    \n:log err \"IP:\$addre Connection to Router Back UP, Current Latency Moni\
    toring IP:\$addre\\ndelay:\$avgRtt ms\";\r\
    \n\r\
    \n#Send mail Where set i the TLS mode on this script\?\r\
    \n/tool e-mail send server=mail.voipitup.com.au port=587 user=pbx@voipitup\
    .com.au password=Pss.974082 to=\$ToEml cc=\$CcEml from=pbx@voipitup.com.au\
    \_subject=\$Themes body=(\"Monitoring_IP:\$addre\\ndelay:\$avgRtt ms\".\$l\
    ogmsg)\r\
    \n:log err \"Message has been sent\";\r\
    \n\r\
    \n"
add dont-require-permissions=no name=s owner=posscales policy=\
    ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source="{\
    \r\
    \n:log err \"START Monitor UP\";\r\
    \n#Set the monitored IP address\r\
    \n:local addre 8.8.8.8;\r\
    \n\r\
    \n:local ToEml \"jloeken@posscales.com.au\";\r\
    \n:local CcEml \"jloeken@voipitup.com.au\";    #Seperate Mutiple by \",\"\
    \r\
    \n\r\
    \n:local int;\r\
    \n:local RouterName;  #identity\r\
    \n:local RouterVer;   #version\r\
    \n:local RouterUP;    #uptime\r\
    \n\r\
    \n:if ( [/ip neighbor get [/ip neighbor find where address=\$addre Interfa\
    ce=ether1] platform] = \"MikroTik\" ) do={\r\
    \n    :log info \"IP found in Neighbours \$addre\";\r\
    \n\r\
    \n:set RouterName [/ip neighbor get [/ip neighbor find where address=\$add\
    re Interface=ether5] identity];\r\
    \n:set RouterVer [/ip neighbor get [/ip neighbor find where address=\$addr\
    e Interface=ether5] version];\r\
    \n:set RouterUP [/ip neighbor get [/ip neighbor find where address=\$addre\
    \_Interface=ether5] uptime];\r\
    \n }\r\
    \n\r\
    \n\r\
    \n:log err \"RouterName= \$RouterName\";\r\
    \n:log err \"RouterVer= \$RouterVer\";\r\
    \n:log err \"RouterUP= \$RouterUP\";\r\
    \n\r\
    \n:local Themes \"TLC ROUTER Monitor \$RouterName - Connection UP -  IP: \
    \$addre\";\r\
    \n\r\
    \n\r\
    \n#Set the delay\r\
    \n:local ms 2;\r\
    \n:local avgRtt;\r\
    \n:local pin\r\
    \n:local pout\r\
    \n/tool flood-ping \$addre count=10 do={\r\
    \n  :if (\$sent = 10) do={\r\
    \n    :set avgRtt \$\"avg-rtt\"\r\
    \n    :set pout \$sent\r\
    \n    :set pin \$received\r\
    \n  }\r\
    \n}\r\
    \n:local ploss (100 - ((\$pin * 100) / \$pout))\r\
    \n:local logmsg (\"Ping Average for \".[:tostr \$addre].\" - \".[:tostr \$\
    avgRtt].\"ms - packet loss: \".[:tostr \$ploss].\"%\")\r\
    \n:log info \$logmsg\r\
    \n\r\
    \n :local NeighborList [/ip neighbor print detail];\r\
    \n\r\
    \n#:log err \"IP:\$addre Connection to Router Back UP, Current Latency Mon\
    itoring IP:\$addre\\ndelay:\$avgRtt ms\";\r\
    \n\r\
    \n#Send mail Where set i the TLS mode on this script\?\r\
    \n/tool e-mail send server=mail.voipitup.com.au port=587 user=pbx@voipitup\
    .com.au password=Pss.974082 to=\$ToEml cc=\$CcEml from=pbx@voipitup.com.au\
    \_subject=\$Themes body=(\" TLC  \$RouterName  Router is now back up \\nIP\
    :      \$addre \\nVER:     \$RouterVer \\nUp Time: \$RouterUP  \\n\\nMonit\
    oring_IP:\$addre \\ndelay:\$avgRtt ms \\n\$logmsg  \\n\\n\\nDevice List \\\
    n \$NeighborList\")\r\
    \n\r\
    \n:log err \"Message has been sent\";\r\
    \n\r\
    \n}"
/tool bandwidth-server
set authenticate=no
/tool graphing interface
add
/tool graphing resource
add
/tool mac-server
set allowed-interface-list=none
/tool mac-server mac-winbox
set allowed-interface-list=mac-winbox
/tool mac-server ping
set enabled=no
/tool netwatch
add down-script=":log err \"START Monitor UP\";\r\
    \n#Set the monitored IP address\r\
    \n:local addre 172.30.78.2;\r\
    \n\r\
    \n:local ToEml \"jloeken@posscales.com.au\";\r\
    \n:local CcEml \"jloeken@voipitup.com.au\";    #Seperate Mutiple by \",\"\
    \r\
    \n\r\
    \n:local int;\r\
    \n:local RouterName;  #identity\r\
    \n:local RouterVer;   #version\r\
    \n:local RouterUP;    #uptime\r\
    \n\r\
    \n:if ( [/ip neighbor get [/ip neighbor find where address=\$addre Interfa\
    ce=ether5] platform] = \"MikroTik\" ) do={\r\
    \n    :log info \"IP found in Neighbours \$addre\";\r\
    \n\r\
    \n:set RouterName [/ip neighbor get [/ip neighbor find where address=\$add\
    re Interface=ether5] identity];\r\
    \n:set RouterVer [/ip neighbor get [/ip neighbor find where address=\$addr\
    e Interface=ether5] version];\r\
    \n:set RouterUP [/ip neighbor get [/ip neighbor find where address=\$addre\
    \_Interface=ether5] uptime];\r\
    \n }\r\
    \n\r\
    \n\r\
    \n#:log err \"RouterName= \$RouterName\";\r\
    \n#:log err \"RouterVer= \$RouterVer\";\r\
    \n#:log err \"RouterUP= \$RouterUP\";\r\
    \n\r\
    \n:local Themes \"TLC ROUTER Monitor \$RouterName - Connection UP -  IP: \
    \$addre\";\r\
    \n\r\
    \n\r\
    \n#Set the delay\r\
    \n:local ms 2;\r\
    \n:local avgRtt;\r\
    \n:local pin\r\
    \n:local pout\r\
    \n/tool flood-ping \$addre count=10 do={\r\
    \n  :if (\$sent = 10) do={\r\
    \n    :set avgRtt \$\"avg-rtt\"\r\
    \n    :set pout \$sent\r\
    \n    :set pin \$received\r\
    \n  }\r\
    \n}\r\
    \n:local ploss (100 - ((\$pin * 100) / \$pout))\r\
    \n:local logmsg (\"Ping Average for \".[:tostr \$addre].\" - \".[:tostr \$\
    avgRtt].\"ms - packet loss: \".[:tostr \$ploss].\"%\")\r\
    \n:log info \$logmsg\r\
    \n\r\
    \n:local NeighborList [/ip neighbor print detail];\r\
    \n\r\
    \n#:log err \"IP:\$addre Connection to Router Back UP, Current Latency Mon\
    itoring IP:\$addre\\ndelay:\$avgRtt ms\";\r\
    \n\r\
    \n#Send mail Where set i the TLS mode on this script\?\r\
    \n/tool e-mail send server=mail.voipitup.com.au port=587 user=pbx@voipitup\
    .com.au password=Pss.974082 to=\$ToEml cc=\$CcEml from=pbx@voipitup.com.au\
    \_subject=\$Themes body=(\" TLC  \$RouterName  Router is now back up \\nIP\
    :      \$addre \\nVER:     \$RouterVer \\nUp Time: \$RouterUP  \\n\\nMonit\
    oring_IP:\$addre \\ndelay:\$avgRtt ms \\n\$logmsg  \\n\\n\\nDevice List \\\
    n \$[/ip neighbor print]\")\r\
    \n:log err \"Message has been sent\";\r\
    \n\r\
    \n" host=1.1.1.1 up-script=":log err \"START Monitor UP\";\r\
    \n#Set the monitored IP address\r\
    \n:local addre 8.8.8.8;\r\
    \n\r\
    \n:local ToEml \"jloeken@posscales.com.au\";\r\
    \n:local CcEml \"jloeken@voipitup.com.au\";    #Seperate Mutiple by \",\"\
    \r\
    \n\r\
    \n:local int;\r\
    \n:local RouterName;  #identity\r\
    \n:local RouterVer;   #version\r\
    \n:local RouterUP;    #uptime\r\
    \n\r\
    \n:if ( [/ip neighbor get [/ip neighbor find where address=\$addre Interfa\
    ce=ether5] platform] = \"MikroTik\" ) do={\r\
    \n    :log info \"IP found in Neighbours \$addre\";\r\
    \n\r\
    \n:set RouterName [/ip neighbor get [/ip neighbor find where address=\$add\
    re Interface=ether5] identity];\r\
    \n:set RouterVer [/ip neighbor get [/ip neighbor find where address=\$addr\
    e Interface=ether5] version];\r\
    \n:set RouterUP [/ip neighbor get [/ip neighbor find where address=\$addre\
    \_Interface=ether5] uptime];\r\
    \n\r\
    \n# else={:log err \"START Monitor UP\"};\r\
    \n }\r\
    \n\r\
    \n\r\
    \n#:log err \"RouterName= \$RouterName\";\r\
    \n#:log err \"RouterVer= \$RouterVer\";\r\
    \n#:log err \"RouterUP= \$RouterUP\";\r\
    \n\r\
    \n:local Themes \"TLC ROUTER Monitor \$RouterName - Connection UP -  IP: \
    \$addre\";\r\
    \n\r\
    \n\r\
    \n#Set the delay\r\
    \n:local ms 2;\r\
    \n:local avgRtt;\r\
    \n:local pin\r\
    \n:local pout\r\
    \n/tool flood-ping \$addre count=10 do={\r\
    \n  :if (\$sent = 10) do={\r\
    \n    :set avgRtt \$\"avg-rtt\"\r\
    \n    :set pout \$sent\r\
    \n    :set pin \$received\r\
    \n  }\r\
    \n}\r\
    \n:local ploss (100 - ((\$pin * 100) / \$pout))\r\
    \n:local logmsg (\"Ping Average for \".[:tostr \$addre].\" - \".[:tostr \$\
    avgRtt].\"ms - packet loss: \".[:tostr \$ploss].\"%\")\r\
    \n:log info \$logmsg\r\
    \n\r\
    \n:local NeighborList [/ip neighbor print detail];\r\
    \n\r\
    \n#:log err \"IP:\$addre Connection to Router Back UP, Current Latency Mon\
    itoring IP:\$addre\\ndelay:\$avgRtt ms\";\r\
    \n\r\
    \n#Send mail Where set i the TLS mode on this script\?\r\
    \n/tool e-mail send server=mail.voipitup.com.au port=587 user=pbx@voipitup\
    .com.au password=Pss.974082 to=\$ToEml cc=\$CcEml from=pbx@voipitup.com.au\
    \_subject=\$Themes body=(\" TLC  \$RouterName  Router is now back up \\nIP\
    :      \$addre \\nVER:     \$RouterVer \\nUp Time: \$RouterUP  \\n\\nMonit\
    oring_IP:\$addre \\ndelay:\$avgRtt ms \\n\$logmsg  \\n\\n\\nDevice List \\\
    n \$[/ip neighbor print]\")\r\
    \n:log err \"Message has been sent\";\r\
    \n\r\
    \n"
/tool romon
set enabled=yes