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/RPG_Plumbing/BACKUP-RPG_Plumbing-2026feb27-175715.rsc
# feb/27/2026 17:57:15 by RouterOS 6.49.7
# software id = 61BB-G1N6
#
# model = RBD52G-5HacD2HnD
# serial number = B4A00AE53427
/interface bridge
add admin-mac=74:4D:28:91:39:30 auto-mac=no comment=defconf name=bridge
/interface ethernet
set [ find default-name=ether1 ] name=ether1-NBN
/interface vlan
add interface=ether1-NBN name=NBN-100 vlan-id=100
/interface list
add comment=defconf name=WAN
add comment=defconf name=LAN
add name=L2TP-Connections
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
add authentication-types=wpa-psk,wpa2-psk comment=RPG0738888151 eap-methods=\
    "" group-ciphers=tkip,aes-ccm management-protection=allowed mode=\
    dynamic-keys name=RPG supplicant-identity="" unicast-ciphers=tkip,aes-ccm \
    wpa-pre-shared-key=RPG0738888151 wpa2-pre-shared-key=RPG0738888151
/interface wireless
set [ find default-name=wlan1 ] antenna-gain=0 band=2ghz-b/g/n channel-width=\
    20/40mhz-XX country=australia disabled=no distance=indoors frequency=auto \
    frequency-mode=manual-txpower mode=ap-bridge name=wlan1-2G \
    security-profile=RPG ssid=RPG-2G station-roaming=enabled \
    wireless-protocol=802.11
set [ find default-name=wlan2 ] antenna-gain=0 band=5ghz-a/n/ac \
    channel-width=20/40/80mhz-XXXX country=no_country_set disabled=no \
    distance=indoors frequency=auto frequency-mode=manual-txpower mode=\
    ap-bridge name=wlan2-5G security-profile=RPG ssid=RPG-5G station-roaming=\
    enabled wireless-protocol=802.11
/ip dhcp-server option
add code=66 name=3cx_Phones value=\
    "'https://pbx2-3cx.voipitup.com.au/provisioning/lrbvvfvg1e'"
/ip pool
add name=default-dhcp ranges=192.168.88.10-192.168.88.254
add name=RPG ranges=192.168.5.10-192.168.5.200
add name=VPN-Pool ranges=10.10.10.2-10.10.10.200
/ip dhcp-server
add address-pool=RPG disabled=no interface=bridge name=RPG
/ppp profile
add comment=X9yNRp!U6VV2 dns-server=1.1.1.1,8.8.8.8 interface-list=\
    L2TP-Connections local-address=10.10.10.1 name=RPG-VPN remote-address=\
    VPN-Pool
/user group
set full policy="local,telnet,ssh,ftp,reboot,read,write,policy,test,winbox,pas\
    sword,web,sniff,sensitive,api,romon,dude,tikapp"
/interface bridge port
add bridge=bridge comment=defconf interface=ether2
add bridge=bridge comment=defconf interface=ether3
add bridge=bridge comment=defconf interface=ether4
add bridge=bridge comment=defconf disabled=yes interface=ether5
add bridge=bridge comment=defconf interface=wlan1-2G
add bridge=bridge comment=defconf interface=wlan2-5G
/ip neighbor discovery-settings
set discover-interface-list=LAN
/interface l2tp-server server
set authentication=mschap1,mschap2 enabled=yes ipsec-secret=X9yNRp!U6VV2 \
    use-ipsec=yes
/interface list member
add comment=defconf interface=bridge list=LAN
add comment=defconf interface=ether1-NBN list=WAN
add interface=NBN-100 list=WAN
add list=WAN
/ip address
add address=192.168.88.1/24 comment=defconf disabled=yes interface=bridge \
    network=192.168.88.0
add address=203.63.236.42/30 interface=NBN-100 network=203.63.236.40
add address=192.168.5.2/24 comment="Office LAN" interface=bridge network=\
    192.168.5.0
add address=192.168.1.1/24 interface=ether1-NBN network=192.168.1.0
/ip dhcp-client
add comment=defconf interface=ether1-NBN
/ip dhcp-server lease
add address=192.168.5.12 client-id=1:0:11:32:64:75:2a mac-address=\
    00:11:32:64:75:2A server=RPG
add address=192.168.5.104 client-id=1:80:5e:c0:73:2b:87 mac-address=\
    80:5E:C0:73:2B:87 server=RPG
add address=192.168.5.102 client-id=1:80:5e:c0:73:2b:8e mac-address=\
    80:5E:C0:73:2B:8E server=RPG
add address=192.168.5.103 client-id=1:80:5e:c0:73:2b:9c mac-address=\
    80:5E:C0:73:2B:9C server=RPG
add address=192.168.5.101 client-id=1:80:5e:c0:73:2b:89 mac-address=\
    80:5E:C0:73:2B:89 server=RPG
add address=192.168.5.13 client-id=1:1c:1b:d:e7:8b:a0 mac-address=\
    1C:1B:0D:E7:8C:A0 server=RPG
/ip dhcp-server network
add address=192.168.5.0/24 comment=defconf dhcp-option=3cx_Phones gateway=\
    192.168.5.2
/ip dns
set allow-remote-requests=yes servers=1.1.1.1,8.8.8.8
/ip dns static
add address=192.168.88.1 name=router.lan
/ip firewall address-list
add address=54.79.1.213 list=3CX
add address=61.69.57.74 list=Support
/ip firewall filter
add action=drop chain=input dst-port=53 in-interface-list=WAN protocol=tcp
add action=drop chain=input dst-port=53 in-interface-list=WAN protocol=udp
add action=accept chain=input comment=\
    "defconf: accept established,related,untracked" connection-state=\
    established,related,untracked
add action=accept chain=input in-interface-list=L2TP-Connections
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=Support
add action=accept chain=input in-interface-list=WAN protocol=ipsec-esp
add action=accept chain=input in-interface-list=WAN protocol=ipsec-ah
add action=accept chain=input dst-port=500 in-interface-list=WAN protocol=udp
add action=accept chain=input dst-port=1701 in-interface-list=WAN protocol=\
    udp
add action=accept chain=input dst-port=4500 in-interface-list=WAN protocol=\
    udp
add action=drop chain=input comment="defconf: drop invalid" connection-state=\
    invalid
add action=drop chain=input comment="defconf: drop all not coming from LAN" \
    in-interface-list=!LAN
add action=accept chain=forward comment="defconf: accept in ipsec policy" \
    disabled=yes ipsec-policy=in,ipsec
add action=accept chain=forward comment="defconf: accept out ipsec policy" \
    disabled=yes ipsec-policy=out,ipsec
add action=fasttrack-connection chain=forward comment="defconf: fasttrack" \
    connection-state=established,related
add action=accept chain=forward in-interface-list=L2TP-Connections
add action=accept chain=forward in-interface=all-ppp out-interface=bridge
add action=accept chain=forward comment=\
    "defconf: accept established,related, untracked" connection-state=\
    established,related,untracked
add action=drop chain=forward comment="defconf: drop invalid" \
    connection-state=invalid
add action=drop chain=forward comment=\
    "defconf:  drop all from WAN not DSTNATed" connection-nat-state=!dstnat \
    connection-state=new in-interface-list=WAN
/ip firewall nat
add action=masquerade chain=srcnat out-interface-list=L2TP-Connections
add action=masquerade chain=srcnat comment="defconf: masquerade" \
    ipsec-policy=out,none out-interface-list=WAN
add action=dst-nat chain=dstnat dst-port=14000-14019 in-interface-list=WAN \
    protocol=udp src-address-list=3CX to-addresses=192.168.5.102
add action=dst-nat chain=dstnat dst-port=14060-14079 in-interface-list=WAN \
    protocol=udp src-address-list=3CX to-addresses=192.168.5.104
add action=dst-nat chain=dstnat dst-port=14020-14039 in-interface-list=WAN \
    protocol=udp src-address-list=3CX to-addresses=192.168.5.101
add action=dst-nat chain=dstnat dst-port=14040-14059 in-interface-list=WAN \
    protocol=udp src-address-list=3CX to-addresses=192.168.5.103
add action=dst-nat chain=dstnat dst-port=14080-14099 in-interface-list=WAN \
    protocol=udp src-address-list=3CX to-addresses=192.168.5.105
/ip firewall service-port
set sip disabled=yes
/ip route
add distance=1 gateway=203.63.236.41
/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 forwarding-enabled=remote
/ppp secret
add comment="*DnxJ#\$D3hg6" name=RPG-Admin password="*DnxJ#\$D3hg6" profile=\
    RPG-VPN
/system clock
set time-zone-autodetect=no time-zone-name=Australia/Brisbane
/system identity
set name=RPG_Plumbing
/system logging
add disabled=yes topics=raw,debug
/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 \"/RPG_Plumbing\"\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:delay 10s\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 10s\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=nov/25/2022 start-time=17:57:15
/system script
add dont-require-permissions=no name=script1 owner=posscales policy=\
    ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source=":\
    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 \"/RPG_Plumbing\"\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:delay 10s\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 10s\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\""
/tool mac-server
set allowed-interface-list=LAN
/tool mac-server mac-winbox
set allowed-interface-list=LAN