/interface bridge
add comment="Bridge SG Vlans" name=bridge1
/interface ethernet
set [ find default-name=sfp-sfpplus1 ] comment="Link to PS HP Core"
set [ find default-name=sfp-sfpplus2 ] comment=\
"SG-PS Mikrotik SW Port 1"
set [ find default-name=sfp-sfpplus3 ] comment=\
"SG-PS Mikrotik SW Port 2" mac-address=48:8F:5A:D5:1E:6B
set [ find default-name=sfp-sfpplus4 ] comment=\
"Link to LS St Mikrotik Router Port \?"
set [ find default-name=sfp-sfpplus5 ] comment=\
"Link to LS St Mikrotik Router Port \?" mac-address=48:8F:5A:D5:1E:6D
set [ find default-name=sfp-sfpplus6 ] advertise=\
10M-half,10M-full,100M-half,100M-full,1000M-half,1000M-full,10000M-full \
comment="Link to Airport" speed=100Mbps
/interface vlan
add comment="Server MGMT" interface=bridge1 name=vlan112 vlan-id=112
add comment="AMI Servers" interface=bridge1 name=vlan113 vlan-id=113
add comment="TIBCO Prod" interface=bridge1 name=vlan114 vlan-id=114
add comment="TIBCO Test" interface=bridge1 name=vlan115 vlan-id=115
add comment="SG Oracle Servers" interface=bridge1 name=vlan116 vlan-id=116
add comment="SG Cell Routers" interface=bridge1 name=vlan300 vlan-id=300
add comment="Network MGMT" interface=bridge1 name=vlan400 vlan-id=400
add comment="Route between Mikrotiks" interface=bridge1 name=vlan500 vlan-id=\
500
add comment="PS Core" interface=sfp-sfpplus1 name=vlan700 vlan-id=700
/interface bonding
add comment="LAG for Mikrtoik SW @ Pine" mode=802.3ad name=bonding1 slaves=\
sfp-sfpplus2,sfp-sfpplus3 transmit-hash-policy=layer-2-and-3
add comment="LAG for Mikrotik Router Pine to LS St" mode=802.3ad name=\
bonding2 slaves=sfp-sfpplus4,sfp-sfpplus5
/interface vrrp
add interface=vlan300 name=VRRP30
add interface=vlan112 name=VRRP112 vrid=112
add interface=vlan113 name=VRRP113 vrid=113
add interface=vlan114 name=VRRP114 vrid=114
add interface=vlan115 name=VRRP115 vrid=115
add interface=vlan116 name=VRRP116 vrid=116
add interface=vlan400 name=VRRP400 vrid=40
/interface list
add name=NMGMT
add name=SMGMT
add name=CORP
add name=TIBCO
add name=SERVR
add name=CRTRS
add name=ROUTE
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/routing ospf area
add area-id=0.0.0.20 name=area-sg
/interface bridge port
add bridge=bridge1 interface=bonding1
add bridge=bridge1 interface=bonding2
/interface list member
add interface=vlan400 list=NMGMT
add interface=vlan112 list=SMGMT
add interface=vlan114 list=TIBCO
add interface=vlan115 list=TIBCO
add interface=vlan113 list=SERVR
add interface=vlan114 list=SERVR
add interface=vlan115 list=SERVR
add interface=vlan116 list=SERVR
add interface=vlan700 list=CORP
add interface=vlan700 list=ROUTE
add interface=vlan300 list=CRTRS
/ip address
add address=10.7xx.1.1/30 interface=vlan700 network=10.7xx.1.0
add address=10.xx2.1.2/24 interface=vlan112 network=10.xx2.1.0
add address=10.xx3.1.2/24 interface=vlan113 network=10.xx3.1.0
add address=10.xx4.1.2/24 interface=vlan114 network=10.xx4.1.0
add address=10.xx5.1.2/24 interface=vlan115 network=10.xx5.1.0
add address=10.xx6.1.2/24 interface=vlan116 network=10.xx6.1.0
add address=10.3xx.1.2/24 interface=vlan300 network=10.3xx.1.0
add address=10.4xx.1.2/24 interface=vlan400 network=10.4xx.1.0
add address=10.3xx.1.1 interface=VRRP30 network=10.3xx.1.1
add address=10.4xx.1.1 interface=VRRP400 network=10.4xx.1.1
add address=10.xx2.1.1 interface=VRRP112 network=10.xx2.1.1
add address=10.xx3.1.1 interface=VRRP113 network=10.xx3.1.1
add address=10.xx4.1.1 interface=VRRP114 network=10.xx4.1.1
add address=10.xx5.1.1 interface=VRRP115 network=10.xx5.1.1
add address=10.xx6.1.1 interface=VRRP116 network=10.xx6.1.1
add address=10.1.1.1/24 interface=vlan500 network=10.1.1.0
/ip dns
set servers=10.1.4.7,10.1.2.7
/ip firewall address-list
add address=10.x.x.7 list=NTP_SERVERS
add address=10.x.x.7 list=NTP_SERVERS
add address=10.x.x.12 list=NTP_SERVERS
add address=10.x.x.13 list=NTP_SERVERS
add address=10.xx6.1.26 list=ODA
add address=10.xx6.1.27 list=ODA
add address=10.xx6.1.36 list=ODA
add address=10.xx6.1.37 list=ODA
add address=10.x.x.0/24 list=ENDUSER-VLAN24
add address=10.x.x.7 list=ACTIVEDIRECTORY
add address=10.x.xx.7 list=ACTIVEDIRECTORY
add address=10.xx3.1.12 list=AMI_OWCE
add address=10.xx3.1.112 list=AMI_OWCE
add address=10.x.0.0/24 list=CORP_ENDPOINTS
add address=10.x.1.0/24 list=CORP_ENDPOINTS
add address=10.x.2.0/24 list=CORP_ENDPOINTS
add address=10.x.3.0/24 list=CORP_ENDPOINTS
add address=10.xx3.1.36 list=MDM_JMS
add address=10.xx3.1.136 list=MDM_JMS
add address=10.x1.x2.136 list=DMS
add address=10.x1.x2.135 list=DMS
add address=10.xx3.1.0/24 list=SG_SERVERS
add address=10.xx2.1.0/24 list=SG_SERVERS
add address=10.xx3.1.251 list=CERTICOM
add address=10.xx3.1.253 list=CERTICOM
add address=10.xx3.1.34 list=MDM_JAVA
add address=10.xx3.1.134 list=MDM_JAVA
add address=10.1.2.45 list=ISMGMT_SERVERS
add address=10.1.2.43 list=ISMGMT_SERVERS
add address=10.x.xx5.0/24 list=ISMGMT
add address=10.254.xx.0/24 list=ISMGMT
add address=10.254.xx4.0/24 list=ISMGMT
add address=10.xx2.1.101 list=SGVM
add address=10.xx2.1.102 list=SGVM
add address=10.1.xx.102 list=BACKUP_SERVERS
add address=10.1.xx4.102 list=BACKUP_SERVERS
/ip firewall filter
add action=accept chain=comment comment="#### GLOBAL #####"
add action=accept chain=forward comment=IS_MGMT_SERVERS in-interface-list=\
CORP src-address-list=ISMGMT_SERVERS
add action=accept chain=forward comment="IS_MGMT\r\
\n" in-interface-list=CORP out-interface-list=NMGMT src-address-list=\
ISMGMT
add action=accept chain=forward comment="allow ping\r\
\n" protocol=icmp
add action=accept chain=forward comment="Allow SNMP\r\
\n" dst-port=161 in-interface-list=CORP protocol=udp src-address=\
10.1.2.77
add action=accept chain=forward comment="ROUTEtoCORP\r\
\n" in-interface-list=ROUTE out-interface-list=CORP
add action=accept chain=forward comment="SERVRtoNMGMT\r\
\n" in-interface-list=SERVR out-interface-list=NMGMT
add action=accept chain=forward comment="NMGMTtoSERVR\r\
\n" in-interface-list=NMGMT out-interface-list=SERVR
add action=accept chain=forward comment="Allow NTP\r\
\n" dst-address-list=NTP_SERVERS dst-port=123 out-interface-list=CORP \
protocol=udp
add action=accept chain=forward comment="MAIL RELAY\r\
\n" dst-address=10.1.2.58 dst-port=25 out-interface-list=CORP protocol=\
tcp
add action=accept chain=forward comment="ALLOW TO AD\r\
\n" dst-address-list=ACTIVEDIRECTORY out-interface-list=CORP
add action=accept chain=comment comment="#### VPN ####"
add action=accept chain=forward comment="VPN_TO_MDM_JAVA\r\
\n" dst-address-list=MDM_JAVA dst-port=443 in-interface-list=CORP \
out-interface-list=SERVR protocol=tcp src-address=10.xx.0.0/16
add action=accept chain=forward comment="VPNIStoAMINET-SERVR\r\
\n" dst-port=22,1521,3389 in-interface-list=CORP out-interface-list=SERVR \
protocol=tcp src-address=10.xx4.4.0/24
add action=accept chain=forward comment=VPNIStoAMINET-CRTRS dst-port=\
22,1521,3389 in-interface-list=CORP out-interface-list=CRTRS protocol=tcp \
src-address=10.254.4.0/24
add action=accept chain=forward comment="ALLOW VPN OWCE\r\
\n" dst-address-list=AMI_OWCE dst-port=443 in-interface-list=CORP \
out-interface-list=SERVR protocol=tcp src-address=10.254.0.0/16
add action=accept chain=comment comment="#### CORP ####"
add action=accept chain=forward comment="CORPtoROUTE\r\
\n" in-interface-list=CORP out-interface-list=ROUTE
add action=accept chain=forward comment="MSSQL_TOODA\r\
\n" dst-address-list=ODA dst-port=1521 in-interface-list=CORP \
out-interface-list=SERVR protocol=tcp src-address=10.1.2.20
add action=accept chain=forward comment="PSQLTEST_TOODA\r\
\n" dst-address-list=ODA dst-port=1521 in-interface-list=CORP \
out-interface-list=SERVR protocol=tcp src-address=10.xxx.x.44
add action=accept chain=forward comment="SHINY TO ODA\r\
\n" dst-address-list=ODA dst-port=1521 in-interface-list=CORP \
out-interface-list=SERVR protocol=tcp src-address=10.1.2.127
add action=accept chain=forward comment="ALLOW OWCE\r\
\n" dst-address-list=AMI_OWCE dst-port=443 in-interface-list=CORP \
out-interface-list=SERVR protocol=tcp src-address-list=CORP_ENDPOINTS
add action=accept chain=forward comment="DMS_TO_JMS\r\
\n" dst-address-list=MDM_JMS in-interface-list=CORP out-interface-list=\
SERVR src-address-list=DMS
add action=accept chain=forward comment="EEWEB_TO_EEAPP\r\
\n" dst-address=10.xx3.1.52 dst-port=80,443,8080,8443 in-interface-list=\
CORP out-interface-list=SERVR protocol=tcp src-address=10.106.1.40
add action=accept chain=forward comment="ADUDPtoSG-SERVR\r\
\n" dst-address-list=SG_SERVERS in-interface-list=CORP \
out-interface-list=SERVR src-address-list=ACTIVEDIRECTORY
add action=accept chain=forward comment="ADUDPtoSG-NMGMT\r\
\n" dst-address-list=SG_SERVERS in-interface-list=CORP \
out-interface-list=NMGMT src-address-list=ACTIVEDIRECTORY
add action=accept chain=forward comment="CORPVLAN34toCERTICOM\r\
\n" dst-address-list=CERTICOM dst-port=22 in-interface-list=CORP \
out-interface-list=SERVR protocol=tcp src-address-list=ENDUSER-VLAN24
add action=accept chain=forward comment="VLAN34_TO_ODA_SQL\r\
\n" dst-address-list=ODA dst-port=80,443,8080,8443 in-interface-list=CORP \
out-interface-list=SERVR protocol=tcp src-address-list=ENDUSER-VLAN34
add action=accept chain=forward comment="VLAN34_TO_MDM_JAVA_WEB\r\
\n" dst-address-list=MDM_JAVA dst-port=80,443,8080,8443 \
in-interface-list=CORP out-interface-list=SERVR protocol=tcp \
src-address-list=ENDUSER-VLAN24
add action=accept chain=forward comment="APPASSUREtoSERVR\r\
\n" dst-address=10.xx3.1.0/24 in-interface-list=CORP out-interface-list=\
SERVR protocol=tcp src-address-list=BACKUP_SERVERS
add action=accept chain=comment comment="#### SERVR ####"
add action=accept chain=forward comment="JMS_TO_DMS\r\
\n" dst-address-list=DMS in-interface-list=SERVR out-interface-list=CORP \
src-address-list=MDM_JMS
add action=accept chain=forward comment="MDMJAVAPRODtoTBCOP\r\
\n" in-interface-list=SERVR out-interface-list=TIBCO protocol=tcp \
src-address=10.xx3.1.35
add action=accept chain=forward comment="MDMJAVATESTtoTBCOT\r\
\n" in-interface-list=SERVR out-interface-list=TIBCO protocol=tcp \
src-address=10.xx3.1.135
add action=accept chain=forward comment="OWCEtoCRTRS\r\
\n" in-interface-list=SERVR out-interface-list=CRTRS src-address-list=\
AMI_OWCE
add action=accept chain=forward comment="SGREPO_TO_CORP_REPO\r\
\n" dst-address=10.xx.x.25 dst-port=80 in-interface-list=SERVR \
out-interface-list=CORP protocol=tcp src-address=10.xx3.1.25
add action=accept chain=forward comment="ALLOW_TO_WSUSSG\r\
\n" dst-address=10.106.1.59 in-interface-list=SERVR protocol=tcp \
src-address=10.xx3.1.0/24
add action=accept chain=forward comment="VMWareHosttoSMGMT\r\
\n" dst-address-list=SGVM in-interface-list=SERVR out-interface-list=\
SMGMT protocol=tcp
add action=accept chain=forward comment="SERVRtoAPPASSURE\r\
\n" dst-address-list=BACKUP_SERVERS in-interface-list=SERVR \
out-interface-list=CORP protocol=tcp src-address=10.xx3.1.0/24
add action=accept chain=comment comment="#### TIBCO ###"
add action=accept chain=forward comment="TBCOPtoMDMJAVAPROD\r\
\n" dst-address=10.xx3.1.35 in-interface-list=TIBCO out-interface-list=\
SERVR protocol=tcp
add action=accept chain=forward comment="TBCOTtoMDMJAVATEST\r\
\n" dst-address=10.xx3.1.135 in-interface-list=TIBCO out-interface-list=\
SERVR protocol=tcp
add action=accept chain=comment comment="#### CRTS ####"
add action=accept chain=forward comment="CRTRStoOWCE\r\
\n" dst-address-list=AMI_OWCE in-interface-list=CRTRS out-interface-list=\
SERVR protocol=tcp
add action=accept chain=comment comment="#### SMGMT ####"
add action=accept chain=forward comment="SMGMTtoVMWareHost\r\
\n" in-interface-list=SMGMT out-interface-list=SERVR src-address-list=\
SGVM
/lcd interface pages
set 0 interfaces="sfp-sfpplus1,sfp-sfpplus2,sfp-sfpplus3,sfp-sfpplus4,sfp-sfpp\
lus5,sfp-sfpplus6,sfp-sfpplus7,sfp-sfpplus8"
/routing ospf interface
add interface=vlan700 network-type=broadcast
add network-type=broadcast passive=yes
/routing ospf network
add area=backbone network=10.7xx.1.0/30
add area=area-sg network=10.3xx.1.0/24
add area=area-sg network=10.4xx.1.0/24
add area=area-sg network=10.xx2.1.0/24
add area=area-sg network=10.xx3.1.0/24
add area=area-sg network=10.xx4.1.0/24
add area=area-sg network=10.xx5.1.0/24
add area=area-sg network=10.xx6.1.0/24
/system identity
set name=PineSG-MikrotikRouter