File: /home/posscale/backup/MT_Backups/The_Henley/BACKUP-TheHenley FibreSwitch-2022sep19-183220.rsc
# sep/19/2022 18:32:21 by RouterOS 6.48.3
# software id = 32P3-YZSV
#
# model = CCR2004-1G-12S+2XS
# serial number = D4F10E0585CE
/interface bridge
add name=bridge
/interface ethernet
set [ find default-name=ether1 ] speed=100Mbps
set [ find default-name=sfp-sfpplus1 ] comment="Link BACK to MAIN ROUTER"
set [ find default-name=sfp-sfpplus2 ] comment="Switch Level 1 Reception"
set [ find default-name=sfp-sfpplus3 ] comment=SwitchLevelB1Riser
set [ find default-name=sfp-sfpplus4 ] comment=SwitchLevel10Riser
set [ find default-name=sfp-sfpplus5 ] comment=SwitchLevel19Riser
/interface vlan
add interface=bridge name=COMM_vlan_100 vlan-id=100
add interface=bridge name=Unit_301 vlan-id=301
add interface=bridge name=Unit_302 vlan-id=302
add interface=bridge name=Unit_303 vlan-id=303
add interface=bridge name=Unit_304 vlan-id=304
add interface=bridge name=Unit_305 vlan-id=305
add interface=bridge name=Unit_306 vlan-id=306
add interface=bridge name=Unit_307 vlan-id=307
add interface=bridge name=Unit_308 vlan-id=308
add interface=bridge name=Unit_309 vlan-id=309
add interface=bridge name=Unit_310 vlan-id=310
add interface=bridge name=Unit_311 vlan-id=311
add interface=bridge name=Unit_312 vlan-id=312
add interface=bridge name=Unit_401 vlan-id=401
add interface=bridge name=Unit_402 vlan-id=402
add interface=bridge name=Unit_403 vlan-id=403
add interface=bridge name=Unit_404 vlan-id=404
add interface=bridge name=Unit_405 vlan-id=405
add interface=bridge name=Unit_406 vlan-id=406
add interface=bridge name=Unit_407 vlan-id=407
add interface=bridge name=Unit_501 vlan-id=501
add interface=bridge name=Unit_502 vlan-id=502
add interface=bridge name=Unit_503 vlan-id=503
add interface=bridge name=Unit_504 vlan-id=504
add interface=bridge name=Unit_505 vlan-id=505
add interface=bridge name=Unit_506 vlan-id=506
add interface=bridge name=Unit_507 vlan-id=507
add interface=bridge name=Unit_601 vlan-id=601
add interface=bridge name=Unit_602 vlan-id=602
add interface=bridge name=Unit_603 vlan-id=603
add interface=bridge name=Unit_604 vlan-id=604
add interface=bridge name=Unit_605 vlan-id=605
add interface=bridge name=Unit_606 vlan-id=606
add interface=bridge name=Unit_701 vlan-id=701
add interface=bridge name=Unit_702 vlan-id=702
add interface=bridge name=Unit_703 vlan-id=703
add interface=bridge name=Unit_704 vlan-id=704
add interface=bridge name=Unit_705 vlan-id=705
add interface=bridge name=Unit_706 vlan-id=706
add interface=bridge name=Unit_707 vlan-id=707
add interface=bridge name=Unit_801 vlan-id=801
add interface=bridge name=Unit_802 vlan-id=802
add interface=bridge name=Unit_803 vlan-id=803
add interface=bridge name=Unit_804 vlan-id=804
add interface=bridge name=Unit_805 vlan-id=805
add interface=bridge name=Unit_806 vlan-id=806
add interface=bridge name=Unit_901 vlan-id=901
add interface=bridge name=Unit_902 vlan-id=902
add interface=bridge name=Unit_903 vlan-id=903
add interface=bridge name=Unit_904 vlan-id=904
add interface=bridge name=Unit_905 vlan-id=905
add interface=bridge name=Unit_906 vlan-id=906
add interface=bridge name=Unit_1001 vlan-id=1001
add interface=bridge name=Unit_1002 vlan-id=1002
add interface=bridge name=Unit_1003 vlan-id=1003
add interface=bridge name=Unit_1004 vlan-id=1004
add interface=bridge name=Unit_1005 vlan-id=1005
add interface=bridge name=Unit_1006 vlan-id=1006
add interface=bridge name=Unit_1101 vlan-id=1101
add interface=bridge name=Unit_1102 vlan-id=1102
add interface=bridge name=Unit_1103 vlan-id=1103
add interface=bridge name=Unit_1104 vlan-id=1104
add interface=bridge name=Unit_1105 vlan-id=1105
add interface=bridge name=Unit_1106 vlan-id=1106
add interface=bridge name=Unit_1107 vlan-id=1107
add interface=bridge name=Unit_1201 vlan-id=1201
add interface=bridge name=Unit_1202 vlan-id=1202
add interface=bridge name=Unit_1203 vlan-id=1203
add interface=bridge name=Unit_1204 vlan-id=1204
add interface=bridge name=Unit_1205 vlan-id=1205
add interface=bridge name=Unit_1206 vlan-id=1206
add interface=bridge name=Unit_1301 vlan-id=1301
add interface=bridge name=Unit_1302 vlan-id=1302
add interface=bridge name=Unit_1303 vlan-id=1303
add interface=bridge name=Unit_1304 vlan-id=1304
add interface=bridge name=Unit_1305 vlan-id=1305
add interface=bridge name=Unit_1401 vlan-id=1401
add interface=bridge name=Unit_1402 vlan-id=1402
add interface=bridge name=Unit_1403 vlan-id=1403
add interface=bridge name=Unit_1404 vlan-id=1404
add interface=bridge name=Unit_1405 vlan-id=1405
add interface=bridge name=Unit_1406 vlan-id=1406
add interface=bridge name=Unit_1501 vlan-id=1501
add interface=bridge name=Unit_1502 vlan-id=1502
add interface=bridge name=Unit_1503 vlan-id=1503
add interface=bridge name=Unit_1504 vlan-id=1504
add interface=bridge name=Unit_1505 vlan-id=1505
add interface=bridge name=Unit_1601 vlan-id=1601
add interface=bridge name=Unit_1602 vlan-id=1602
add interface=bridge name=Unit_1603 vlan-id=1603
add interface=bridge name=Unit_1701 vlan-id=1701
add interface=bridge name=Unit_1702 vlan-id=1702
add interface=bridge name=Unit_1703 vlan-id=1703
add interface=bridge name=Unit_1801 vlan-id=1801
add interface=bridge name=Unit_1802 vlan-id=1802
add interface=bridge name=Unit_1803 vlan-id=1803
add interface=bridge name=Unit_1901 vlan-id=1901
add interface=bridge name=Unit_1902 vlan-id=1902
add interface=bridge name=Unit_1903 vlan-id=1903
add interface=bridge name=Unit_2001 vlan-id=2001
add interface=bridge name=Unit_2002 vlan-id=2002
add interface=bridge name=Unit_2003 vlan-id=2003
add interface=bridge name=Unit_2101 vlan-id=2101
add interface=bridge name=Unit_2201 vlan-id=2201
add interface=bridge name=Unit_2202 vlan-id=2202
add interface=bridge name=Unit_2301 vlan-id=2301
add interface=bridge name=Unit_2302 vlan-id=2302
add interface=bridge name=Unit_2401 vlan-id=2401
add interface=bridge name=Unit_2501 vlan-id=2501
add interface=bridge name=Unit_PPP_Vlan_99 vlan-id=99
/interface pppoe-client
add disabled=no interface=Unit_PPP_Vlan_99 name=301@henley password=k7JK8S \
user=301@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=302@henley password=rn53M7 \
user=302@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=303@henley password=0R4sJJ \
user=303@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=304@henley password=89s9gw \
user=304@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=305@henley password=35828Z \
user=305@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=306@henley password=rw0c24 \
user=306@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=307@henley password=fo7uK7 \
user=307@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=308@henley password=y5nkt5 \
user=308@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=309@henley password=WH613G \
user=309@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=310@henley password=vIMCgT \
user=310@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=311@henley password=i9aq07 \
user=311@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=312@henley password=y1OTXm \
user=312@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=401@henley password=FzjQ1C \
user=401@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=402@henley password=69x62p \
user=402@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=403@henley password=Ha5b8X \
user=403@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=404@henley password=8IxMr8 \
user=404@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=405@henley password=51lnX6 \
user=405@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=406@henley password=T4XNqY \
user=406@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=407@henley password=P35sp1 \
user=407@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=501@henley password=iE588T \
user=501@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=502@henley password=sx3P2J \
user=502@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=503@henley password=sx3P2J \
user=503@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=504@henley password=mlFrhG \
user=504@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=505@henley password=syRTBZ \
user=505@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=506@henley password=4LU92J \
user=506@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=507@henley password=pZ6g2x \
user=507@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=601@henley password=2s1cqv \
user=601@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=602@henley password=bbPXQv \
user=602@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=603@henley password=D3Wb27 \
user=603@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=604@henley password=dLpTh7 \
user=604@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=605@henley password=JlFtgP \
user=605@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=606@henley password=V7910r \
user=606@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=701@henley password=9q8hd4 \
user=701@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=702@henley password=3Wy88y \
user=702@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=703@henley password=0Iz8QX \
user=703@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=704@henley password=V4Q3SL \
user=704@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=705@henley password=b5g46D \
user=705@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=706@henley password=sHNCQS \
user=706@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=707@henley password=0kw24C \
user=707@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=801@henley password=LX9519 \
user=801@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=802@henley password=19X7j9 \
user=802@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=803@henley password=Wj51wI \
user=803@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=804@henley password=81dt0p \
user=804@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=805@henley password=mKQR2D \
user=805@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=806@henley password=n106Ep \
user=806@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=901@henley password=QUVQa8 \
user=901@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=902@henley password=R2tGk4 \
user=902@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=903@henley password=6ZA8MF \
user=903@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=904@henley password=KxKsa0 \
user=904@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=905@henley password=nm2eA6 \
user=905@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=906@henley password=0aG127 \
user=906@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=1001@henley password=L5kOm9 \
user=1001@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=1002@henley password=giRyP7 \
user=1002@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=1003@henley password=7yCi44 \
user=1003@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=1004@henley password=HkTFlE \
user=1004@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=1005@henley password=390aV6 \
user=1005@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=1006@henley password=3602D7 \
user=1006@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=1101@henley password=hNPu17 \
user=1101@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=1102@henley password=gMU7Fk \
user=1102@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=1103@henley password=YhP3JE \
user=1103@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=1104@henley password=CbACIn \
user=1104@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=1105@henley password=1EDpEq \
user=1105@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=1106@henley password=v7UyjA \
user=1106@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=1107@henley password=21dhF5 \
user=1107@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=1201@henley password=GDi5Mw \
user=1201@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=1202@henley password=2qaXi3 \
user=1202@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=1203@henley password=NvaD68 \
user=1203@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=1204@henley password=Q8Q157 \
user=1204@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=1205@henley password=ZV93pe \
user=1205@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=1206@henley password=om014i \
user=1206@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=1301@henley password=k990o6 \
user=1301@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=1302@henley password=0MSPls \
user=1302@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=1303@henley password=uWr5x9 \
user=1303@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=1304@henley password=7bR4cp \
user=1304@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=1305@henley password=GnkVK7 \
user=1305@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=1401@henley password=0mrA4r \
user=1401@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=1402@henley password=jMUdHE \
user=1402@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=1403@henley password=2yN6Hc \
user=1403@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=1404@henley password=9k88ff \
user=1404@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=1405@henley password=XTgxIO \
user=1405@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=1406@henley password=QHV31H \
user=1406@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=1501@henley password=93a0P5 \
user=1501@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=1502@henley password=iGeGjZ \
user=1502@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=1503@henley password=ftO51G \
user=1503@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=1504@henley password=E4h529 \
user=1504@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=1505@henley password=vvI0SP \
user=1505@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=1601@henley password=6jOw5M \
user=1601@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=1602@henley password=K2Ej1a \
user=1602@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=1603@henley password=zrqfs9 \
user=1603@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=1701@henley password=WIsXLI \
user=1701@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=1702@henley password=WIsXLI \
user=1702@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=1703@henley password=85i0hs \
user=1703@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=1801@henley password=vzKoOo \
user=1801@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=1802@henley password=E76756 \
user=1802@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=1803@henley password=W1f90f \
user=1803@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=1901@henley password=Y7b6gN \
user=1901@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=1902@henley password=5q0E33 \
user=1902@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=1903@henley password=KX9V96 \
user=1903@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=2001@henley password=Lud7ZO \
user=2001@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=2002@henley password=84Ze85 \
user=2002@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=2003@henley password=8xS6J7 \
user=2003@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=2101@henley password=57ElQR \
user=2101@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=2201@henley password=0K8w60 \
user=2201@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=2202@henley password=nxs5U1 \
user=2202@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=2301@henley password=U9822k \
user=2301@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=2302@henley password=7cNY6x \
user=2302@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=2401@henley password=RRQJ6j \
user=2401@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=2501@henley password=NYhTNo \
user=2501@henley
add disabled=no interface=Unit_PPP_Vlan_99 name=comm@henley password=\
thehen70marine19 user=comm@henley
/interface list
add name=ops
add name=guest
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip pool
add name=COMM-100 ranges=10.100.0.10-10.100.0.250
add name=Unit_1001 ranges=10.110.1.10-10.110.1.250
add name=Unit_1002 ranges=10.110.2.10-10.110.2.250
add name=Unit_1003 ranges=10.110.3.10-10.110.3.250
add name=Unit_1004 ranges=10.110.4.10-10.110.4.250
add name=Unit_1005 ranges=10.110.5.10-10.110.5.250
add name=Unit_1006 ranges=10.110.6.10-10.110.6.250
add name=Unit_1101 ranges=10.111.1.10-10.111.1.250
add name=Unit_1102 ranges=10.111.2.10-10.111.2.250
add name=Unit_1103 ranges=10.111.3.10-10.111.3.250
add name=Unit_1104 ranges=10.111.4.10-10.111.4.250
add name=Unit_1105 ranges=10.111.5.10-10.111.5.250
add name=Unit_1106 ranges=10.111.6.10-10.111.6.250
add name=Unit_1107 ranges=10.111.7.10-10.111.7.250
add name=Unit_1201 ranges=10.112.1.10-10.112.1.250
add name=Unit_1202 ranges=10.112.2.10-10.112.2.250
add name=Unit_1203 ranges=10.112.3.10-10.112.3.250
add name=Unit_1204 ranges=10.112.4.10-10.112.4.250
add name=Unit_1205 ranges=10.112.5.10-10.112.5.250
add name=Unit_1206 ranges=10.112.6.10-10.112.6.250
add name=Unit_1301 ranges=10.113.1.10-10.113.1.250
add name=Unit_1302 ranges=10.113.2.10-10.113.2.250
add name=Unit_1303 ranges=10.113.3.10-10.113.3.250
add name=Unit_1304 ranges=10.113.4.10-10.113.4.250
add name=Unit_1305 ranges=10.113.5.10-10.113.5.250
add name=Unit_1401 ranges=10.114.1.10-10.114.1.250
add name=Unit_1402 ranges=10.114.2.10-10.114.2.250
add name=Unit_1403 ranges=10.114.3.10-10.114.3.250
add name=Unit_1404 ranges=10.114.4.10-10.114.4.250
add name=Unit_1405 ranges=10.114.5.10-10.114.5.250
add name=Unit_1406 ranges=10.114.6.10-10.114.6.250
add name=Unit_1501 ranges=10.115.1.10-10.115.1.250
add name=Unit_1502 ranges=10.115.2.10-10.115.2.250
add name=Unit_1503 ranges=10.115.3.10-10.115.3.250
add name=Unit_1504 ranges=10.115.4.10-10.115.4.250
add name=Unit_1505 ranges=10.115.5.10-10.115.5.250
add name=Unit_1601 ranges=10.116.1.10-10.116.1.250
add name=Unit_1602 ranges=10.116.2.10-10.116.2.250
add name=Unit_1603 ranges=10.116.3.10-10.116.3.250
add name=Unit_1701 ranges=10.117.1.10-10.117.1.250
add name=Unit_1702 ranges=10.117.2.10-10.117.2.250
add name=Unit_1703 ranges=10.117.3.10-10.117.3.250
add name=Unit_1801 ranges=10.118.1.10-10.118.1.250
add name=Unit_1802 ranges=10.118.2.10-10.118.2.250
add name=Unit_1803 ranges=10.118.3.10-10.118.3.250
add name=Unit_1901 ranges=10.119.1.10-10.119.1.250
add name=Unit_1902 ranges=10.119.2.10-10.119.2.250
add name=Unit_1903 ranges=10.119.3.10-10.119.3.250
add name=Unit_2001 ranges=10.120.1.10-10.120.1.250
add name=Unit_2002 ranges=10.120.2.10-10.120.2.250
add name=Unit_2003 ranges=10.120.3.10-10.120.3.250
add name=Unit_2101 ranges=10.121.1.10-10.121.1.250
add name=Unit_2201 ranges=10.122.1.10-10.122.1.250
add name=Unit_2202 ranges=10.122.2.10-10.122.2.250
add name=Unit_2301 ranges=10.123.1.10-10.123.1.250
add name=Unit_2302 ranges=10.123.2.10-10.123.2.250
add name=Unit_2401 ranges=10.124.1.10-10.124.1.250
add name=Unit_2501 ranges=10.125.1.10-10.125.1.250
add name=Unit_301 ranges=10.103.1.10-10.103.1.250
add name=Unit_302 ranges=10.103.2.10-10.103.2.250
add name=Unit_303 ranges=10.103.3.10-10.103.3.250
add name=Unit_304 ranges=10.103.4.10-10.103.4.250
add name=Unit_305 ranges=10.103.5.10-10.103.5.250
add name=Unit_306 ranges=10.103.6.10-10.103.6.250
add name=Unit_307 ranges=10.103.7.10-10.103.7.250
add name=Unit_308 ranges=10.103.8.10-10.103.8.250
add name=Unit_309 ranges=10.103.9.10-10.103.9.250
add name=Unit_310 ranges=10.103.10.10-10.103.10.250
add name=Unit_311 ranges=10.103.11.10-10.103.11.250
add name=Unit_312 ranges=10.103.12.10-10.103.12.250
add name=Unit_401 ranges=10.104.1.10-10.104.1.250
add name=Unit_402 ranges=10.104.2.10-10.104.2.250
add name=Unit_403 ranges=10.104.3.10-10.104.3.250
add name=Unit_404 ranges=10.104.4.10-10.104.4.250
add name=Unit_405 ranges=10.104.5.10-10.104.5.250
add name=Unit_406 ranges=10.104.6.10-10.104.6.250
add name=Unit_407 ranges=10.104.7.10-10.104.7.250
add name=Unit_501 ranges=10.105.1.10-10.105.1.250
add name=Unit_502 ranges=10.105.2.10-10.105.2.250
add name=Unit_503 ranges=10.105.3.10-10.105.3.250
add name=Unit_504 ranges=10.105.4.10-10.105.4.250
add name=Unit_505 ranges=10.105.5.10-10.105.5.250
add name=Unit_506 ranges=10.105.6.10-10.105.6.250
add name=Unit_507 ranges=10.105.7.10-10.105.7.250
add name=Unit_601 ranges=10.106.1.10-10.106.1.250
add name=Unit_602 ranges=10.106.2.10-10.106.2.250
add name=Unit_603 ranges=10.106.3.10-10.106.3.250
add name=Unit_604 ranges=10.106.4.10-10.106.4.250
add name=Unit_605 ranges=10.106.5.10-10.106.5.250
add name=Unit_606 ranges=10.106.6.10-10.106.6.250
add name=Unit_701 ranges=10.107.1.10-10.107.1.250
add name=Unit_702 ranges=10.107.2.10-10.107.2.250
add name=Unit_703 ranges=10.107.3.10-10.107.3.250
add name=Unit_704 ranges=10.107.4.10-10.107.4.250
add name=Unit_705 ranges=10.107.5.10-10.107.5.250
add name=Unit_706 ranges=10.107.6.10-10.107.6.250
add name=Unit_707 ranges=10.107.7.10-10.107.7.250
add name=Unit_801 ranges=10.108.1.10-10.108.1.250
add name=Unit_802 ranges=10.108.2.10-10.108.2.250
add name=Unit_803 ranges=10.108.3.10-10.108.3.250
add name=Unit_804 ranges=10.108.4.10-10.108.4.250
add name=Unit_805 ranges=10.108.5.10-10.108.5.250
add name=Unit_806 ranges=10.108.6.10-10.108.6.250
add name=Unit_901 ranges=10.109.1.10-10.109.1.250
add name=Unit_902 ranges=10.109.2.10-10.109.2.250
add name=Unit_903 ranges=10.109.3.10-10.109.3.250
add name=Unit_904 ranges=10.109.4.10-10.109.4.250
add name=Unit_905 ranges=10.109.5.10-10.109.5.250
add name=Unit_906 ranges=10.109.6.10-10.109.6.250
/ip dhcp-server
add address-pool=Unit_1001 disabled=no interface=Unit_1001 lease-time=1h10m \
name=Unit_1001
add address-pool=Unit_1002 disabled=no interface=Unit_1002 lease-time=1h10m \
name=Unit_1002
add address-pool=Unit_1003 disabled=no interface=Unit_1003 lease-time=1h10m \
name=Unit_1003
add address-pool=Unit_1004 disabled=no interface=Unit_1004 lease-time=1h10m \
name=Unit_1004
add address-pool=Unit_1005 disabled=no interface=Unit_1005 lease-time=1h10m \
name=Unit_1005
add address-pool=Unit_1006 disabled=no interface=Unit_1006 lease-time=1h10m \
name=Unit_1006
add address-pool=Unit_1101 disabled=no interface=Unit_1101 lease-time=1h10m \
name=Unit_1101
add address-pool=Unit_1102 disabled=no interface=Unit_1102 lease-time=1h10m \
name=Unit_1102
add address-pool=Unit_1103 disabled=no interface=Unit_1103 lease-time=1h10m \
name=Unit_1103
add address-pool=Unit_1104 disabled=no interface=Unit_1104 lease-time=1h10m \
name=Unit_1104
add address-pool=Unit_1105 disabled=no interface=Unit_1105 lease-time=1h10m \
name=Unit_1105
add address-pool=Unit_1106 disabled=no interface=Unit_1106 lease-time=1h10m \
name=Unit_1106
add address-pool=Unit_1107 disabled=no interface=Unit_1107 lease-time=1h10m \
name=Unit_1107
add address-pool=Unit_1201 disabled=no interface=Unit_1201 lease-time=1h10m \
name=Unit_1201
add address-pool=Unit_1202 disabled=no interface=Unit_1202 lease-time=1h10m \
name=Unit_1202
add address-pool=Unit_1203 disabled=no interface=Unit_1203 lease-time=1h10m \
name=Unit_1203
add address-pool=Unit_1204 disabled=no interface=Unit_1204 lease-time=1h10m \
name=Unit_1204
add address-pool=Unit_1205 disabled=no interface=Unit_1205 lease-time=1h10m \
name=Unit_1205
add address-pool=Unit_1206 disabled=no interface=Unit_1206 lease-time=1h10m \
name=Unit_1206
add address-pool=Unit_1301 disabled=no interface=Unit_1301 lease-time=1h10m \
name=Unit_1301
add address-pool=Unit_1302 disabled=no interface=Unit_1302 lease-time=1h10m \
name=Unit_1302
add address-pool=Unit_1303 disabled=no interface=Unit_1303 lease-time=1h10m \
name=Unit_1303
add address-pool=Unit_1304 disabled=no interface=Unit_1304 lease-time=1h10m \
name=Unit_1304
add address-pool=Unit_1305 disabled=no interface=Unit_1305 lease-time=1h10m \
name=Unit_1305
add address-pool=Unit_1401 disabled=no interface=Unit_1401 lease-time=1h10m \
name=Unit_1401
add address-pool=Unit_1402 disabled=no interface=Unit_1402 lease-time=1h10m \
name=Unit_1402
add address-pool=Unit_1403 disabled=no interface=Unit_1403 lease-time=1h10m \
name=Unit_1403
add address-pool=Unit_1404 disabled=no interface=Unit_1404 lease-time=1h10m \
name=Unit_1404
add address-pool=Unit_1405 disabled=no interface=Unit_1405 lease-time=1h10m \
name=Unit_1405
add address-pool=Unit_1406 disabled=no interface=Unit_1406 lease-time=1h10m \
name=Unit_1406
add address-pool=Unit_1501 disabled=no interface=Unit_1501 lease-time=1h10m \
name=Unit_1501
add address-pool=Unit_1502 disabled=no interface=Unit_1502 lease-time=1h10m \
name=Unit_1502
add address-pool=Unit_1503 disabled=no interface=Unit_1503 lease-time=1h10m \
name=Unit_1503
add address-pool=Unit_1504 disabled=no interface=Unit_1504 lease-time=1h10m \
name=Unit_1504
add address-pool=Unit_1505 disabled=no interface=Unit_1505 lease-time=1h10m \
name=Unit_1505
add address-pool=Unit_1601 disabled=no interface=Unit_1601 lease-time=1h10m \
name=Unit_1601
add address-pool=Unit_1602 disabled=no interface=Unit_1602 lease-time=1h10m \
name=Unit_1602
add address-pool=Unit_1603 disabled=no interface=Unit_1603 lease-time=1h10m \
name=Unit_1603
add address-pool=Unit_1701 disabled=no interface=Unit_1701 lease-time=1h10m \
name=Unit_1701
add address-pool=Unit_1702 disabled=no interface=Unit_1702 lease-time=1h10m \
name=Unit_1702
add address-pool=Unit_1703 disabled=no interface=Unit_1703 lease-time=1h10m \
name=Unit_1703
add address-pool=Unit_1801 disabled=no interface=Unit_1801 lease-time=1h10m \
name=Unit_1801
add address-pool=Unit_1802 disabled=no interface=Unit_1802 lease-time=1h10m \
name=Unit_1802
add address-pool=Unit_1803 disabled=no interface=Unit_1803 lease-time=1h10m \
name=Unit_1803
add address-pool=Unit_1901 disabled=no interface=Unit_1901 lease-time=1h10m \
name=Unit_1901
add address-pool=Unit_1902 disabled=no interface=Unit_1902 lease-time=1h10m \
name=Unit_1902
add address-pool=Unit_1903 disabled=no interface=Unit_1903 lease-time=1h10m \
name=Unit_1903
add address-pool=Unit_2001 disabled=no interface=Unit_2001 lease-time=1h10m \
name=Unit_2001
add address-pool=Unit_2002 disabled=no interface=Unit_2002 lease-time=1h10m \
name=Unit_2002
add address-pool=Unit_2003 disabled=no interface=Unit_2003 lease-time=1h10m \
name=Unit_2003
add address-pool=Unit_2101 disabled=no interface=Unit_2101 lease-time=1h10m \
name=Unit_2101
add address-pool=Unit_2201 disabled=no interface=Unit_2201 lease-time=1h10m \
name=Unit_2201
add address-pool=Unit_2202 disabled=no interface=Unit_2202 lease-time=1h10m \
name=Unit_2202
add address-pool=Unit_2301 disabled=no interface=Unit_2301 lease-time=1h10m \
name=Unit_2301
add address-pool=Unit_2302 disabled=no interface=Unit_2302 lease-time=1h10m \
name=Unit_2302
add address-pool=Unit_2401 disabled=no interface=Unit_2401 lease-time=1h10m \
name=Unit_2401
add address-pool=Unit_2501 disabled=no interface=Unit_2501 lease-time=1h10m \
name=Unit_2501
add address-pool=Unit_301 disabled=no interface=Unit_301 lease-time=1h10m \
name=Unit_301
add address-pool=Unit_302 disabled=no interface=Unit_302 lease-time=1h10m \
name=Unit_302
add address-pool=Unit_303 disabled=no interface=Unit_303 lease-time=1h10m \
name=Unit_303
add address-pool=Unit_304 disabled=no interface=Unit_304 lease-time=1h10m \
name=Unit_304
add address-pool=Unit_305 disabled=no interface=Unit_305 lease-time=1h10m \
name=Unit_305
add address-pool=Unit_306 disabled=no interface=Unit_306 lease-time=1h10m \
name=Unit_306
add address-pool=Unit_307 disabled=no interface=Unit_307 lease-time=1h10m \
name=Unit_307
add address-pool=Unit_308 disabled=no interface=Unit_308 lease-time=1h10m \
name=Unit_308
add address-pool=Unit_309 disabled=no interface=Unit_309 lease-time=1h10m \
name=Unit_309
add address-pool=Unit_310 disabled=no interface=Unit_310 lease-time=1h10m \
name=Unit_310
add address-pool=Unit_311 disabled=no interface=Unit_311 lease-time=1h10m \
name=Unit_311
add address-pool=Unit_312 disabled=no interface=Unit_312 lease-time=1h10m \
name=Unit_312
add address-pool=Unit_401 disabled=no interface=Unit_401 lease-time=1h10m \
name=Unit_401
add address-pool=Unit_402 disabled=no interface=Unit_402 lease-time=1h10m \
name=Unit_402
add address-pool=Unit_403 disabled=no interface=Unit_403 lease-time=1h10m \
name=Unit_403
add address-pool=Unit_404 disabled=no interface=Unit_404 lease-time=1h10m \
name=Unit_404
add address-pool=Unit_405 disabled=no interface=Unit_405 lease-time=1h10m \
name=Unit_405
add address-pool=Unit_406 disabled=no interface=Unit_406 lease-time=1h10m \
name=Unit_406
add address-pool=Unit_407 disabled=no interface=Unit_407 lease-time=1h10m \
name=Unit_407
add address-pool=Unit_501 disabled=no interface=Unit_501 lease-time=1h10m \
name=Unit_501
add address-pool=Unit_502 disabled=no interface=Unit_502 lease-time=1h10m \
name=Unit_502
add address-pool=Unit_503 disabled=no interface=Unit_503 lease-time=1h10m \
name=Unit_503
add address-pool=Unit_504 disabled=no interface=Unit_504 lease-time=1h10m \
name=Unit_504
add address-pool=Unit_505 disabled=no interface=Unit_505 lease-time=1h10m \
name=Unit_505
add address-pool=Unit_506 disabled=no interface=Unit_506 lease-time=1h10m \
name=Unit_506
add address-pool=Unit_507 disabled=no interface=Unit_507 lease-time=1h10m \
name=Unit_507
add address-pool=Unit_601 disabled=no interface=Unit_601 lease-time=1h10m \
name=Unit_601
add address-pool=Unit_602 disabled=no interface=Unit_602 lease-time=1h10m \
name=Unit_602
add address-pool=Unit_603 disabled=no interface=Unit_603 lease-time=1h10m \
name=Unit_603
add address-pool=Unit_604 disabled=no interface=Unit_604 lease-time=1h10m \
name=Unit_604
add address-pool=Unit_605 disabled=no interface=Unit_605 lease-time=1h10m \
name=Unit_605
add address-pool=Unit_606 disabled=no interface=Unit_606 lease-time=1h10m \
name=Unit_606
add address-pool=Unit_701 disabled=no interface=Unit_701 lease-time=1h10m \
name=Unit_701
add address-pool=Unit_702 disabled=no interface=Unit_702 lease-time=1h10m \
name=Unit_702
add address-pool=Unit_703 disabled=no interface=Unit_703 lease-time=1h10m \
name=Unit_703
add address-pool=Unit_704 disabled=no interface=Unit_704 lease-time=1h10m \
name=Unit_704
add address-pool=Unit_705 disabled=no interface=Unit_705 lease-time=1h10m \
name=Unit_705
add address-pool=Unit_706 disabled=no interface=Unit_706 lease-time=1h10m \
name=Unit_706
add address-pool=Unit_707 disabled=no interface=Unit_707 lease-time=1h10m \
name=Unit_707
add address-pool=Unit_801 disabled=no interface=Unit_801 lease-time=1h10m \
name=Unit_801
add address-pool=Unit_802 disabled=no interface=Unit_802 lease-time=1h10m \
name=Unit_802
add address-pool=Unit_803 disabled=no interface=Unit_803 lease-time=1h10m \
name=Unit_803
add address-pool=Unit_804 disabled=no interface=Unit_804 lease-time=1h10m \
name=Unit_804
add address-pool=Unit_805 disabled=no interface=Unit_805 lease-time=1h10m \
name=Unit_805
add address-pool=Unit_806 disabled=no interface=Unit_806 lease-time=1h10m \
name=Unit_806
add address-pool=Unit_901 disabled=no interface=Unit_901 lease-time=1h10m \
name=Unit_901
add address-pool=Unit_902 disabled=no interface=Unit_902 lease-time=1h10m \
name=Unit_902
add address-pool=Unit_903 disabled=no interface=Unit_903 lease-time=1h10m \
name=Unit_903
add address-pool=Unit_904 disabled=no interface=Unit_904 lease-time=1h10m \
name=Unit_904
add address-pool=Unit_905 disabled=no interface=Unit_905 lease-time=1h10m \
name=Unit_905
add address-pool=Unit_906 disabled=no interface=Unit_906 lease-time=1h10m \
name=Unit_906
add address-pool=COMM-100 disabled=no interface=COMM_vlan_100 lease-time=\
1h10m name=COMM
/system logging action
set 0 memory-lines=10000
set 1 disk-file-count=10 disk-lines-per-file=10000
/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 interface=sfp-sfpplus1
add bridge=bridge interface=sfp-sfpplus2
add bridge=bridge interface=sfp-sfpplus3
add bridge=bridge interface=sfp-sfpplus4
add bridge=bridge interface=sfp-sfpplus5
/ip neighbor discovery-settings
set discover-interface-list=!dynamic
/ip address
add address=192.168.88.11/24 interface=ether1 network=192.168.88.0
add address=10.110.1.1/24 interface=Unit_1001 network=10.110.1.0
add address=10.110.2.1/24 interface=Unit_1002 network=10.110.2.0
add address=10.110.3.1/24 interface=Unit_1003 network=10.110.3.0
add address=10.110.4.1/24 interface=Unit_1004 network=10.110.4.0
add address=10.110.5.1/24 interface=Unit_1005 network=10.110.5.0
add address=10.110.6.1/24 interface=Unit_1006 network=10.110.6.0
add address=10.111.1.1/24 interface=Unit_1101 network=10.111.1.0
add address=10.111.2.1/24 interface=Unit_1102 network=10.111.2.0
add address=10.111.3.1/24 interface=Unit_1103 network=10.111.3.0
add address=10.111.4.1/24 interface=Unit_1104 network=10.111.4.0
add address=10.111.5.1/24 interface=Unit_1105 network=10.111.5.0
add address=10.111.6.1/24 interface=Unit_1106 network=10.111.6.0
add address=10.111.7.1/24 interface=Unit_1107 network=10.111.7.0
add address=10.112.1.1/24 interface=Unit_1201 network=10.112.1.0
add address=10.112.2.1/24 interface=Unit_1202 network=10.112.2.0
add address=10.112.3.1/24 interface=Unit_1203 network=10.112.3.0
add address=10.112.4.1/24 interface=Unit_1204 network=10.112.4.0
add address=10.112.5.1/24 interface=Unit_1205 network=10.112.5.0
add address=10.112.6.1/24 interface=Unit_1206 network=10.112.6.0
add address=10.113.1.1/24 interface=Unit_1301 network=10.113.1.0
add address=10.113.2.1/24 interface=Unit_1302 network=10.113.2.0
add address=10.113.3.1/24 interface=Unit_1303 network=10.113.3.0
add address=10.113.4.1/24 interface=Unit_1304 network=10.113.4.0
add address=10.113.5.1/24 interface=Unit_1305 network=10.113.5.0
add address=10.114.1.1/24 interface=Unit_1401 network=10.114.1.0
add address=10.114.2.1/24 interface=Unit_1402 network=10.114.2.0
add address=10.114.3.1/24 interface=Unit_1403 network=10.114.3.0
add address=10.114.4.1/24 interface=Unit_1404 network=10.114.4.0
add address=10.114.5.1/24 interface=Unit_1405 network=10.114.5.0
add address=10.114.6.1/24 interface=Unit_1406 network=10.114.6.0
add address=10.115.1.1/24 interface=Unit_1501 network=10.115.1.0
add address=10.115.2.1/24 interface=Unit_1502 network=10.115.2.0
add address=10.115.3.1/24 interface=Unit_1503 network=10.115.3.0
add address=10.115.4.1/24 interface=Unit_1504 network=10.115.4.0
add address=10.115.5.1/24 interface=Unit_1505 network=10.115.5.0
add address=10.116.1.1/24 interface=Unit_1601 network=10.116.1.0
add address=10.116.2.1/24 interface=Unit_1602 network=10.116.2.0
add address=10.116.3.1/24 interface=Unit_1603 network=10.116.3.0
add address=10.117.1.1/24 interface=Unit_1701 network=10.117.1.0
add address=10.117.2.1/24 interface=Unit_1702 network=10.117.2.0
add address=10.117.3.1/24 interface=Unit_1703 network=10.117.3.0
add address=10.118.1.1/24 interface=Unit_1801 network=10.118.1.0
add address=10.118.2.1/24 interface=Unit_1802 network=10.118.2.0
add address=10.118.3.1/24 interface=Unit_1803 network=10.118.3.0
add address=10.119.1.1/24 interface=Unit_1901 network=10.119.1.0
add address=10.119.2.1/24 interface=Unit_1902 network=10.119.2.0
add address=10.119.3.1/24 interface=Unit_1903 network=10.119.3.0
add address=10.120.1.1/24 interface=Unit_2001 network=10.120.1.0
add address=10.120.2.1/24 interface=Unit_2002 network=10.120.2.0
add address=10.120.3.1/24 interface=Unit_2003 network=10.120.3.0
add address=10.121.1.1/24 interface=Unit_2101 network=10.121.1.0
add address=10.122.1.1/24 interface=Unit_2201 network=10.122.1.0
add address=10.122.2.1/24 interface=Unit_2202 network=10.122.2.0
add address=10.123.1.1/24 interface=Unit_2301 network=10.123.1.0
add address=10.123.2.1/24 interface=Unit_2302 network=10.123.2.0
add address=10.124.1.1/24 interface=Unit_2401 network=10.124.1.0
add address=10.125.1.1/24 interface=Unit_2501 network=10.125.1.0
add address=10.103.1.1/24 interface=Unit_301 network=10.103.1.0
add address=10.103.2.1/24 interface=Unit_302 network=10.103.2.0
add address=10.103.3.1/24 interface=Unit_303 network=10.103.3.0
add address=10.103.4.1/24 interface=Unit_304 network=10.103.4.0
add address=10.103.5.1/24 interface=Unit_305 network=10.103.5.0
add address=10.103.6.1/24 interface=Unit_306 network=10.103.6.0
add address=10.103.7.1/24 interface=Unit_307 network=10.103.7.0
add address=10.103.8.1/24 interface=Unit_308 network=10.103.8.0
add address=10.103.9.1/24 interface=Unit_309 network=10.103.9.0
add address=10.103.10.1/24 interface=Unit_310 network=10.103.10.0
add address=10.103.11.1/24 interface=Unit_311 network=10.103.11.0
add address=10.103.12.1/24 interface=Unit_312 network=10.103.12.0
add address=10.104.1.1/24 interface=Unit_401 network=10.104.1.0
add address=10.104.2.1/24 interface=Unit_402 network=10.104.2.0
add address=10.104.3.1/24 interface=Unit_403 network=10.104.3.0
add address=10.104.4.1/24 interface=Unit_404 network=10.104.4.0
add address=10.104.5.1/24 interface=Unit_405 network=10.104.5.0
add address=10.104.6.1/24 interface=Unit_406 network=10.104.6.0
add address=10.104.7.1/24 interface=Unit_407 network=10.104.7.0
add address=10.105.1.1/24 interface=Unit_501 network=10.105.1.0
add address=10.105.2.1/24 interface=Unit_502 network=10.105.2.0
add address=10.105.3.1/24 interface=Unit_503 network=10.105.3.0
add address=10.105.4.1/24 interface=Unit_504 network=10.105.4.0
add address=10.105.5.1/24 interface=Unit_505 network=10.105.5.0
add address=10.105.6.1/24 interface=Unit_506 network=10.105.6.0
add address=10.105.7.1/24 interface=Unit_507 network=10.105.7.0
add address=10.106.1.1/24 interface=Unit_601 network=10.106.1.0
add address=10.106.2.1/24 interface=Unit_602 network=10.106.2.0
add address=10.106.3.1/24 interface=Unit_603 network=10.106.3.0
add address=10.106.4.1/24 interface=Unit_604 network=10.106.4.0
add address=10.106.5.1/24 interface=Unit_605 network=10.106.5.0
add address=10.106.6.1/24 interface=Unit_606 network=10.106.6.0
add address=10.107.1.1/24 interface=Unit_701 network=10.107.1.0
add address=10.107.2.1/24 interface=Unit_702 network=10.107.2.0
add address=10.107.3.1/24 interface=Unit_703 network=10.107.3.0
add address=10.107.4.1/24 interface=Unit_704 network=10.107.4.0
add address=10.107.5.1/24 interface=Unit_705 network=10.107.5.0
add address=10.107.6.1/24 interface=Unit_706 network=10.107.6.0
add address=10.107.7.1/24 interface=Unit_707 network=10.107.7.0
add address=10.108.1.1/24 interface=Unit_801 network=10.108.1.0
add address=10.108.2.1/24 interface=Unit_802 network=10.108.2.0
add address=10.108.3.1/24 interface=Unit_803 network=10.108.3.0
add address=10.108.4.1/24 interface=Unit_804 network=10.108.4.0
add address=10.108.5.1/24 interface=Unit_805 network=10.108.5.0
add address=10.108.6.1/24 interface=Unit_806 network=10.108.6.0
add address=10.109.1.1/24 interface=Unit_901 network=10.109.1.0
add address=10.109.2.1/24 interface=Unit_902 network=10.109.2.0
add address=10.109.3.1/24 interface=Unit_903 network=10.109.3.0
add address=10.109.4.1/24 interface=Unit_904 network=10.109.4.0
add address=10.109.5.1/24 interface=Unit_905 network=10.109.5.0
add address=10.109.6.1/24 interface=Unit_906 network=10.109.6.0
add address=10.100.0.1/24 interface=COMM_vlan_100 network=10.100.0.0
/ip dhcp-client
add interface=ether1
add disabled=no interface=bridge use-peer-dns=no use-peer-ntp=no
/ip dhcp-server alert
add disabled=no interface=sfp-sfpplus2
add disabled=no interface=sfp-sfpplus3
add disabled=no interface=sfp-sfpplus4
add disabled=no interface=sfp-sfpplus5
/ip dhcp-server network
add address=10.100.0.0/24 comment="COMM internet DHCP" dns-server=\
10.100.0.1,8.8.8.8 gateway=10.100.0.1
add address=10.103.1.0/24 dns-server=10.103.1.1,8.8.8.8 gateway=10.103.1.1
add address=10.103.2.0/24 dns-server=10.103.2.1,8.8.8.8 gateway=10.103.2.1
add address=10.103.3.0/24 dns-server=10.103.3.1,8.8.8.8 gateway=10.103.3.1
add address=10.103.4.0/24 dns-server=10.103.4.1,8.8.8.8 gateway=10.103.4.1
add address=10.103.5.0/24 dns-server=10.103.5.1,8.8.8.8 gateway=10.103.5.1
add address=10.103.6.0/24 dns-server=10.103.6.1,8.8.8.8 gateway=10.103.6.1
add address=10.103.7.0/24 dns-server=10.103.7.1,8.8.8.8 gateway=10.103.7.1
add address=10.103.8.0/24 dns-server=10.103.8.1,8.8.8.8 gateway=10.103.8.1
add address=10.103.9.0/24 dns-server=10.103.9.1,8.8.8.8 gateway=10.103.9.1
add address=10.103.10.0/24 dns-server=10.103.10.1,8.8.8.8 gateway=10.103.10.1
add address=10.103.11.0/24 dns-server=10.103.11.1,8.8.8.8 gateway=10.103.11.1
add address=10.103.12.0/24 dns-server=10.103.12.1,8.8.8.8 gateway=10.103.12.1
add address=10.104.1.0/24 dns-server=10.104.1.1,8.8.8.8 gateway=10.104.1.1
add address=10.104.2.0/24 dns-server=10.104.2.1,8.8.8.8 gateway=10.104.2.1
add address=10.104.3.0/24 dns-server=10.104.3.1,8.8.8.8 gateway=10.104.3.1
add address=10.104.4.0/24 dns-server=10.104.4.1,8.8.8.8 gateway=10.104.4.1
add address=10.104.5.0/24 dns-server=10.104.5.1,8.8.8.8 gateway=10.104.5.1
add address=10.104.6.0/24 dns-server=10.104.6.1,8.8.8.8 gateway=10.104.6.1
add address=10.104.7.0/24 dns-server=10.104.7.1,8.8.8.8 gateway=10.104.7.1
add address=10.105.1.0/24 dns-server=10.105.1.1,8.8.8.8 gateway=10.105.1.1
add address=10.105.2.0/24 dns-server=10.105.2.1,8.8.8.8 gateway=10.105.2.1
add address=10.105.3.0/24 dns-server=10.105.3.1,8.8.8.8 gateway=10.105.3.1
add address=10.105.4.0/24 dns-server=10.105.4.1,8.8.8.8 gateway=10.105.4.1
add address=10.105.5.0/24 dns-server=10.105.5.1,8.8.8.8 gateway=10.105.5.1
add address=10.105.6.0/24 dns-server=10.105.6.1,8.8.8.8 gateway=10.105.6.1
add address=10.105.7.0/24 dns-server=10.105.7.1,8.8.8.8 gateway=10.105.7.1
add address=10.106.1.0/24 dns-server=10.106.1.1,8.8.8.8 gateway=10.106.1.1
add address=10.106.2.0/24 dns-server=10.106.2.1,8.8.8.8 gateway=10.106.2.1
add address=10.106.3.0/24 dns-server=10.106.3.1,8.8.8.8 gateway=10.106.3.1
add address=10.106.4.0/24 dns-server=10.106.4.1,8.8.8.8 gateway=10.106.4.1
add address=10.106.5.0/24 dns-server=10.106.5.1,8.8.8.8 gateway=10.106.5.1
add address=10.106.6.0/24 dns-server=10.106.6.1,8.8.8.8 gateway=10.106.6.1
add address=10.107.1.0/24 dns-server=10.107.1.1,8.8.8.8 gateway=10.107.1.1
add address=10.107.2.0/24 dns-server=10.107.2.1,8.8.8.8 gateway=10.107.2.1
add address=10.107.3.0/24 dns-server=10.107.3.1,8.8.8.8 gateway=10.107.3.1
add address=10.107.4.0/24 dns-server=10.107.4.1,8.8.8.8 gateway=10.107.4.1
add address=10.107.5.0/24 dns-server=10.107.5.1,8.8.8.8 gateway=10.107.5.1
add address=10.107.6.0/24 dns-server=10.107.6.1,8.8.8.8 gateway=10.107.6.1
add address=10.107.7.0/24 dns-server=10.107.7.1,8.8.8.8 gateway=10.107.7.1
add address=10.108.1.0/24 dns-server=10.108.1.1,8.8.8.8 gateway=10.108.1.1
add address=10.108.2.0/24 dns-server=10.108.2.1,8.8.8.8 gateway=10.108.2.1
add address=10.108.3.0/24 dns-server=10.108.3.1,8.8.8.8 gateway=10.108.3.1
add address=10.108.4.0/24 dns-server=10.108.4.1,8.8.8.8 gateway=10.108.4.1
add address=10.108.5.0/24 dns-server=10.108.5.1,8.8.8.8 gateway=10.108.5.1
add address=10.108.6.0/24 dns-server=10.108.6.1,8.8.8.8 gateway=10.108.6.1
add address=10.109.1.0/24 dns-server=10.109.1.1,8.8.8.8 gateway=10.109.1.1
add address=10.109.2.0/24 dns-server=10.109.2.1,8.8.8.8 gateway=10.109.2.1
add address=10.109.3.0/24 dns-server=10.109.3.1,8.8.8.8 gateway=10.109.3.1
add address=10.109.4.0/24 dns-server=10.109.4.1,8.8.8.8 gateway=10.109.4.1
add address=10.109.5.0/24 dns-server=10.109.5.1,8.8.8.8 gateway=10.109.5.1
add address=10.109.6.0/24 dns-server=10.109.6.1,8.8.8.8 gateway=10.109.6.1
add address=10.110.1.0/24 dns-server=10.110.1.1,8.8.8.8 gateway=10.110.1.1
add address=10.110.2.0/24 dns-server=10.110.2.1,8.8.8.8 gateway=10.110.2.1
add address=10.110.3.0/24 dns-server=10.110.3.1,8.8.8.8 gateway=10.110.3.1
add address=10.110.4.0/24 dns-server=10.110.4.1,8.8.8.8 gateway=10.110.4.1
add address=10.110.5.0/24 dns-server=10.110.5.1,8.8.8.8 gateway=10.110.5.1
add address=10.110.6.0/24 dns-server=10.110.6.1,8.8.8.8 gateway=10.110.6.1
add address=10.111.1.0/24 dns-server=10.111.1.1,8.8.8.8 gateway=10.111.1.1
add address=10.111.2.0/24 dns-server=10.111.2.1,8.8.8.8 gateway=10.111.2.1
add address=10.111.3.0/24 dns-server=10.111.3.1,8.8.8.8 gateway=10.111.3.1
add address=10.111.4.0/24 dns-server=10.111.4.1,8.8.8.8 gateway=10.111.4.1
add address=10.111.5.0/24 dns-server=10.111.5.1,8.8.8.8 gateway=10.111.5.1
add address=10.111.6.0/24 dns-server=10.111.6.1,8.8.8.8 gateway=10.111.6.1
add address=10.111.7.0/24 dns-server=10.111.7.1,8.8.8.8 gateway=10.111.7.1
add address=10.112.1.0/24 dns-server=10.112.1.1,8.8.8.8 gateway=10.112.1.1
add address=10.112.2.0/24 dns-server=10.112.2.1,8.8.8.8 gateway=10.112.2.1
add address=10.112.3.0/24 dns-server=10.112.3.1,8.8.8.8 gateway=10.112.3.1
add address=10.112.4.0/24 dns-server=10.112.4.1,8.8.8.8 gateway=10.112.4.1
add address=10.112.5.0/24 dns-server=10.112.5.1,8.8.8.8 gateway=10.112.5.1
add address=10.112.6.0/24 dns-server=10.112.6.1,8.8.8.8 gateway=10.112.6.1
add address=10.113.1.0/24 dns-server=10.113.1.1,8.8.8.8 gateway=10.113.1.1
add address=10.113.2.0/24 dns-server=10.113.2.1,8.8.8.8 gateway=10.113.2.1
add address=10.113.3.0/24 dns-server=10.113.3.1,8.8.8.8 gateway=10.113.3.1
add address=10.113.4.0/24 dns-server=10.113.4.1,8.8.8.8 gateway=10.113.4.1
add address=10.113.5.0/24 dns-server=10.113.5.1,8.8.8.8 gateway=10.113.5.1
add address=10.114.1.0/24 dns-server=10.114.1.1,8.8.8.8 gateway=10.114.1.1
add address=10.114.2.0/24 dns-server=10.114.2.1,8.8.8.8 gateway=10.114.2.1
add address=10.114.3.0/24 dns-server=10.114.3.1,8.8.8.8 gateway=10.114.3.1
add address=10.114.4.0/24 dns-server=10.114.4.1,8.8.8.8 gateway=10.114.4.1
add address=10.114.5.0/24 dns-server=10.114.5.1,8.8.8.8 gateway=10.114.5.1
add address=10.114.6.0/24 dns-server=10.114.6.1,8.8.8.8 gateway=10.114.6.1
add address=10.115.1.0/24 dns-server=10.115.1.1,8.8.8.8 gateway=10.115.1.1
add address=10.115.2.0/24 dns-server=10.115.2.1,8.8.8.8 gateway=10.115.2.1
add address=10.115.3.0/24 dns-server=10.115.3.1,8.8.8.8 gateway=10.115.3.1
add address=10.115.4.0/24 dns-server=10.115.4.1,8.8.8.8 gateway=10.115.4.1
add address=10.115.5.0/24 dns-server=10.115.5.1,8.8.8.8 gateway=10.115.5.1
add address=10.116.1.0/24 dns-server=10.116.1.1,8.8.8.8 gateway=10.116.1.1
add address=10.116.2.0/24 dns-server=10.116.2.1,8.8.8.8 gateway=10.116.2.1
add address=10.116.3.0/24 dns-server=10.116.3.1,8.8.8.8 gateway=10.116.3.1
add address=10.117.1.0/24 dns-server=10.117.1.1,8.8.8.8 gateway=10.117.1.1
add address=10.117.2.0/24 dns-server=10.117.2.1,8.8.8.8 gateway=10.117.2.1
add address=10.117.3.0/24 dns-server=10.117.3.1,8.8.8.8 gateway=10.117.3.1
add address=10.118.1.0/24 dns-server=10.118.1.1,8.8.8.8 gateway=10.118.1.1
add address=10.118.2.0/24 dns-server=10.118.2.1,8.8.8.8 gateway=10.118.2.1
add address=10.118.3.0/24 dns-server=10.118.3.1,8.8.8.8 gateway=10.118.3.1
add address=10.119.1.0/24 dns-server=10.119.1.1,8.8.8.8 gateway=10.119.1.1
add address=10.119.2.0/24 dns-server=10.119.2.1,8.8.8.8 gateway=10.119.2.1
add address=10.119.3.0/24 dns-server=10.119.3.1,8.8.8.8 gateway=10.119.3.1
add address=10.120.1.0/24 dns-server=10.120.1.1,8.8.8.8 gateway=10.120.1.1
add address=10.120.2.0/24 dns-server=10.120.2.1,8.8.8.8 gateway=10.120.2.1
add address=10.120.3.0/24 dns-server=10.120.3.1,8.8.8.8 gateway=10.120.3.1
add address=10.121.1.0/24 dns-server=10.121.1.1,8.8.8.8 gateway=10.121.1.1
add address=10.122.1.0/24 dns-server=10.122.1.1,8.8.8.8 gateway=10.122.1.1
add address=10.122.2.0/24 dns-server=10.122.2.1,8.8.8.8 gateway=10.122.2.1
add address=10.123.1.0/24 dns-server=10.123.1.1,8.8.8.8 gateway=10.123.1.1
add address=10.123.2.0/24 dns-server=10.123.2.1,8.8.8.8 gateway=10.123.2.1
add address=10.124.1.0/24 dns-server=10.124.1.1,8.8.8.8 gateway=10.124.1.1
add address=10.125.1.0/24 dns-server=10.125.1.1,8.8.8.8 gateway=10.125.1.1
/ip dns
set allow-remote-requests=yes servers=8.8.8.8,8.8.4.4
/ip firewall address-list
add address=10.0.0.0/22 comment="Local LAN Not sure if should be enabled." \
list=admin-sources
add address=192.168.88.0/24 comment="Private ethernet link to switch" list=\
admin-sources
add address=10.10.10.0/24 comment="Management VPN" list=admin-sources
add address=192.168.0.0/24 comment="Management VPN" list=admin-sources
/ip firewall filter
add action=drop chain=forward dst-address=10.0.0.0/22 in-interface=bridge
add action=fasttrack-connection chain=input connection-state=\
established,related
add action=accept chain=input dst-port=8291 in-interface=ether1 protocol=tcp \
src-address-list=admin-sources
add action=accept chain=input dst-port=53 protocol=tcp
add action=accept chain=input dst-port=53 protocol=udp
add action=accept chain=input log-prefix="Accept :>> " protocol=udp src-port=\
67,68
add action=drop chain=input connection-state="" dst-port=80 log=yes \
log-prefix="DROP:>> " protocol=tcp src-address-list=!admin-sources
add action=drop chain=forward dst-address=10.100.0.0/24 in-interface=\
COMM_vlan_100 src-address=10.100.0.0/24
add action=accept chain=forward
add action=accept chain=input
/ip firewall mangle
add action=mark-routing chain=prerouting comment=Unit_1001 dst-address=\
!10.110.1.0/24 in-interface=Unit_1001 new-routing-mark=M1001 passthrough=\
no
add action=mark-routing chain=prerouting comment=Unit_1002 dst-address=\
!10.110.2.0/24 in-interface=Unit_1002 new-routing-mark=M1002 passthrough=\
no
add action=mark-routing chain=prerouting comment=Unit_1003 dst-address=\
!10.110.3.0/24 in-interface=Unit_1003 new-routing-mark=M1003 passthrough=\
no
add action=mark-routing chain=prerouting comment=Unit_1004 dst-address=\
!10.110.4.0/24 in-interface=Unit_1004 new-routing-mark=M1004 passthrough=\
no
add action=mark-routing chain=prerouting comment=Unit_1005 dst-address=\
!10.110.5.0/24 in-interface=Unit_1005 new-routing-mark=M1005 passthrough=\
no
add action=mark-routing chain=prerouting comment=Unit_1006 dst-address=\
!10.110.6.0/24 in-interface=Unit_1006 new-routing-mark=M1006 passthrough=\
no
add action=mark-routing chain=prerouting comment=Unit_1101 dst-address=\
!10.111.1.0/24 in-interface=Unit_1101 new-routing-mark=M1101 passthrough=\
no
add action=mark-routing chain=prerouting comment=Unit_1102 dst-address=\
!10.111.2.0/24 in-interface=Unit_1102 new-routing-mark=M1102 passthrough=\
no
add action=mark-routing chain=prerouting comment=Unit_1103 dst-address=\
!10.111.3.0/24 in-interface=Unit_1103 new-routing-mark=M1103 passthrough=\
no
add action=mark-routing chain=prerouting comment=Unit_1104 dst-address=\
!10.111.4.0/24 in-interface=Unit_1104 new-routing-mark=M1104 passthrough=\
no
add action=mark-routing chain=prerouting comment=Unit_1105 dst-address=\
!10.111.5.0/24 in-interface=Unit_1105 new-routing-mark=M1105 passthrough=\
no
add action=mark-routing chain=prerouting comment=Unit_1106 dst-address=\
!10.111.6.0/24 in-interface=Unit_1106 new-routing-mark=M1106 passthrough=\
no
add action=mark-routing chain=prerouting comment=Unit_1107 dst-address=\
!10.111.7.0/24 in-interface=Unit_1107 new-routing-mark=M1107 passthrough=\
no
add action=mark-routing chain=prerouting comment=Unit_1201 dst-address=\
!10.112.1.0/24 in-interface=Unit_1201 new-routing-mark=M1201 passthrough=\
no
add action=mark-routing chain=prerouting comment=Unit_1202 dst-address=\
!10.112.2.0/24 in-interface=Unit_1202 new-routing-mark=M1202 passthrough=\
no
add action=mark-routing chain=prerouting comment=Unit_1203 dst-address=\
!10.112.3.0/24 in-interface=Unit_1203 new-routing-mark=M1203 passthrough=\
no
add action=mark-routing chain=prerouting comment=Unit_1204 dst-address=\
!10.112.4.0/24 in-interface=Unit_1204 new-routing-mark=M1204 passthrough=\
no
add action=mark-routing chain=prerouting comment=Unit_1205 dst-address=\
!10.112.5.0/24 in-interface=Unit_1205 new-routing-mark=M1205 passthrough=\
no
add action=mark-routing chain=prerouting comment=Unit_1206 dst-address=\
!10.112.6.0/24 in-interface=Unit_1206 new-routing-mark=M1206 passthrough=\
no
add action=mark-routing chain=prerouting comment=Unit_1301 dst-address=\
!10.113.1.0/24 in-interface=Unit_1301 new-routing-mark=M1301 passthrough=\
no
add action=mark-routing chain=prerouting comment=Unit_1302 dst-address=\
!10.113.2.0/24 in-interface=Unit_1302 new-routing-mark=M1302 passthrough=\
no
add action=mark-routing chain=prerouting comment=Unit_1303 dst-address=\
!10.113.3.0/24 in-interface=Unit_1303 new-routing-mark=M1303 passthrough=\
no
add action=mark-routing chain=prerouting comment=Unit_1304 dst-address=\
!10.113.4.0/24 in-interface=Unit_1304 new-routing-mark=M1304 passthrough=\
no
add action=mark-routing chain=prerouting comment=Unit_1305 dst-address=\
!10.113.5.0/24 in-interface=Unit_1305 new-routing-mark=M1305 passthrough=\
no
add action=mark-routing chain=prerouting comment=Unit_1401 dst-address=\
!10.114.1.0/24 in-interface=Unit_1401 new-routing-mark=M1401 passthrough=\
no
add action=mark-routing chain=prerouting comment=Unit_1402 dst-address=\
!10.114.2.0/24 in-interface=Unit_1402 new-routing-mark=M1402 passthrough=\
no
add action=mark-routing chain=prerouting comment=Unit_1403 dst-address=\
!10.114.3.0/24 in-interface=Unit_1403 new-routing-mark=M1403 passthrough=\
no
add action=mark-routing chain=prerouting comment=Unit_1404 dst-address=\
!10.114.4.0/24 in-interface=Unit_1404 new-routing-mark=M1404 passthrough=\
no
add action=mark-routing chain=prerouting comment=Unit_1405 dst-address=\
!10.114.5.0/24 in-interface=Unit_1405 new-routing-mark=M1405 passthrough=\
no
add action=mark-routing chain=prerouting comment=Unit_1406 dst-address=\
!10.114.6.0/24 in-interface=Unit_1406 new-routing-mark=M1406 passthrough=\
no
add action=mark-routing chain=prerouting comment=Unit_1501 dst-address=\
!10.115.1.0/24 in-interface=Unit_1501 new-routing-mark=M1501 passthrough=\
no
add action=mark-routing chain=prerouting comment=Unit_1502 dst-address=\
!10.115.2.0/24 in-interface=Unit_1502 new-routing-mark=M1502 passthrough=\
no
add action=mark-routing chain=prerouting comment=Unit_1503 dst-address=\
!10.115.3.0/24 in-interface=Unit_1503 new-routing-mark=M1503 passthrough=\
no
add action=mark-routing chain=prerouting comment=Unit_1504 dst-address=\
!10.115.4.0/24 in-interface=Unit_1504 new-routing-mark=M1504 passthrough=\
no
add action=mark-routing chain=prerouting comment=Unit_1505 dst-address=\
!10.115.5.0/24 in-interface=Unit_1505 new-routing-mark=M1505 passthrough=\
no
add action=mark-routing chain=prerouting comment=Unit_1601 dst-address=\
!10.116.1.0/24 in-interface=Unit_1601 new-routing-mark=M1601 passthrough=\
no
add action=mark-routing chain=prerouting comment=Unit_1602 dst-address=\
!10.116.2.0/24 in-interface=Unit_1602 new-routing-mark=M1602 passthrough=\
no
add action=mark-routing chain=prerouting comment=Unit_1603 dst-address=\
!10.116.3.0/24 in-interface=Unit_1603 new-routing-mark=M1603 passthrough=\
no
add action=mark-routing chain=prerouting comment=Unit_1701 dst-address=\
!10.117.1.0/24 in-interface=Unit_1701 new-routing-mark=M1701 passthrough=\
no
add action=mark-routing chain=prerouting comment=Unit_1702 dst-address=\
!10.117.2.0/24 in-interface=Unit_1702 new-routing-mark=M1702 passthrough=\
no
add action=mark-routing chain=prerouting comment=Unit_1703 dst-address=\
!10.117.3.0/24 in-interface=Unit_1703 new-routing-mark=M1703 passthrough=\
no
add action=mark-routing chain=prerouting comment=Unit_1801 dst-address=\
!10.118.1.0/24 in-interface=Unit_1801 new-routing-mark=M1801 passthrough=\
no
add action=mark-routing chain=prerouting comment=Unit_1802 dst-address=\
!10.118.2.0/24 in-interface=Unit_1802 new-routing-mark=M1802 passthrough=\
no
add action=mark-routing chain=prerouting comment=Unit_1803 dst-address=\
!10.118.3.0/24 in-interface=Unit_1803 new-routing-mark=M1803 passthrough=\
no
add action=mark-routing chain=prerouting comment=Unit_1901 dst-address=\
!10.119.1.0/24 in-interface=Unit_1901 new-routing-mark=M1901 passthrough=\
no
add action=mark-routing chain=prerouting comment=Unit_1902 dst-address=\
!10.119.2.0/24 in-interface=Unit_1902 new-routing-mark=M1902 passthrough=\
no
add action=mark-routing chain=prerouting comment=Unit_1903 dst-address=\
!10.119.3.0/24 in-interface=Unit_1903 new-routing-mark=M1903 passthrough=\
no
add action=mark-routing chain=prerouting comment=Unit_2001 dst-address=\
!10.120.1.0/24 in-interface=Unit_2001 new-routing-mark=M2001 passthrough=\
no
add action=mark-routing chain=prerouting comment=Unit_2002 dst-address=\
!10.120.2.0/24 in-interface=Unit_2002 new-routing-mark=M2002 passthrough=\
no
add action=mark-routing chain=prerouting comment=Unit_2003 dst-address=\
!10.120.3.0/24 in-interface=Unit_2003 new-routing-mark=M2003 passthrough=\
no
add action=mark-routing chain=prerouting comment=Unit_2101 dst-address=\
!10.121.1.0/24 in-interface=Unit_2101 new-routing-mark=M2101 passthrough=\
no
add action=mark-routing chain=prerouting comment=Unit_2201 dst-address=\
!10.122.1.0/24 in-interface=Unit_2201 new-routing-mark=M2201 passthrough=\
no
add action=mark-routing chain=prerouting comment=Unit_2202 dst-address=\
!10.122.2.0/24 in-interface=Unit_2202 new-routing-mark=M2202 passthrough=\
no
add action=mark-routing chain=prerouting comment=Unit_2301 dst-address=\
!10.123.1.0/24 in-interface=Unit_2301 new-routing-mark=M2301 passthrough=\
no
add action=mark-routing chain=prerouting comment=Unit_2302 dst-address=\
!10.123.2.0/24 in-interface=Unit_2302 new-routing-mark=M2302 passthrough=\
no
add action=mark-routing chain=prerouting comment=Unit_2401 dst-address=\
!10.124.1.0/24 in-interface=Unit_2401 new-routing-mark=M2401 passthrough=\
no
add action=mark-routing chain=prerouting comment=Unit_2501 dst-address=\
!10.125.1.0/24 in-interface=Unit_2501 new-routing-mark=M2501 passthrough=\
no
add action=mark-routing chain=prerouting comment=Unit_301 dst-address=\
!10.103.1.0/24 in-interface=Unit_301 new-routing-mark=M301 passthrough=no
add action=mark-routing chain=prerouting comment="COMM 100" dst-address=\
!10.100.0.0/24 in-interface=COMM_vlan_100 new-routing-mark=M100 \
passthrough=no
add action=mark-routing chain=prerouting comment=Unit_302 dst-address=\
!10.103.2.0/24 in-interface=Unit_302 new-routing-mark=M302 passthrough=no
add action=mark-routing chain=prerouting comment=Unit_303 dst-address=\
!10.103.3.0/24 in-interface=Unit_303 new-routing-mark=M303 passthrough=no
add action=mark-routing chain=prerouting comment=Unit_304 dst-address=\
!10.103.4.0/24 in-interface=Unit_304 new-routing-mark=M304 passthrough=no
add action=mark-routing chain=prerouting comment=Unit_305 dst-address=\
!10.103.5.0/24 in-interface=Unit_305 new-routing-mark=M305 passthrough=no
add action=mark-routing chain=prerouting comment=Unit_306 dst-address=\
!10.103.6.0/24 in-interface=Unit_306 new-routing-mark=M306 passthrough=no
add action=mark-routing chain=prerouting comment=Unit_307 dst-address=\
!10.103.7.0/24 in-interface=Unit_307 new-routing-mark=M307 passthrough=no
add action=mark-routing chain=prerouting comment=Unit_308 dst-address=\
!10.103.8.0/24 in-interface=Unit_308 new-routing-mark=M308 passthrough=no
add action=mark-routing chain=prerouting comment=Unit_309 dst-address=\
!10.103.9.0/24 in-interface=Unit_309 new-routing-mark=M309 passthrough=no
add action=mark-routing chain=prerouting comment=Unit_310 dst-address=\
!10.103.10.0/24 in-interface=Unit_310 new-routing-mark=M310 passthrough=\
no
add action=mark-routing chain=prerouting comment=Unit_311 dst-address=\
!10.103.11.0/24 in-interface=Unit_311 new-routing-mark=M311 passthrough=\
no
add action=mark-routing chain=prerouting comment=Unit_312 dst-address=\
!10.103.12.0/24 in-interface=Unit_312 new-routing-mark=M312 passthrough=\
no
add action=mark-routing chain=prerouting comment=Unit_401 dst-address=\
!10.104.1.0/24 in-interface=Unit_401 new-routing-mark=M401 passthrough=no
add action=mark-routing chain=prerouting comment=Unit_402 dst-address=\
!10.104.2.0/24 in-interface=Unit_402 new-routing-mark=M402 passthrough=no
add action=mark-routing chain=prerouting comment=Unit_403 dst-address=\
!10.104.3.0/24 in-interface=Unit_403 new-routing-mark=M403 passthrough=no
add action=mark-routing chain=prerouting comment=Unit_404 dst-address=\
!10.104.4.0/24 in-interface=Unit_404 new-routing-mark=M404 passthrough=no
add action=mark-routing chain=prerouting comment=Unit_405 dst-address=\
!10.104.5.0/24 in-interface=Unit_405 new-routing-mark=M405 passthrough=no
add action=mark-routing chain=prerouting comment=Unit_406 dst-address=\
!10.104.6.0/24 in-interface=Unit_406 new-routing-mark=M406 passthrough=no
add action=mark-routing chain=prerouting comment=Unit_407 dst-address=\
!10.104.7.0/24 in-interface=Unit_407 new-routing-mark=M407 passthrough=no
add action=mark-routing chain=prerouting comment=Unit_501 dst-address=\
!10.105.1.0/24 in-interface=Unit_501 new-routing-mark=M501 passthrough=no
add action=mark-routing chain=prerouting comment=Unit_502 dst-address=\
!10.105.2.0/24 in-interface=Unit_502 new-routing-mark=M502 passthrough=no
add action=mark-routing chain=prerouting comment=Unit_503 dst-address=\
!10.105.3.0/24 in-interface=Unit_503 new-routing-mark=M503 passthrough=no
add action=mark-routing chain=prerouting comment=Unit_504 dst-address=\
!10.105.4.0/24 in-interface=Unit_504 new-routing-mark=M504 passthrough=no
add action=mark-routing chain=prerouting comment=Unit_505 dst-address=\
!10.105.5.0/24 in-interface=Unit_505 new-routing-mark=M505 passthrough=no
add action=mark-routing chain=prerouting comment=Unit_506 dst-address=\
!10.105.6.0/24 in-interface=Unit_506 new-routing-mark=M506 passthrough=no
add action=mark-routing chain=prerouting comment=Unit_507 dst-address=\
!10.105.7.0/24 in-interface=Unit_507 new-routing-mark=M507 passthrough=no
add action=mark-routing chain=prerouting comment=Unit_601 dst-address=\
!10.106.1.0/24 in-interface=Unit_601 new-routing-mark=M601 passthrough=no
add action=mark-routing chain=prerouting comment=Unit_602 dst-address=\
!10.106.2.0/24 in-interface=Unit_602 new-routing-mark=M602 passthrough=no
add action=mark-routing chain=prerouting comment=Unit_603 dst-address=\
!10.106.3.0/24 in-interface=Unit_603 new-routing-mark=M603 passthrough=no
add action=mark-routing chain=prerouting comment=Unit_604 dst-address=\
!10.106.4.0/24 in-interface=Unit_604 new-routing-mark=M604 passthrough=no
add action=mark-routing chain=prerouting comment=Unit_605 dst-address=\
!10.106.5.0/24 in-interface=Unit_605 new-routing-mark=M605 passthrough=no
add action=mark-routing chain=prerouting comment=Unit_606 dst-address=\
!10.106.6.0/24 in-interface=Unit_606 new-routing-mark=M606 passthrough=no
add action=mark-routing chain=prerouting comment=Unit_701 dst-address=\
!10.107.1.0/24 in-interface=Unit_701 new-routing-mark=M701 passthrough=no
add action=mark-routing chain=prerouting comment=Unit_702 dst-address=\
!10.107.2.0/24 in-interface=Unit_702 new-routing-mark=M702 passthrough=no
add action=mark-routing chain=prerouting comment=Unit_703 dst-address=\
!10.107.3.0/24 in-interface=Unit_703 new-routing-mark=M703 passthrough=no
add action=mark-routing chain=prerouting comment=Unit_704 dst-address=\
!10.107.4.0/24 in-interface=Unit_704 new-routing-mark=M704 passthrough=no
add action=mark-routing chain=prerouting comment=Unit_705 dst-address=\
!10.107.5.0/24 in-interface=Unit_705 new-routing-mark=M705 passthrough=no
add action=mark-routing chain=prerouting comment=Unit_706 dst-address=\
!10.107.6.0/24 in-interface=Unit_706 new-routing-mark=M706 passthrough=no
add action=mark-routing chain=prerouting comment=Unit_707 dst-address=\
!10.107.7.0/24 in-interface=Unit_707 new-routing-mark=M707 passthrough=no
add action=mark-routing chain=prerouting comment=Unit_801 dst-address=\
!10.108.1.0/24 in-interface=Unit_801 new-routing-mark=M801 passthrough=no
add action=mark-routing chain=prerouting comment=Unit_802 dst-address=\
!10.108.2.0/24 in-interface=Unit_802 new-routing-mark=M802 passthrough=no
add action=mark-routing chain=prerouting comment=Unit_803 dst-address=\
!10.108.3.0/24 in-interface=Unit_803 new-routing-mark=M803 passthrough=no
add action=mark-routing chain=prerouting comment=Unit_804 dst-address=\
!10.108.4.0/24 in-interface=Unit_804 new-routing-mark=M804 passthrough=no
add action=mark-routing chain=prerouting comment=Unit_805 dst-address=\
!10.108.5.0/24 in-interface=Unit_805 new-routing-mark=M805 passthrough=no
add action=mark-routing chain=prerouting comment=Unit_806 dst-address=\
!10.108.6.0/24 in-interface=Unit_806 new-routing-mark=M806 passthrough=no
add action=mark-routing chain=prerouting comment=Unit_901 dst-address=\
!10.109.1.0/24 in-interface=Unit_901 new-routing-mark=M901 passthrough=no
add action=mark-routing chain=prerouting comment=Unit_902 dst-address=\
!10.109.2.0/24 in-interface=Unit_902 new-routing-mark=M902 passthrough=no
add action=mark-routing chain=prerouting comment=Unit_903 dst-address=\
!10.109.3.0/24 in-interface=Unit_903 new-routing-mark=M903 passthrough=no
add action=mark-routing chain=prerouting comment=Unit_904 dst-address=\
!10.109.4.0/24 in-interface=Unit_904 new-routing-mark=M904 passthrough=no
add action=mark-routing chain=prerouting comment=Unit_905 dst-address=\
!10.109.5.0/24 in-interface=Unit_905 new-routing-mark=M905 passthrough=no
add action=mark-routing chain=prerouting comment=Unit_906 dst-address=\
!10.109.6.0/24 in-interface=Unit_906 new-routing-mark=M906 passthrough=no
/ip firewall nat
add action=masquerade chain=srcnat out-interface=all-ppp
add action=masquerade chain=srcnat out-interface=ether1 src-address=\
192.136.88.11
/ip firewall service-port
set sip disabled=yes
/ip hotspot walled-garden
add dst-host=voipitup.duxadmin.com
/ip route
add comment=Unit_1002 distance=1 gateway=1001@henley routing-mark=M1001
add comment=Unit_1002 distance=1 gateway=1002@henley routing-mark=M1002
add comment=Unit_1003 distance=1 gateway=1003@henley routing-mark=M1003
add comment=Unit_1004 distance=1 gateway=1004@henley routing-mark=M1004
add comment=Unit_1005 distance=1 gateway=1005@henley routing-mark=M1005
add comment=Unit_1006 distance=1 gateway=1006@henley routing-mark=M1006
add comment=Unit_1101 distance=1 gateway=1101@henley routing-mark=M1101
add comment=Unit_1102 distance=1 gateway=1102@henley routing-mark=M1102
add comment=Unit_1103 distance=1 gateway=1103@henley routing-mark=M1103
add comment=Unit_1104 distance=1 gateway=1104@henley routing-mark=M1104
add comment=Unit_1105 distance=1 gateway=1105@henley routing-mark=M1105
add comment=Unit_1106 distance=1 gateway=1106@henley routing-mark=M1106
add comment=Unit_1107 distance=1 gateway=1107@henley routing-mark=M1107
add comment=Unit_1201 distance=1 gateway=1201@henley routing-mark=M1201
add comment=Unit_1202 distance=1 gateway=1202@henley routing-mark=M1202
add comment=Unit_1203 distance=1 gateway=1203@henley routing-mark=M1203
add comment=Unit_1204 distance=1 gateway=1204@henley routing-mark=M1204
add comment=Unit_1205 distance=1 gateway=1205@henley routing-mark=M1205
add comment=Unit_1206 distance=1 gateway=1206@henley routing-mark=M1206
add comment=Unit_1301 distance=1 gateway=1301@henley routing-mark=M1301
add comment=Unit_1302 distance=1 gateway=1302@henley routing-mark=M1302
add comment=Unit_1303 distance=1 gateway=1303@henley routing-mark=M1303
add comment=Unit_1304 distance=1 gateway=1304@henley routing-mark=M1304
add comment=Unit_1305 distance=1 gateway=1305@henley routing-mark=M1305
add comment=Unit_1401 distance=1 gateway=1401@henley routing-mark=M1401
add comment=Unit_1402 distance=1 gateway=1402@henley routing-mark=M1402
add comment=Unit_1403 distance=1 gateway=1403@henley routing-mark=M1403
add comment=Unit_1404 distance=1 gateway=1404@henley routing-mark=M1404
add comment=Unit_1405 distance=1 gateway=1405@henley routing-mark=M1405
add comment=Unit_1406 distance=1 gateway=1406@henley routing-mark=M1406
add comment=Unit_1501 distance=1 gateway=1501@henley routing-mark=M1501
add comment=Unit_1502 distance=1 gateway=1502@henley routing-mark=M1502
add comment=Unit_1503 distance=1 gateway=1503@henley routing-mark=M1503
add comment=Unit_1504 distance=1 gateway=1504@henley routing-mark=M1504
add comment=Unit_1505 distance=1 gateway=1505@henley routing-mark=M1505
add comment=Unit_1601 distance=1 gateway=1601@henley routing-mark=M1601
add comment=Unit_1602 distance=1 gateway=1602@henley routing-mark=M1602
add comment=Unit_1603 distance=1 gateway=1603@henley routing-mark=M1603
add comment=Unit_1701 distance=1 gateway=1701@henley routing-mark=M1701
add comment=Unit_1702 distance=1 gateway=1702@henley routing-mark=M1702
add comment=Unit_1703 distance=1 gateway=1703@henley routing-mark=M1703
add comment=Unit_1801 distance=1 gateway=1801@henley routing-mark=M1801
add comment=Unit_1802 distance=1 gateway=1802@henley routing-mark=M1802
add comment=Unit_1803 distance=1 gateway=1803@henley routing-mark=M1803
add comment=Unit_1901 distance=1 gateway=1901@henley routing-mark=M1901
add comment=Unit_1902 distance=1 gateway=1902@henley routing-mark=M1902
add comment=Unit_1903 distance=1 gateway=1903@henley routing-mark=M1903
add comment=Unit_2001 distance=1 gateway=2001@henley routing-mark=M2001
add comment=Unit_2002 distance=1 gateway=2002@henley routing-mark=M2002
add comment=Unit_2003 distance=1 gateway=2003@henley routing-mark=M2003
add comment=Unit_2101 distance=1 gateway=2101@henley routing-mark=M2101
add comment=Unit_2201 distance=1 gateway=2201@henley routing-mark=M2201
add comment=Unit_2202 distance=1 gateway=2202@henley routing-mark=M2202
add comment=Unit_2301 distance=1 gateway=2301@henley routing-mark=M2301
add comment=Unit_2302 distance=1 gateway=2302@henley routing-mark=M2302
add comment=Unit_2401 distance=1 gateway=2401@henley routing-mark=M2401
add comment=Unit_2501 distance=1 gateway=2501@henley routing-mark=M2501
add comment=Unit_301 distance=1 gateway=301@henley routing-mark=M301
add comment="COMM USER 100" distance=1 gateway=comm@henley routing-mark=M100
add comment=Unit_302 distance=1 gateway=302@henley routing-mark=M302
add comment=Unit_303 distance=1 gateway=303@henley routing-mark=M303
add comment=Unit_304 distance=1 gateway=304@henley routing-mark=M304
add comment=Unit_305 distance=1 gateway=305@henley routing-mark=M305
add comment=Unit_306 distance=1 gateway=306@henley routing-mark=M306
add comment=Unit_307 distance=1 gateway=307@henley routing-mark=M307
add comment=Unit_308 distance=1 gateway=308@henley routing-mark=M308
add comment=Unit_309 distance=1 gateway=309@henley routing-mark=M309
add comment=Unit_310 distance=1 gateway=310@henley routing-mark=M310
add comment=Unit_311 distance=1 gateway=311@henley routing-mark=M311
add comment=Unit_312 distance=1 gateway=312@henley routing-mark=M312
add comment=Unit_401 distance=1 gateway=401@henley routing-mark=M401
add comment=Unit_402 distance=1 gateway=402@henley routing-mark=M402
add comment=Unit_403 distance=1 gateway=403@henley routing-mark=M403
add comment=Unit_404 distance=1 gateway=404@henley routing-mark=M404
add comment=Unit_405 distance=1 gateway=405@henley routing-mark=M405
add comment=Unit_406 distance=1 gateway=406@henley routing-mark=M406
add comment=Unit_501 distance=1 gateway=501@henley routing-mark=M501
add comment=Unit_502 distance=1 gateway=502@henley routing-mark=M502
add comment=Unit_503 distance=1 gateway=503@henley routing-mark=M503
add comment=Unit_504 distance=1 gateway=504@henley routing-mark=M504
add comment=Unit_505 distance=1 gateway=505@henley routing-mark=M505
add comment=Unit_506 distance=1 gateway=506@henley routing-mark=M506
add comment=Unit_507 distance=1 gateway=507@henley routing-mark=M507
add comment=Unit_601 distance=1 gateway=601@henley routing-mark=M601
add comment=Unit_602 distance=1 gateway=602@henley routing-mark=M602
add comment=Unit_603 distance=1 gateway=603@henley routing-mark=M603
add comment=Unit_604 distance=1 gateway=604@henley routing-mark=M604
add comment=Unit_605 distance=1 gateway=605@henley routing-mark=M605
add comment=Unit_606 distance=1 gateway=606@henley routing-mark=M606
add comment=Unit_701 distance=1 gateway=701@henley routing-mark=M701
add comment=Unit_702 distance=1 gateway=702@henley routing-mark=M702
add comment=Unit_703 distance=1 gateway=703@henley routing-mark=M703
add comment=Unit_704 distance=1 gateway=704@henley routing-mark=M704
add comment=Unit_705 distance=1 gateway=705@henley routing-mark=M705
add comment=Unit_706 distance=1 gateway=706@henley routing-mark=M706
add comment=Unit_707 distance=1 gateway=707@henley routing-mark=M707
add comment=Unit_801 distance=1 gateway=801@henley routing-mark=M801
add comment=Unit_802 distance=1 gateway=802@henley routing-mark=M802
add comment=Unit_803 distance=1 gateway=803@henley routing-mark=M803
add comment=Unit_804 distance=1 gateway=804@henley routing-mark=M804
add comment=Unit_805 distance=1 gateway=805@henley routing-mark=M805
add comment=Unit_806 distance=1 gateway=806@henley routing-mark=M806
add comment=Unit_901 distance=1 gateway=901@henley routing-mark=M901
add comment=Unit_902 distance=1 gateway=902@henley routing-mark=M902
add comment=Unit_903 distance=1 gateway=903@henley routing-mark=M903
add comment=Unit_904 distance=1 gateway=904@henley routing-mark=M904
add comment=Unit_905 distance=1 gateway=905@henley routing-mark=M905
add comment=Unit_906 distance=1 gateway=906@henley routing-mark=M906
add check-gateway=ping disabled=yes distance=1 gateway=192.168.88.10
/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
/snmp
set enabled=yes trap-version=2
/system clock
set time-zone-name=Australia/Brisbane
/system identity
set name="TheHenley FibreSwitch"
/system logging
set 0 topics=info,!ppp
add disabled=yes topics=script,debug
add disabled=yes topics=debug,dhcp
/system ntp client
set primary-ntp=192.168.0.254
/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 \"/The_Henley\"\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/16/2021 start-time=18:32:20
/system script
add dont-require-permissions=no name="ADD PPPOE Users From CSV" owner=\
posscales policy=\
ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source="#\
\_Name: CreatePPPUsers v1.1\r\
\n# Description: Bulk create VPN users from a file\r\
\n# Author: Yun Sergey, MHelp.pro 2020\r\
\n# License: GPL-3.0 License\r\
\n# Description, purpose and questions: https://mhelp.pro/mikrotik-script-\
bulk-create-vpn-users-from-a-file/\r\
\n# More scripts Mikrotik: https://mhelp.pro/tag/mikrotik/\r\
\n\r\
\n:local FileName \"FileTemplate.csv\";\r\
\n:local Separator \";\";\r\
\n\r\
\n\r\
\n:local PPPVlanInterface \"Unit_PPP_Vlan_99\";\r\
\n:local PPPVlan \"99\";\r\
\n\r\
\n\r\
\n\r\
\n:log warning \"Script CreatePPPUsers: running. Import from file: \$FileN\
ame\";\r\
\n\r\
\n:if ([/file get \$FileName size] > 4096) do={\r\
\n :log error \"Error run script CreatePPPUsers: file size exceeded 4 K\
B (size constraint of a variable in Router OS 6). Split the file \$FileNam\
e into several parts.\";\r\
\n :error \"File size exceeded 4 KB. Stop script.\"\r\
\n};\r\
\n\r\
\n:local Content [/file get \$FileName contents];\r\
\n:local ContentLen [:len \$Content];\r\
\n:set Content [:pick \$Content 62 \$ContentLen];\r\
\n\r\
\n:local StartCursor 0;\r\
\n:local EndCursor;\r\
\n:local LineEndCursor;\r\
\n\r\
\n:while (\$StartCursor < [:len \$Content]) do={\r\
\n\r\
\n :set LineEndCursor [:find \$Content \"\\r\" \$StartCursor];\r\
\n\r\
\n :local Cont;\r\
\n\r\
\n :local ColumnsArray { \"01Name\"=\"\"; \"02Password\"=\"\"; \"03Serv\
ice\"=\"\"; \"04Profile\"=\"\"; \"05LocalAdress\"=\"\"; \"06RemoveAddress\
\"=\"\"};\r\
\n\r\
\n # START PARSING STRING\r\
\n :foreach Key,Value in=\$ColumnsArray do={\r\
\n\r\
\n :local Symbol [:pick \$Content \$StartCursor];\r\
\n\r\
\n :if (\$Symbol=\$Separator) do={:set StartCursor (\$StartCursor -\
\_1)};\r\
\n\r\
\n :set EndCursor [:find \$Content \$Separator \$StartCursor];\r\
\n\r\
\n :if ((\$EndCursor > \$LineEndCursor) or ([:typeof \$EndCursor]=\
\"nil\")) do={:set EndCursor [:find \$Content \"\\r\" (\$StartCursor-1)];}\
;\r\
\n\r\
\n :set Cont [:pick \$Content \$StartCursor \$EndCursor];\r\
\n\r\
\n :set (\$ColumnsArray -> \$Key ) \$Cont;\r\
\n\r\
\n :set StartCursor (\$EndCursor+1);\r\
\n };\r\
\n # END PARSING STRING\r\
\n\r\
\n# SET Local Values From Line\r\
\n :local UserName (\$ColumnsArray -> \"01Name\");\r\
\n :local UserPassword (\$ColumnsArray -> \"02Password\");\r\
\n :local UserService (\$ColumnsArray -> \"03Service\");\r\
\n :local UserProfile (\$ColumnsArray -> \"04Profile\");\r\
\n :local UserLocalAdress (\$ColumnsArray -> \"05LocalAdress\");\r\
\n :local UserRemoveAddress (\$ColumnsArray -> \"06RemoveAddress\"\
);\r\
\n\r\
\n# END Set Local Values\r\
\n\r\
\n # START CREATE PPPoE COMMAND\r\
\n:do {\r\
\n \r\
\n\r\
\n :if ([/interface find name=\$UserName ]) do={\r\
\n :log info \"Add PPP user: \$UserName - already exist! Skipped.\"\
;\r\
\n } else={\r\
\n :local Command \"/interface pppoe-client add name=\$UserName use\
r=\$UserName\";\r\
\n\r\
\n \r\
\n :if (\$UserPassword != \$Separator) do= {:set Command (\"\$Comma\
nd\" . \" password=\$UserPassword\")};\r\
\n\r\
\n :set Command (\"\$Command\" . \" interface=\$PPPVlanInterface\")\
;\r\
\n :set Command (\"\$Command\" . \" add-default-route=no\");\r\
\n :set Command (\"\$Command\" . \" disabled=no\");\r\
\n\r\
\n # :if (\$UserService != \$Separator) do= {:set Command (\"\$Com\
mand\" . \" service=\$UserService\")};\r\
\n # :if (\$UserProfile != \$Separator) do= {:set Command (\"\$Com\
mand\" . \" profile=\$UserProfile\")};\r\
\n # :if (\$UserLocalAdress != \$Separator) do= {:set Command (\"\
\$Command\" . \" local-address=\$UserLocalAdress\")};\r\
\n # :if (\$UserRemoveAddress != \$Separator) do= {:set Command (\
\"\$Command\" . \" remote-address=\$UserRemoveAddress\")};\r\
\n\r\
\n [:parse \$Command];\r\
\n\r\
\n };\r\
\n \r\
\n} on-error={/log error \"Script CreatePPPUsers: ERROR.\"}\r\
\n \r\
\n # END CREATE PPPoE COMMAND\r\
\n\r\
\n # START ADD VLAN \r\
\n:do {\r\
\n\r\
\n\r\
\n\r\
\n\r\
\n} on-error={/log error \"Script CreatePPPUsers: ERROR.\"}\r\
\n # END ADD VLAN\r\
\n\r\
\n\r\
\n\r\
\n\r\
\n :set StartCursor (\$EndCursor+2);\r\
\n};\r\
\n:delay 2;\r\
\n:log warning \"Script CreatePPPUsers: completed.\";"
add dont-require-permissions=no name="FROM Visual Studio PPPOE" owner=\
posscales policy=\
ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source="#\
\_Name: CreatePPPUsers v1.1\r\
\n# Description: Bulk create VPN users from a file\r\
\n# Author: Yun Sergey, MHelp.pro 2020\r\
\n# License: GPL-3.0 License\r\
\n# Description, purpose and questions: https://mhelp.pro/mikrotik-script-\
bulk-create-vpn-users-from-a-file/\r\
\n# More scripts Mikrotik: https://mhelp.pro/tag/mikrotik/\r\
\n\r\
\n:local FileName \"SetupList_1.csv\";\r\
\n:local Separator \",\";\r\
\n\r\
\n\r\
\n:local PPPVlanInterface \"Unit_PPP_Vlan_99\";\r\
\n:local PPPVlan \"99\";\r\
\n\r\
\n\r\
\n\r\
\n:log warning \"Script CreatePPPUsers: running. Import from file: \$FileN\
ame\";\r\
\n\r\
\n:if ([/file get \$FileName size] > 4096) do={\r\
\n :log error \"Error run script CreatePPPUsers: file size exceeded 4 K\
B (size constraint of a variable in Router OS 6). Split the file \$FileNam\
e into several parts.\";\r\
\n :error \"File size exceeded 4 KB. Stop script.\"\r\
\n};\r\
\n\r\
\n:local Content [/file get \$FileName contents];\r\
\n:local ContentLen [:len \$Content];\r\
\n:set Content [:pick \$Content 54 \$ContentLen];\r\
\n#62\r\
\n\r\
\n:local StartCursor 0;\r\
\n:local EndCursor;\r\
\n:local LineEndCursor;\r\
\n\r\
\n:while (\$StartCursor < [:len \$Content]) do={\r\
\n\r\
\n :set LineEndCursor [:find \$Content \"\\r\" \$StartCursor];\r\
\n\r\
\n :local Cont;\r\
\n\r\
\n# Name, Password, Vlan, Pool, ip_Address, Gateway, DNS_1, DNS_2\r\
\n :local ColumnsArray { \"01Name\"=\"\"; \"02Password\"=\"\"; \"03Vlan\
\"=\"\"; \"04Pool\"=\"\"; \"05ipAddress\"=\"\"; \"06Gateway\"=\"\"; \"07DN\
S1\"=\"\"; \"08DNS2\"=\"\"};\r\
\n\r\
\n # START PARSING STRING\r\
\n :foreach Key,Value in=\$ColumnsArray do={\r\
\n\r\
\n :local Symbol [:pick \$Content \$StartCursor];\r\
\n\r\
\n :if (\$Symbol=\$Separator) do={:set StartCursor (\$StartCursor -\
\_1)};\r\
\n\r\
\n :set EndCursor [:find \$Content \$Separator \$StartCursor];\r\
\n\r\
\n :if ((\$EndCursor > \$LineEndCursor) or ([:typeof \$EndCursor]=\
\"nil\")) do={:set EndCursor [:find \$Content \"\\r\" (\$StartCursor-1)];}\
;\r\
\n\r\
\n :set Cont [:pick \$Content \$StartCursor \$EndCursor];\r\
\n\r\
\n :set (\$ColumnsArray -> \$Key ) \$Cont;\r\
\n\r\
\n :set StartCursor (\$EndCursor+1);\r\
\n };\r\
\n # END PARSING STRING\r\
\n\r\
\n# SET Local Values From Line\r\
\n :local UserName (\$ColumnsArray -> \"01Name\");\r\
\n :local UserPassword (\$ColumnsArray -> \"02Password\");\r\
\n :local UserVlan (\$ColumnsArray -> \"03Vlan\");\r\
\n :local UserPool (\$ColumnsArray -> \"04Pool\");\r\
\n :local UseripAddress (\$ColumnsArray -> \"05ipAddress\");\r\
\n :local UserGateway (\$ColumnsArray -> \"06Gateway\");\r\
\n :local UserDNS1 (\$ColumnsArray -> \"07DNS1\");\r\
\n :local UserDNS2 (\$ColumnsArray -> \"08DNS2\");\r\
\n\r\
\n\r\
\n# END Set Local Values\r\
\n\r\
\n # START CREATE PPPoE COMMAND\r\
\n:do {\r\
\n \r\
\n\r\
\n :if ([/interface find name=\$UserName ]) do={\r\
\n :log info \"Add PPP user: \$UserName - already exist! Skipped.\"\
;\r\
\n } else={\r\
\n :local Command \"/interface pppoe-client add name=\$UserName use\
r=\$UserName\";\r\
\n\r\
\n \r\
\n :if (\$UserPassword != \$Separator) do= {:set Command (\"\$Comma\
nd\" . \" password=\$UserPassword\")};\r\
\n\r\
\n :set Command (\"\$Command\" . \" interface=\$PPPVlanInterface\")\
;\r\
\n :set Command (\"\$Command\" . \" add-default-route=no\");\r\
\n :set Command (\"\$Command\" . \" disabled=no\");\r\
\n\r\
\n # :if (\$UserService != \$Separator) do= {:set Command (\"\$Com\
mand\" . \" service=\$UserService\")};\r\
\n # :if (\$UserProfile != \$Separator) do= {:set Command (\"\$Com\
mand\" . \" profile=\$UserProfile\")};\r\
\n # :if (\$UserLocalAdress != \$Separator) do= {:set Command (\"\
\$Command\" . \" local-address=\$UserLocalAdress\")};\r\
\n # :if (\$UserRemoveAddress != \$Separator) do= {:set Command (\
\"\$Command\" . \" remote-address=\$UserRemoveAddress\")};\r\
\n\r\
\n [:parse \$Command];\r\
\n\r\
\n };\r\
\n# :delay 2; \r\
\n} on-error={/log error \"Script CreatePPPUsers: ERROR.\"};\r\
\n \r\
\n # END CREATE PPPoE COMMAND\r\
\n\r\
\n\r\
\n/log error \"Script WHILE script: ERROR. CURSOR: \$StartCursor \" ;\r\
\n\r\
\n :set StartCursor (\$EndCursor+2);\r\
\n};\r\
\n# on-error={/log error \"Script WHILE script: ERROR. CURSOR: \$StartCur\
sor LENGTH [:len \$Content] \"};\r\
\n:delay 2;\r\
\n:log warning \"Script CreatePPPUsers: completed.\";"
add dont-require-permissions=no name="VS IP -- Working." owner=posscales \
policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon \
source="# Name: CreatePPPUsers v1.1\r\
\n# Description: Bulk create users from a file\r\
\n# Author: Jason Loeken\r\
\n# License: GPL-3.0 License\r\
\n\r\
\n\r\
\n:local FileName \"SetupList_3.csv\";\r\
\n:local Separator \",\";\r\
\n\r\
\n\r\
\n:local PPPVlanInterface \"Unit_PPP_Vlan_99\";\r\
\n:local PPPVlan \"99\";\r\
\n\r\
\n\r\
\n\r\
\n:log warning \"Script CreatePPPUsers: running. Import from file: \$FileN\
ame\";\r\
\n\r\
\n:if ([/file get \$FileName size] > 4096) do={\r\
\n :log error \"Error run script CreatePPPUsers: file size exceeded 4 K\
B (size constraint of a variable in Router OS 6). Split the file \$FileNam\
e into several parts.\";\r\
\n :error \"File size exceeded 4 KB. Stop script.\"\r\
\n};\r\
\n\r\
\n:local Content [/file get \$FileName contents];\r\
\n:local ContentLen [:len \$Content];\r\
\n:set Content [:pick \$Content 54 \$ContentLen];\r\
\n#62\r\
\n\r\
\n:local StartCursor 0;\r\
\n:local EndCursor;\r\
\n:local LineEndCursor;\r\
\n\r\
\n:while (\$StartCursor < [:len \$Content]) do={\r\
\n\r\
\n :set LineEndCursor [:find \$Content \"\\r\" \$StartCursor];\r\
\n\r\
\n :local Cont;\r\
\n\r\
\n# Name, Password, Vlan, Pool, ip_Address, Gateway, DNS_1, DNS_2\r\
\n :local ColumnsArray { \"01Name\"=\"\"; \"02Password\"=\"\"; \"03Vlan\
\"=\"\"; \"04Pool\"=\"\"; \"05ipAddress\"=\"\"; \"06Gateway\"=\"\"; \"07DN\
S1\"=\"\"; \"08DNS2\"=\"\"};\r\
\n\r\
\n # START PARSING STRING\r\
\n :foreach Key,Value in=\$ColumnsArray do={\r\
\n\r\
\n :local Symbol [:pick \$Content \$StartCursor];\r\
\n\r\
\n :if (\$Symbol=\$Separator) do={:set StartCursor (\$StartCursor -\
\_1)};\r\
\n\r\
\n :set EndCursor [:find \$Content \$Separator \$StartCursor];\r\
\n\r\
\n :if ((\$EndCursor > \$LineEndCursor) or ([:typeof \$EndCursor]=\
\"nil\")) do={:set EndCursor [:find \$Content \"\\r\" (\$StartCursor-1)];}\
;\r\
\n\r\
\n :set Cont [:pick \$Content \$StartCursor \$EndCursor];\r\
\n\r\
\n :set (\$ColumnsArray -> \$Key ) \$Cont;\r\
\n\r\
\n :set StartCursor (\$EndCursor+1);\r\
\n };\r\
\n # END PARSING STRING\r\
\n\r\
\n# SET Local Values From Line\r\
\n :local UserName (\$ColumnsArray -> \"01Name\");\r\
\n :local UserPassword (\$ColumnsArray -> \"02Password\");\r\
\n :local UserVlan (\$ColumnsArray -> \"03Vlan\");\r\
\n :local UserPool (\$ColumnsArray -> \"04Pool\");\r\
\n :local UseripAddress (\$ColumnsArray -> \"05ipAddress\");\r\
\n :local UserGateway (\$ColumnsArray -> \"06Gateway\");\r\
\n :local UserDNS1 (\$ColumnsArray -> \"07DNS1\");\r\
\n :local UserDNS2 (\$ColumnsArray -> \"08DNS2\");\r\
\n\r\
\n\r\
\n# END Set Local Values\r\
\n\r\
\n # START ADD VLAN Interface \r\
\n # comment -- Short description of the item\r\
\n # disabled -- Defines whether item is ignored or used\r\
\n # interface -- Physical interface to the network where are VLA\
Ns\r\
\n # name -- Name of the VLAN interface\r\
\n # vlan-id -- Virtual LAN identificator or tag that is used to \
distinguish VLANs\r\
\n\r\
\n\r\
\n:local newvlanname \"Unit_\$UserVlan\";\r\
\n# :log error \"Script Interface name: \$newvlanname \";\r\
\n :do {\r\
\n\r\
\n:if ([/interface vlan find name=\$newvlanname]) do={\r\
\n :log warning \"Add VLAN : \$newvlanname - already exist! Skipped\
.\";\r\
\n } else={ \r\
\n :log info \"Add VLAN user:\$UserName \";\r\
\n :local VlanCommand \"/interface vlan add name=Unit_\$UserVlan vlan-id\
=\$UserVlan interface=bridge\";\r\
\n [:parse \$VlanCommand];\r\
\n # /log error \"Script WHILE script: ERROR. CURSOR: \$StartCursor \
\_LENGTH: \" . :len \$Content;\r\
\n\r\
\n};\r\
\n } on-error={:log error \"Script Vlan Section of script: ERROR.\"};\r\
\n # END ADD VLAN\r\
\n\r\
\n # START ADD IP \r\
\n# :do {\r\
\n:local ipadd \"\$UserGateway/24\";\r\
\n# :log error \"Script IP ADD: \$ipadd \";\r\
\n:if ([/ip address find interface=\$newvlanname]) do={\r\
\n :log warning \"AddIP ADD : \$ipadd - already exist! Skipped.\";\
\r\
\n } else={ \r\
\n :log info \"Add IP ADD: \$UserName \";\r\
\n :local IPCommand \"/ip address add address=\$ipadd interface=Unit_\$\
UserVlan\";\r\
\n:log info \"\$IPCommand\";\r\
\n [:parse \$IPCommand];\r\
\n# } on-error={/log error \"Script IP ADD Section of script: ERROR.\"};\r\
\n # END ADD IP\r\
\n};\r\
\n\r\
\n\r\
\n # START ADD Pool\r\
\n # /ip pool add name=Unit_111 ranges=\r\
\n\r\
\n\r\
\n :do {\r\
\n\r\
\n:if ([/ip pool find name=\$newvlanname]) do={\r\
\n :log warning \"Add Pool : \$newvlanname - already exist! Skipped\
.\";\r\
\n } else={ \r\
\n :log info \"Add Pool user:\$UserName \";\r\
\n :local PoolCommand \"/ip pool add name=Unit_\$UserVlan ranges=\$UserP\
ool\";\r\
\n [:parse \$PoolCommand];\r\
\n # /log error \"Script WHILE script: ERROR. CURSOR: \$StartCursor \
\_LENGTH: \" . :len \$Content;\r\
\n\r\
\n};\r\
\n } on-error={:log error \"Script Pool Section of script: ERROR.: \$PoolC\
ommand\"};\r\
\n # END ADD Pool\r\
\n\r\
\n\r\
\n# START ADD DHCP <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\
<<<<<<<<<<<<<<<<<<<\r\
\n\r\
\n# /ip dhcp-server add address-pool=Unit_103 disabled=no interface=Unit\
_103 lease-time=1h10m name=Unit_103\r\
\n# /ip dhcp-server network add address=10.101.3.0/24 dns-server=10.101.\
3.1,8.8.8.8 gateway=10.101.3.1\r\
\n :do {\r\
\n\r\
\n:if ([/ip dhcp-server find name=\$newvlanname]) do={\r\
\n :log warning \"Add DHCP : \$newvlanname - already exist! Skipped\
.\";\r\
\n } else={ \r\
\n :log info \"Add DHCP Server user: \$newvlanname \";\r\
\n :local DHCPCommand \"/ip dhcp-server add name=Unit_\$UserVlan address\
-pool=\$newvlanname interface=\$newvlanname lease-time=1h10m disabled=no\"\
;\r\
\n [:parse \$DHCPCommand];\r\
\n \r\
\n :log info \"Add DHCP Network user: \$UseripAddress \";\r\
\n :local DHCPnetCommand \"/ip dhcp-server network add address=\$UseripA\
ddress gateway=\$UserGateway dns-server=\$UserDNS1,\$UserDNS2\";\r\
\n [:parse \$DHCPnetCommand];\r\
\n \r\
\n \r\
\n \r\
\n # /log error \"Script WHILE script: ERROR. CURSOR: \$StartCursor \
\_LENGTH: \" . :len \$Content;\r\
\n\r\
\n};\r\
\n } on-error={:log error \"Script Pool Section of script: ERROR.: \$PoolC\
ommand\"};\r\
\n\r\
\n# END ADD Dhcp <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\
<<<<<<<<<<<<<<<<\r\
\n\r\
\n\r\
\n\r\
\n# START ADD ROUTES Mangle and Firewall <<<<<<<<<<<<<<<<<<<<<<<<<<\
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\r\
\n\r\
\n# /ip firewall mangle add action=mark-routing chain=prerouting in-inte\
rface=Unit_103 new-routing-mark=M103 passthrough=no comment=Unit_101 \r\
\n\r\
\n :do {\r\
\n\r\
\n:if ([/ip firewall mangle find comment=\$newvlanname]) do={\r\
\n :log warning \"Add Mangle and Firewall : \$newvlanname - already\
\_exist! Skipped.\";\r\
\n } else={ \r\
\n :log info \"Add Mangle Ruel: \$newvlanname \";\r\
\n :local ManlgeCommand \"/ip firewall mangle add chain=prerouting actio\
n=mark-routing in-interface=\$newvlanname new-routing-mark=M\$UserVlan pas\
sthrough=no comment=\$newvlanname\";\r\
\n [:parse \$ManlgeCommand];\r\
\n\r\
\n# /ip route add comment=Unit_103 distance=1 gateway=1001@henley rou\
ting-mark=M103\r\
\n\r\
\n :log info \"Add Route Ruel: \$newvlanname \";\r\
\n :local RouteCommand \"/ip route add dst-address=0.0.0.0/0 gateway=\$U\
serName distance=1 routing-mark=M\$UserVlan comment=\$newvlanname\";\r\
\n [:parse \$RouteCommand];\r\
\n \r\
\n};\r\
\n } on-error={:log error \"Script Mangle and Firewall Section of script: \
ERROR.: \$PoolCommand\"};\r\
\n\r\
\n# END ADD Mangle and Firewall <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\r\
\n\r\
\n\r\
\n:local Countsize [:len \$Content];\r\
\n# :log error \"Script WHILE script: ERROR. CURSOR: \$StartCursor \";\
\r\
\n# :log error \"Script WHILE script: ERROR. CURSOR: \$Countsize \";\r\
\n\r\
\n :set StartCursor (\$EndCursor+2);\r\
\n};\r\
\n# on-error={/log error \"Script WHILE script: ERROR. CURSOR: \$StartCur\
sor LENGTH [:len \$Content] \"};\r\
\n:delay 2;\r\
\n:log warning \"Script CreatePPPUsers: completed.\";"
add dont-require-permissions=no name=vs2 owner=posscales policy=\
ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source="#\
\_Name: CreatePPPUsers v1.1\r\
\n# Description: Bulk create VPN users from a file\r\
\n# Author: Yun Sergey, MHelp.pro 2020\r\
\n# License: GPL-3.0 License\r\
\n# Description, purpose and questions: https://mhelp.pro/mikrotik-script-\
bulk-create-vpn-users-from-a-file/\r\
\n# More scripts Mikrotik: https://mhelp.pro/tag/mikrotik/\r\
\n\r\
\n:local FileName \"SetupList_3.csv\";\r\
\n:local Separator \",\";\r\
\n\r\
\n\r\
\n:local PPPVlanInterface \"Unit_PPP_Vlan_99\";\r\
\n:local PPPVlan \"99\";\r\
\n\r\
\n\r\
\n\r\
\n:log warning \"Script CreatePPPUsers: running. Import from file: \$FileN\
ame\";\r\
\n\r\
\n:if ([/file get \$FileName size] > 4096) do={\r\
\n :log error \"Error run script CreatePPPUsers: file size exceeded 4 K\
B (size constraint of a variable in Router OS 6). Split the file \$FileNam\
e into several parts.\";\r\
\n :error \"File size exceeded 4 KB. Stop script.\"\r\
\n};\r\
\n\r\
\n:local Content [/file get \$FileName contents];\r\
\n:local ContentLen [:len \$Content];\r\
\n:set Content [:pick \$Content 54 \$ContentLen];\r\
\n#62\r\
\n\r\
\n:local StartCursor 0;\r\
\n:local EndCursor;\r\
\n:local LineEndCursor;\r\
\n\r\
\n:while (\$StartCursor < [:len \$Content]) do={\r\
\n\r\
\n :set LineEndCursor [:find \$Content \"\\r\" \$StartCursor];\r\
\n\r\
\n :local Cont;\r\
\n\r\
\n# Name, Password, Vlan, Pool, ip_Address, Gateway, DNS_1, DNS_2\r\
\n :local ColumnsArray { \"01Name\"=\"\"; \"02Password\"=\"\"; \"03Vlan\
\"=\"\"; \"04Pool\"=\"\"; \"05ipAddress\"=\"\"; \"06Gateway\"=\"\"; \"07DN\
S1\"=\"\"; \"08DNS2\"=\"\"};\r\
\n\r\
\n # START PARSING STRING\r\
\n :foreach Key,Value in=\$ColumnsArray do={\r\
\n\r\
\n :local Symbol [:pick \$Content \$StartCursor];\r\
\n\r\
\n :if (\$Symbol=\$Separator) do={:set StartCursor (\$StartCursor -\
\_1)};\r\
\n\r\
\n :set EndCursor [:find \$Content \$Separator \$StartCursor];\r\
\n\r\
\n :if ((\$EndCursor > \$LineEndCursor) or ([:typeof \$EndCursor]=\
\"nil\")) do={:set EndCursor [:find \$Content \"\\r\" (\$StartCursor-1)];}\
;\r\
\n\r\
\n :set Cont [:pick \$Content \$StartCursor \$EndCursor];\r\
\n\r\
\n :set (\$ColumnsArray -> \$Key ) \$Cont;\r\
\n\r\
\n :set StartCursor (\$EndCursor+1);\r\
\n };\r\
\n # END PARSING STRING\r\
\n\r\
\n# SET Local Values From Line\r\
\n :local UserName (\$ColumnsArray -> \"01Name\");\r\
\n :local UserPassword (\$ColumnsArray -> \"02Password\");\r\
\n :local UserVlan (\$ColumnsArray -> \"03Vlan\");\r\
\n :local UserPool (\$ColumnsArray -> \"04Pool\");\r\
\n :local UseripAddress (\$ColumnsArray -> \"05ipAddress\");\r\
\n :local UserGateway (\$ColumnsArray -> \"06Gateway\");\r\
\n :local UserDNS1 (\$ColumnsArray -> \"07DNS1\");\r\
\n :local UserDNS2 (\$ColumnsArray -> \"08DNS2\");\r\
\n\r\
\n\r\
\n# END Set Local Values\r\
\n\r\
\n # START CREATE PPPoE COMMAND\r\
\n:do {\r\
\n \r\
\n\r\
\n :if ([/interface find name=\$UserName ]) do={\r\
\n :log info \"Add PPP user: \$UserName - already exist! Skipped.\"\
;\r\
\n } else={\r\
\n :local Command \"/interface pppoe-client add name=\$UserName use\
r=\$UserName\";\r\
\n\r\
\n \r\
\n :if (\$UserPassword != \$Separator) do= {:set Command (\"\$Comma\
nd\" . \" password=\$UserPassword\")};\r\
\n\r\
\n :set Command (\"\$Command\" . \" interface=\$PPPVlanInterface\")\
;\r\
\n :set Command (\"\$Command\" . \" add-default-route=no\");\r\
\n :set Command (\"\$Command\" . \" disabled=no\");\r\
\n\r\
\n # :if (\$UserService != \$Separator) do= {:set Command (\"\$Com\
mand\" . \" service=\$UserService\")};\r\
\n # :if (\$UserProfile != \$Separator) do= {:set Command (\"\$Com\
mand\" . \" profile=\$UserProfile\")};\r\
\n # :if (\$UserLocalAdress != \$Separator) do= {:set Command (\"\
\$Command\" . \" local-address=\$UserLocalAdress\")};\r\
\n # :if (\$UserRemoveAddress != \$Separator) do= {:set Command (\
\"\$Command\" . \" remote-address=\$UserRemoveAddress\")};\r\
\n\r\
\n [:parse \$Command];\r\
\n\r\
\n };\r\
\n# :delay 2; \r\
\n} on-error={/log error \"Script CreatePPPUsers: ERROR.\"};\r\
\n \r\
\n # END CREATE PPPoE COMMAND\r\
\n\r\
\n # START ADD VLAN Interface \r\
\n # comment -- Short description of the item\r\
\n # disabled -- Defines whether item is ignored or used\r\
\n # interface -- Physical interface to the network where are VLA\
Ns\r\
\n # name -- Name of the VLAN interface\r\
\n # vlan-id -- Virtual LAN identificator or tag that is used to \
distinguish VLANs\r\
\n\r\
\n\r\
\n:local newvlanname \"Unit_\$UserVlan\";\r\
\n# :log error \"Script Interface name: \$newvlanname \";\r\
\n :do {\r\
\n\r\
\n:if ([/interface vlan find name=\$newvlanname]) do={\r\
\n :log warning \"Add VLAN : \$newvlanname - already exist! Skipped\
.\";\r\
\n } else={ \r\
\n :log info \"Add VLAN user:\$UserName \";\r\
\n :local VlanCommand \"/interface vlan add name=Unit_\$UserVlan vlan-id\
=\$UserVlan interface=bridge\";\r\
\n [:parse \$VlanCommand];\r\
\n # /log error \"Script WHILE script: ERROR. CURSOR: \$StartCursor \
\_LENGTH: \" . :len \$Content;\r\
\n\r\
\n};\r\
\n } on-error={:log error \"Script Vlan Section of script: ERROR.\"};\r\
\n # END ADD VLAN\r\
\n\r\
\n # START ADD IP \r\
\n# :do {\r\
\n:local ipadd \"\$UserGateway/24\";\r\
\n# :log error \"Script IP ADD: \$ipadd \";\r\
\n:if ([/ip address find interface=\$newvlanname]) do={\r\
\n :log warning \"AddIP ADD : \$ipadd - already exist! Skipped.\";\
\r\
\n } else={ \r\
\n :log info \"Add IP ADD: \$UserName \";\r\
\n :local IPCommand \"/ip address add address=\$ipadd interface=Unit_\$\
UserVlan\";\r\
\n:log info \"\$IPCommand\";\r\
\n [:parse \$IPCommand];\r\
\n# } on-error={/log error \"Script IP ADD Section of script: ERROR.\"};\r\
\n # END ADD IP\r\
\n};\r\
\n\r\
\n\r\
\n # START ADD Pool\r\
\n # /ip pool add name=Unit_111 ranges=\r\
\n\r\
\n\r\
\n :do {\r\
\n\r\
\n:if ([/ip pool find name=\$newvlanname]) do={\r\
\n :log warning \"Add Pool : \$newvlanname - already exist! Skipped\
.\";\r\
\n } else={ \r\
\n :log info \"Add Pool user:\$UserName \";\r\
\n :local PoolCommand \"/ip pool add name=Unit_\$UserVlan ranges=\$UserP\
ool\";\r\
\n [:parse \$PoolCommand];\r\
\n # /log error \"Script WHILE script: ERROR. CURSOR: \$StartCursor \
\_LENGTH: \" . :len \$Content;\r\
\n\r\
\n};\r\
\n } on-error={:log error \"Script Pool Section of script: ERROR.: \$PoolC\
ommand\"};\r\
\n # END ADD Pool\r\
\n\r\
\n\r\
\n\r\
\n# START ADD DHCP <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\
<<<<<<<<<<<<<<<<<<<\r\
\n\r\
\n# /ip dhcp-server add address-pool=Unit_103 disabled=no interface=Unit\
_103 lease-time=1h10m name=Unit_103\r\
\n# /ip dhcp-server network add address=10.101.3.0/24 dns-server=10.101.\
3.1,8.8.8.8 gateway=10.101.3.1\r\
\n :do {\r\
\n\r\
\n:if ([/ip dhcp-server find name=\$newvlanname]) do={\r\
\n :log warning \"Add DHCP : \$newvlanname - already exist! Skipped\
.\";\r\
\n } else={ \r\
\n :log info \"Add DHCP Server user: \$newvlanname \";\r\
\n :local DHCPCommand \"/ip dhcp-server add name=Unit_\$UserVlan address\
-pool=\$newvlanname interface=\$newvlanname lease-time=1h10m disabled=no\"\
;\r\
\n [:parse \$DHCPCommand];\r\
\n \r\
\n :log info \"Add DHCP Network user: \$UseripAddress \";\r\
\n :local DHCPnetCommand \"/ip dhcp-server network add address=\$UseripA\
ddress gateway=\$UserGateway dns-server=\$UserDNS1,\$UserDNS2\";\r\
\n [:parse \$DHCPnetCommand];\r\
\n \r\
\n \r\
\n \r\
\n # /log error \"Script WHILE script: ERROR. CURSOR: \$StartCursor \
\_LENGTH: \" . :len \$Content;\r\
\n\r\
\n};\r\
\n } on-error={:log error \"Script Pool Section of script: ERROR.: \$DHCPC\
ommand\"};\r\
\n\r\
\n# END ADD Dhcp <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\
<<<<<<<<<<<<<<<<\r\
\n\r\
\n\r\
\n# START ADD ROUTES Mangle and Firewall <<<<<<<<<<<<<<<<<<<<<<<<<<\
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\r\
\n\r\
\n# /ip firewall mangle add action=mark-routing chain=prerouting in-inte\
rface=Unit_103 new-routing-mark=M103 passthrough=no comment=Unit_101 \r\
\n\r\
\n :do {\r\
\n\r\
\n:if ([/ip firewall mangle find comment=\$newvlanname]) do={\r\
\n :log warning \"Add Mangle and Firewall : \$newvlanname - already\
\_exist! Skipped.\";\r\
\n } else={ \r\
\n :log info \"Add Mangle Ruel: \$newvlanname \";\r\
\n :local ManlgeCommand \"/ip firewall mangle add chain=prerouting actio\
n=mark-routing in-interface=\$newvlanname new-routing-mark=M\$UserVlan pas\
sthrough=no comment=\$newvlanname\";\r\
\n [:parse \$ManlgeCommand];\r\
\n\r\
\n# /ip route add comment=Unit_103 distance=1 gateway=1001@henley rou\
ting-mark=M103\r\
\n\r\
\n :log info \"Add Route Ruel: \$newvlanname \";\r\
\n :local RouteCommand \"/ip route add dst-address=0.0.0.0/0 gateway=\$U\
serName distance=1 routing-mark=M\$UserVlan comment=\$newvlanname\";\r\
\n [:parse \$RouteCommand];\r\
\n \r\
\n};\r\
\n } on-error={:log error \"Script Mangle and Firewall Section of script: \
ERROR.: \$PoolCommand\"};\r\
\n\r\
\n# END ADD Mangle and Firewall <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\r\
\n\r\
\n\r\
\n\r\
\n:local Countsize [:len \$Content];\r\
\n# :log error \"Script WHILE script: ERROR. CURSOR: \$StartCursor \";\
\r\
\n# :log error \"Script WHILE script: ERROR. CURSOR: \$Countsize \";\r\
\n\r\
\n\r\
\n\r\
\n\r\
\n\r\
\n\r\
\n\r\
\n :set StartCursor (\$EndCursor+2);\r\
\n};\r\
\n# on-error={/log error \"Script WHILE script: ERROR. CURSOR: \$StartCur\
sor LENGTH [:len \$Content] \"};\r\
\n:delay 2;\r\
\n:log warning \"Script CreatePPPUsers: completed.\";"
add dont-require-permissions=no name=backup 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 \"/The_Henley\"\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=\$FTPPort \
src-path=\$backupFileName user=\$FTPUser mode=ftp password=\$FTPPass dst-p\
ath=\$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\""
add dont-require-permissions=no name=Update_Mangle owner=posscales policy=\
ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source="\
\t/ip address\r\
\n :foreach a in=[find] do={\r\
\n :if (\".\" . [:find [/ip address get \$a interface] \"Unit_\"] . \
\".\"!=\"..\") do={\r\
\n \r\
\n :local intName [get \$a interface]\r\
\n :local intIP [get \$a address]\r\
\n /log warning \" \$a \$intName \$intIP \"\r\
\n\r\
\n# ========== Mangle +++++++++++++++++++++++++++++++++\r\
\n\r\
\n:local Mangleid [/ip firewall mangle find where comment=\"\$intName\"]\r\
\n/log warning \" Mangle ID: \$Mangleid\"\r\
\n /ip firewall mangle set \$Mangleid dst-address=\"!\$intIP\" \r\
\n\r\
\n\r\
\n\r\
\n\r\
\n }\r\
\n }"
/tool graphing interface
add
/tool graphing queue
add
/tool graphing resource
add
/tool romon
set enabled=yes
/tool sniffer
set file-limit=100000KiB file-name=dhcp_PCAP.pcap filter-mac-address=\
C8:D3:FF:8B:A8:AC/FF:FF:FF:FF:FF:FF
/tool traffic-generator packet-template
add header-stack="" name=packet-template1
/tool traffic-generator stream
add name=str1 packet-size=1500 tx-template=packet-template1