582 lines
25 KiB
Text
582 lines
25 KiB
Text
# 2026-05-08 17:46:02 by RouterOS 7.21.4
|
|
# software id = XS5B-41QR
|
|
#
|
|
# model = CCR1009-7G-1C-1S+
|
|
# serial number = 8495073BCE3B
|
|
/interface ethernet
|
|
set [ find default-name=combo1 ] l2mtu=9000 name=combo1-380 rx-flow-control=\
|
|
auto tx-flow-control=auto
|
|
set [ find default-name=ether1 ] l2mtu=9000 name=ether1-982-60ghz \
|
|
rx-flow-control=auto tx-flow-control=auto
|
|
set [ find default-name=ether2 ] l2mtu=9000 name=ether2-office \
|
|
rx-flow-control=auto tx-flow-control=auto
|
|
set [ find default-name=ether3 ] l2mtu=9000 name=ether3-edge-direct \
|
|
rx-flow-control=auto tx-flow-control=auto
|
|
set [ find default-name=ether4 ] l2mtu=9000 name=ether4-newhope \
|
|
rx-flow-control=auto tx-flow-control=auto
|
|
set [ find default-name=ether5 ] l2mtu=2024 name=ether5-climax \
|
|
rx-flow-control=auto tx-flow-control=auto
|
|
set [ find default-name=ether6 ] l2mtu=2024 name=ether6-culleoka-11ghz \
|
|
rx-flow-control=auto tx-flow-control=auto
|
|
set [ find default-name=ether7 ] disabled=yes l2mtu=9000 name=ether7-380tower \
|
|
rx-flow-control=auto tx-flow-control=auto
|
|
set [ find default-name=sfp-sfpplus1 ] l2mtu=9000 name=\
|
|
sfp-sfpplus1-edge-preseem rx-flow-control=auto tx-flow-control=auto
|
|
/interface vlan
|
|
add interface=combo1-380 name=vlan10_combo1 vlan-id=10
|
|
/interface lte apn
|
|
set [ find default=yes ] ip-type=ipv4 use-network-apn=no
|
|
/interface wireless security-profiles
|
|
set [ find default=yes ] supplicant-identity=MikroTik
|
|
/ip ipsec proposal
|
|
set [ find default=yes ] auth-algorithms=sha256 enc-algorithms=\
|
|
aes-256-cbc,aes-128-cbc pfs-group=modp2048
|
|
/ip pool
|
|
add name=sstp ranges=172.16.91.1-172.16.91.253
|
|
add name=380 ranges=100.64.8.1-100.64.11.230
|
|
add name=380-mgmt ranges=10.10.64.1-10.10.79.230
|
|
/ip dhcp-server
|
|
add address-pool=380 interface=combo1-380 lease-script="{\
|
|
\n:local url \"https://xtjlpnubrg.execute-api.us-east-1.amazonaws.com/prod\
|
|
uction/on-start-workflow-execution/6f19a48f-04f7-40c1-a4e0-8cb66df99213/cd\
|
|
c24944-c947-4e01-9c54-07a1653d2e3e\"\
|
|
\n:local url2 \"https://iptrack.vntx.net/api/dhcp\"\
|
|
\n:local max 1\
|
|
\n\
|
|
\n:local attempts 0\
|
|
\n:local success1 0\
|
|
\n:local success2 0\
|
|
\n:do {\
|
|
\n :set attempts (\$attempts+1);\
|
|
\n :if (\$leaseBound = 0) do {\
|
|
\n # Try url2 (iptrack.vntx.net) - deassignment\
|
|
\n :do {\
|
|
\n /tool fetch duration=30s mode=https url=\"\$url2\" http-method=pos\
|
|
t http-header-field=\"Content-Type: application/json\" http-data=\"{\\\"bo\
|
|
und\\\":\\\"\$leaseBound\\\",\\\"mac\\\":\\\"\$leaseActMAC\\\",\\\"ip\\\":\
|
|
\\\"\$leaseActIP\\\",\\\"server\\\":\\\"\$leaseServerName\\\"}\"\
|
|
\n :set success1 1;\
|
|
\n :log info \"DHCP deassignment successfully sent to iptrack.vntx.ne\
|
|
t for \$leaseActMAC / \$leaseActIP\";\
|
|
\n } on-error={\
|
|
\n :log error \"DHCP FAILED to send deassignment to iptrack.vntx.net \
|
|
on attempt \$attempts/\$max for \$leaseActMAC / \$leaseActIP\";\
|
|
\n }\
|
|
\n\
|
|
\n # Try url (gaiia) - deassignment\
|
|
\n :do {\
|
|
\n /tool fetch duration=30s mode=https url=\"\$url\" http-method=post\
|
|
\_http-header-field=\"Content-Type: application/json\" http-data=\"{\\\"bo\
|
|
und\\\":\\\"\$leaseBound\\\",\\\"mac\\\":\\\"\$leaseActMAC\\\",\\\"ip\\\":\
|
|
\\\"\$leaseActIP\\\",\\\"server\\\":\\\"\$leaseServerName\\\",\\\"remoteId\
|
|
\\\":\\\"\\\"}\"\
|
|
\n :set success2 1;\
|
|
\n :log info \"DHCP deassignment successfully sent to gaiia AWS API f\
|
|
or \$leaseActMAC / \$leaseActIP\";\
|
|
\n } on-error={\
|
|
\n :log error \"DHCP FAILED to send deassignment to gaiia AWS API on \
|
|
attempt \$attempts/\$max for \$leaseActMAC / \$leaseActIP\";\
|
|
\n }\
|
|
\n\
|
|
\n :if (\$success1 != 1 || \$success2 != 1) do={\
|
|
\n :delay 3s;\
|
|
\n }\
|
|
\n } else {\
|
|
\n :delay 1s;\
|
|
\n :local remoteID [/ip dhcp-server lease get [find where address=\$lea\
|
|
seActIP] agent-remote-id];\
|
|
\n\
|
|
\n # Try url2 (iptrack.vntx.net) - assignment\
|
|
\n :do {\
|
|
\n /tool fetch duration=30s mode=https url=\"\$url2\" http-method=pos\
|
|
t http-header-field=\"Content-Type: application/json\" http-data=\"{\\\"bo\
|
|
und\\\":\\\"\$leaseBound\\\",\\\"mac\\\":\\\"\$leaseActMAC\\\",\\\"ip\\\":\
|
|
\\\"\$leaseActIP\\\",\\\"server\\\":\\\"\$leaseServerName\\\",\\\"remoteId\
|
|
\\\":\\\"\$remoteID\\\"}\"\
|
|
\n :set success1 1;\
|
|
\n :log info \"DHCP assignment successfully sent to iptrack.vntx.net \
|
|
for \$leaseActMAC / \$leaseActIP / \$remoteID\";\
|
|
\n } on-error={\
|
|
\n :log error \"DHCP FAILED to send assignment to iptrack.vntx.net on\
|
|
\_attempt \$attempts/\$max for \$leaseActMAC / \$leaseActIP / \$remoteID\"\
|
|
;\
|
|
\n }\
|
|
\n\
|
|
\n # Try url (gaiia) - assignment\
|
|
\n :do {\
|
|
\n /tool fetch duration=30s mode=https url=\"\$url\" http-method=post\
|
|
\_http-header-field=\"Content-Type: application/json\" http-data=\"{\\\"bo\
|
|
und\\\":\\\"\$leaseBound\\\",\\\"mac\\\":\\\"\$leaseActMAC\\\",\\\"ip\\\":\
|
|
\\\"\$leaseActIP\\\",\\\"server\\\":\\\"\$leaseServerName\\\",\\\"remoteId\
|
|
\\\":\\\"\$remoteID\\\"}\"\
|
|
\n :set success2 1;\
|
|
\n :log info \"DHCP assignment successfully sent to gaiia AWS API for\
|
|
\_\$leaseActMAC / \$leaseActIP / \$remoteID\";\
|
|
\n } on-error={\
|
|
\n :log error \"DHCP FAILED to send assignment to gaiia AWS API on at\
|
|
tempt \$attempts/\$max for \$leaseActMAC / \$leaseActIP / \$remoteID\";\
|
|
\n }\
|
|
\n\
|
|
\n :if (\$success1 != 1 || \$success2 != 1) do={\
|
|
\n :delay 30s;\
|
|
\n }\
|
|
\n }\
|
|
\n :if (\$success1 = 1 && \$success2 = 1) do {\
|
|
\n :set attempts \$max;\
|
|
\n }\
|
|
\n} while ( \$attempts < \$max )\
|
|
\n}\
|
|
\n" lease-time=1h name=380
|
|
add address-pool=380-mgmt interface=vlan10_combo1 lease-script="{\
|
|
\n:local url \"https://xtjlpnubrg.execute-api.us-east-1.amazonaws.com/prod\
|
|
uction/on-start-workflow-execution/6f19a48f-04f7-40c1-a4e0-8cb66df99213/cd\
|
|
c24944-c947-4e01-9c54-07a1653d2e3e\"\
|
|
\n:local url2 \"https://iptrack.vntx.net/api/dhcp\"\
|
|
\n:local max 1\
|
|
\n\
|
|
\n:local attempts 0\
|
|
\n:local success1 0\
|
|
\n:local success2 0\
|
|
\n:do {\
|
|
\n :set attempts (\$attempts+1);\
|
|
\n :if (\$leaseBound = 0) do {\
|
|
\n # Try url2 (iptrack.vntx.net) - deassignment\
|
|
\n :do {\
|
|
\n /tool fetch duration=30s mode=https url=\"\$url2\" http-method=pos\
|
|
t http-header-field=\"Content-Type: application/json\" http-data=\"{\\\"bo\
|
|
und\\\":\\\"\$leaseBound\\\",\\\"mac\\\":\\\"\$leaseActMAC\\\",\\\"ip\\\":\
|
|
\\\"\$leaseActIP\\\",\\\"server\\\":\\\"\$leaseServerName\\\"}\"\
|
|
\n :set success1 1;\
|
|
\n :log info \"DHCP deassignment successfully sent to iptrack.vntx.ne\
|
|
t for \$leaseActMAC / \$leaseActIP\";\
|
|
\n } on-error={\
|
|
\n :log error \"DHCP FAILED to send deassignment to iptrack.vntx.net \
|
|
on attempt \$attempts/\$max for \$leaseActMAC / \$leaseActIP\";\
|
|
\n }\
|
|
\n\
|
|
\n # Try url (gaiia) - deassignment\
|
|
\n :do {\
|
|
\n /tool fetch duration=30s mode=https url=\"\$url\" http-method=post\
|
|
\_http-header-field=\"Content-Type: application/json\" http-data=\"{\\\"bo\
|
|
und\\\":\\\"\$leaseBound\\\",\\\"mac\\\":\\\"\$leaseActMAC\\\",\\\"ip\\\":\
|
|
\\\"\$leaseActIP\\\",\\\"server\\\":\\\"\$leaseServerName\\\",\\\"remoteId\
|
|
\\\":\\\"\\\"}\"\
|
|
\n :set success2 1;\
|
|
\n :log info \"DHCP deassignment successfully sent to gaiia AWS API f\
|
|
or \$leaseActMAC / \$leaseActIP\";\
|
|
\n } on-error={\
|
|
\n :log error \"DHCP FAILED to send deassignment to gaiia AWS API on \
|
|
attempt \$attempts/\$max for \$leaseActMAC / \$leaseActIP\";\
|
|
\n }\
|
|
\n\
|
|
\n :if (\$success1 != 1 || \$success2 != 1) do={\
|
|
\n :delay 3s;\
|
|
\n }\
|
|
\n } else {\
|
|
\n :delay 1s;\
|
|
\n :local remoteID [/ip dhcp-server lease get [find where address=\$lea\
|
|
seActIP] agent-remote-id];\
|
|
\n\
|
|
\n # Try url2 (iptrack.vntx.net) - assignment\
|
|
\n :do {\
|
|
\n /tool fetch duration=30s mode=https url=\"\$url2\" http-method=pos\
|
|
t http-header-field=\"Content-Type: application/json\" http-data=\"{\\\"bo\
|
|
und\\\":\\\"\$leaseBound\\\",\\\"mac\\\":\\\"\$leaseActMAC\\\",\\\"ip\\\":\
|
|
\\\"\$leaseActIP\\\",\\\"server\\\":\\\"\$leaseServerName\\\",\\\"remoteId\
|
|
\\\":\\\"\$remoteID\\\"}\"\
|
|
\n :set success1 1;\
|
|
\n :log info \"DHCP assignment successfully sent to iptrack.vntx.net \
|
|
for \$leaseActMAC / \$leaseActIP / \$remoteID\";\
|
|
\n } on-error={\
|
|
\n :log error \"DHCP FAILED to send assignment to iptrack.vntx.net on\
|
|
\_attempt \$attempts/\$max for \$leaseActMAC / \$leaseActIP / \$remoteID\"\
|
|
;\
|
|
\n }\
|
|
\n\
|
|
\n # Try url (gaiia) - assignment\
|
|
\n :do {\
|
|
\n /tool fetch duration=30s mode=https url=\"\$url\" http-method=post\
|
|
\_http-header-field=\"Content-Type: application/json\" http-data=\"{\\\"bo\
|
|
und\\\":\\\"\$leaseBound\\\",\\\"mac\\\":\\\"\$leaseActMAC\\\",\\\"ip\\\":\
|
|
\\\"\$leaseActIP\\\",\\\"server\\\":\\\"\$leaseServerName\\\",\\\"remoteId\
|
|
\\\":\\\"\$remoteID\\\"}\"\
|
|
\n :set success2 1;\
|
|
\n :log info \"DHCP assignment successfully sent to gaiia AWS API for\
|
|
\_\$leaseActMAC / \$leaseActIP / \$remoteID\";\
|
|
\n } on-error={\
|
|
\n :log error \"DHCP FAILED to send assignment to gaiia AWS API on at\
|
|
tempt \$attempts/\$max for \$leaseActMAC / \$leaseActIP / \$remoteID\";\
|
|
\n }\
|
|
\n\
|
|
\n :if (\$success1 != 1 || \$success2 != 1) do={\
|
|
\n :delay 30s;\
|
|
\n }\
|
|
\n }\
|
|
\n :if (\$success1 = 1 && \$success2 = 1) do {\
|
|
\n :set attempts \$max;\
|
|
\n }\
|
|
\n} while ( \$attempts < \$max )\
|
|
\n}\
|
|
\n" lease-time=1h name=380-mgmt
|
|
/ip smb users
|
|
set [ find default=yes ] disabled=yes
|
|
/ppp profile
|
|
add change-tcp-mss=yes dns-server=204.110.191.240,204.110.191.20 \
|
|
local-address=100.64.11.253 name=380 on-down="{\
|
|
\n:local url \"https://xtjlpnubrg.execute-api.us-east-1.amazonaws.com/prod\
|
|
uction/on-start-workflow-execution/6f19a48f-04f7-40c1-a4e0-8cb66df99213/0a\
|
|
7f4443-fc8a-4fe0-807c-f535d2aa1865\"\
|
|
\n:local url2 \"https://iptrack.vntx.net/api/pppoe\"\
|
|
\n:local max 1\
|
|
\n\
|
|
\n:local localAddr \$\"local-address\"\
|
|
\n:local remoteAddr \$\"remote-address\"\
|
|
\n:local callerId \$\"caller-id\"\
|
|
\n:local calledId \$\"called-id\"\
|
|
\n:local interfaceName [/interface get \$interface name]\
|
|
\n\
|
|
\n:local attempts 0\
|
|
\n:local success1 0\
|
|
\n:local success2 0\
|
|
\n:do {\
|
|
\n :set attempts (\$attempts+1);\
|
|
\n\
|
|
\n # Try url2 (iptrack.vntx.net)\
|
|
\n :do {\
|
|
\n /tool fetch duration=30s mode=https url=\"\$url2\" http-method=post \
|
|
http-header-field=\"Content-Type: application/json\" http-data=\"{\\\"boun\
|
|
d\\\":\\\"0\\\",\\\"username\\\":\\\"\$user\\\",\\\"callingstationid\\\":\
|
|
\\\"\$callerId\\\",\\\"framedip\\\":\\\"\$remoteAddr\\\"}\"\
|
|
\n :set success1 1;\
|
|
\n :log info \"PPPoE deassignment successfully sent to iptrack.vntx.net\
|
|
\_for \$user / \$remoteAddr\";\
|
|
\n } on-error={\
|
|
\n :log error \"PPPoE FAILED to send deassignment to iptrack.vntx.net o\
|
|
n attempt \$attempts out of \$max for \$user / \$remoteAddr\";\
|
|
\n }\
|
|
\n\
|
|
\n # Try url (AWS API)\
|
|
\n :do {\
|
|
\n /tool fetch duration=30s mode=https url=\"\$url\" http-method=post h\
|
|
ttp-header-field=\"Content-Type: application/json\" http-data=\"{\\\"bound\
|
|
\\\":\\\"0\\\",\\\"username\\\":\\\"\$user\\\",\\\"callingstationid\\\":\\\
|
|
\"\$callerId\\\",\\\"framedip\\\":\\\"\$remoteAddr\\\"}\"\
|
|
\n :set success2 1;\
|
|
\n :log info \"PPPoE deassignment successfully sent to gaiia AWS API fo\
|
|
r \$user / \$remoteAddr\";\
|
|
\n } on-error={\
|
|
\n :log error \"PPPoPoE FAILED to send deassignment to gaiia AWS API on\
|
|
\_attempt \$attempts out of \$max for \$user / \$remoteAddr\";\
|
|
\n }\
|
|
\n\
|
|
\n :if (\$success1 = 1 && \$success2 = 1) do {\
|
|
\n :set attempts \$max;\
|
|
\n } else {\
|
|
\n :delay 3s;\
|
|
\n }\
|
|
\n} while ( \$attempts < \$max )\
|
|
\n}\
|
|
\n" on-up="{\
|
|
\n:local url \"https://xtjlpnubrg.execute-api.us-east-1.amazonaws.com/prod\
|
|
uction/on-start-workflow-execution/6f19a48f-04f7-40c1-a4e0-8cb66df99213/0a\
|
|
7f4443-fc8a-4fe0-807c-f535d2aa1865\"\
|
|
\n:local url2 \"https://iptrack.vntx.net/api/pppoe\"\
|
|
\n:local max 5\
|
|
\n\
|
|
\n:local localAddr \$\"local-address\"\
|
|
\n:local remoteAddr \$\"remote-address\"\
|
|
\n:local callerId \$\"caller-id\"\
|
|
\n:local calledId \$\"called-id\"\
|
|
\n:local interfaceName [/interface get \$interface name]\
|
|
\n\
|
|
\n:local attempts 0\
|
|
\n:local success1 0\
|
|
\n:local success2 0\
|
|
\n:do {\
|
|
\n :set attempts (\$attempts+1);\
|
|
\n\
|
|
\n # Try url2 (iptrack.vntx.net)\
|
|
\n :do {\
|
|
\n /tool fetch duration=30s mode=https url=\"\$url2\" http-method=post \
|
|
http-header-field=\"Content-Type: application/json\" http-data=\"{\\\"boun\
|
|
d\\\":\\\"1\\\",\\\"username\\\":\\\"\$user\\\",\\\"callingstationid\\\":\
|
|
\\\"\$callerId\\\",\\\"framedip\\\":\\\"\$remoteAddr\\\"}\"\
|
|
\n :set success1 1;\
|
|
\n :log info \"PPPoE assignment successfully sent to iptrack.vntx.net f\
|
|
or \$user / \$remoteAddr\";\
|
|
\n } on-error={\
|
|
\n :log error \"PPPoE FAILED to send assignment to iptrack.vntx.net on \
|
|
attempt \$attempts out of \$max for \$user / \$remoteAddr\";\
|
|
\n }\
|
|
\n\
|
|
\n # Try url (gaiia)\
|
|
\n :do {\
|
|
\n /tool fetch duration=30s mode=https url=\"\$url\" http-method=post h\
|
|
ttp-header-field=\"Content-Type: application/json\" http-data=\"{\\\"bound\
|
|
\\\":\\\"1\\\",\\\"username\\\":\\\"\$user\\\",\\\"callingstationid\\\":\\\
|
|
\"\$callerId\\\",\\\"framedip\\\":\\\"\$remoteAddr\\\"}\"\
|
|
\n :set success2 1;\
|
|
\n :log info \"PPPoE assignment successfully sent to gaiia AWS API for \
|
|
\$user / \$remoteAddr\";\
|
|
\n } on-error={\
|
|
\n :log error \"PPPoE FAILED to send assignment to gaiia AWS API on att\
|
|
empt \$attempts out of \$max for \$user / \$remoteAddr\";\
|
|
\n }\
|
|
\n\
|
|
\n :if (\$success1 = 1 && \$success2 = 1) do {\
|
|
\n :set attempts \$max;\
|
|
\n } else {\
|
|
\n :delay 3s;\
|
|
\n }\
|
|
\n} while ( \$attempts < \$max )\
|
|
\n}\
|
|
\n" remote-address=380 use-ipv6=no use-upnp=no
|
|
set *FFFFFFFE local-address=172.16.91.254 remote-address=sstp
|
|
/queue type
|
|
add kind=fq-codel name=FQ_Codel
|
|
/queue interface
|
|
set combo1-380 queue=FQ_Codel
|
|
set ether1-982-60ghz queue=FQ_Codel
|
|
set ether2-office queue=FQ_Codel
|
|
set ether3-edge-direct queue=FQ_Codel
|
|
set ether4-newhope queue=FQ_Codel
|
|
set ether5-climax queue=FQ_Codel
|
|
set ether6-culleoka-11ghz queue=FQ_Codel
|
|
set ether7-380tower queue=FQ_Codel
|
|
set sfp-sfpplus1-edge-preseem queue=FQ_Codel
|
|
/routing bgp instance
|
|
add as=65530 name=bgp-instance-1 router-id=10.254.254.253
|
|
/routing bgp template
|
|
set default as=65530 disabled=no
|
|
/routing id
|
|
add disabled=no id=10.254.254.253 name=id-1 select-dynamic-id=""
|
|
/routing ospf instance
|
|
add disabled=no in-filter-chain=ospf-in name=default-v2 out-filter-chain=\
|
|
ospf-out redistribute=connected,static router-id=id-1 routing-table=main
|
|
add disabled=no name=default-v3 redistribute=connected,static router-id=id-1 \
|
|
routing-table=main version=3
|
|
/routing ospf area
|
|
add disabled=no instance=default-v2 name=backbone-v2
|
|
add disabled=no instance=default-v3 name=backbone-v3
|
|
/routing table
|
|
add fib name=testnat
|
|
/snmp community
|
|
set [ find default=yes ] addresses=204.110.188.0/22,10.0.0.0/8 name=\
|
|
kdyyJrT0Mm
|
|
/system logging action
|
|
add name=logs remote=204.110.191.229 remote-port=1514 src-address=\
|
|
10.254.254.253 target=remote
|
|
/ip smb
|
|
set enabled=no
|
|
/ip firewall connection tracking
|
|
set tcp-established-timeout=4h tcp-fin-wait-timeout=2m tcp-time-wait-timeout=\
|
|
2m
|
|
/ip neighbor discovery-settings
|
|
set discover-interface-list=!dynamic
|
|
/ip settings
|
|
set max-neighbor-entries=8192 tcp-syncookies=yes
|
|
/ipv6 settings
|
|
set max-neighbor-entries=8192 soft-max-neighbor-entries=8191
|
|
/interface pppoe-server server
|
|
add authentication=mschap2 default-profile=380 disabled=no interface=\
|
|
combo1-380 max-mru=1492 max-mtu=1492 service-name=380
|
|
/interface sstp-server server
|
|
set certificate=ServerCA enabled=yes
|
|
/ip address
|
|
add address=204.110.191.185/30 interface=sfp-sfpplus1-edge-preseem network=\
|
|
204.110.191.184
|
|
add address=10.0.0.254/24 disabled=yes interface=ether7-380tower network=\
|
|
10.0.0.0
|
|
add address=10.250.1.89/29 interface=ether5-climax network=10.250.1.88
|
|
add address=10.250.1.62/29 interface=ether4-newhope network=10.250.1.56
|
|
add address=204.110.191.181/30 interface=ether3-edge-direct network=\
|
|
204.110.191.180
|
|
add address=10.254.254.253 interface=lo network=10.254.254.253
|
|
add address=10.250.2.6/29 interface=ether2-office network=10.250.2.0
|
|
add address=10.250.1.38/29 interface=ether1-982-60ghz network=10.250.1.32
|
|
add address=10.250.1.54/29 interface=ether6-culleoka-11ghz network=\
|
|
10.250.1.48
|
|
add address=10.250.1.246/29 disabled=yes interface=combo1-380 network=\
|
|
10.250.1.240
|
|
add address=100.64.11.254/22 interface=combo1-380 network=100.64.8.0
|
|
add address=10.10.79.254/20 interface=vlan10_combo1 network=10.10.64.0
|
|
/ip dhcp-server network
|
|
add address=10.10.64.0/20 dns-server=204.110.191.240,204.110.191.20 domain=\
|
|
vntx.net gateway=10.10.79.254 ntp-server=204.110.191.19
|
|
add address=100.64.8.0/22 dns-server=204.110.191.240,204.110.191.20 domain=\
|
|
vntx.net gateway=100.64.11.254 ntp-server=204.110.191.19
|
|
/ip dns
|
|
set servers=9.9.9.9,1.1.1.1
|
|
/ip firewall filter
|
|
add action=accept chain=forward comment=\
|
|
"bypass fasttrack for MPLS spine (out)" out-interface=ether1-982-60ghz
|
|
add action=accept chain=forward comment=\
|
|
"bypass fasttrack for MPLS spine (in)" in-interface=ether1-982-60ghz
|
|
add action=accept chain=forward comment=\
|
|
"bypass fasttrack for MPLS spine (out)" out-interface=ether4-newhope
|
|
add action=accept chain=forward comment=\
|
|
"bypass fasttrack for MPLS spine (in)" in-interface=ether4-newhope
|
|
add action=accept chain=forward comment=\
|
|
"bypass fasttrack for MPLS spine (out)" out-interface=\
|
|
ether6-culleoka-11ghz
|
|
add action=accept chain=forward comment=\
|
|
"bypass fasttrack for MPLS spine (in)" in-interface=ether6-culleoka-11ghz
|
|
add action=accept chain=forward comment=\
|
|
"bypass fasttrack for MPLS spine (out)" out-interface=ether5-climax
|
|
add action=accept chain=forward comment=\
|
|
"bypass fasttrack for MPLS spine (in)" in-interface=ether5-climax
|
|
add action=fasttrack-connection chain=forward comment=\
|
|
"fasttrack established/related" connection-state=established,related
|
|
add action=drop chain=forward disabled=yes src-address-list=suspended
|
|
add action=drop chain=forward disabled=yes dst-address-list=suspended
|
|
add action=accept chain=forward comment="accept established/related" \
|
|
connection-state=established,related
|
|
/ip ipsec profile
|
|
set [ find default=yes ] dh-group=modp2048 dpd-interval=2m \
|
|
dpd-maximum-failures=5 enc-algorithm=aes-256,aes-128 hash-algorithm=\
|
|
sha256
|
|
/ip proxy
|
|
set port=29347
|
|
/ip proxy access
|
|
add src-address=10.0.0.0/8
|
|
add src-address=100.64.0.0/10
|
|
add src-address=204.110.188.0/22
|
|
add action=deny
|
|
/ip route
|
|
add check-gateway=ping disabled=no dst-address=0.0.0.0/0 gateway=\
|
|
204.110.191.186
|
|
add disabled=no distance=1 dst-address=204.110.188.32/27 gateway=10.250.1.94 \
|
|
routing-table=main scope=30 target-scope=10
|
|
add disabled=no distance=1 dst-address=10.250.1.88/29 gateway=10.250.1.94 \
|
|
routing-table=main scope=30 target-scope=10
|
|
add dst-address=10.254.254.101/32 gateway=10.250.1.94
|
|
add dst-address=10.254.254.102/32 gateway=10.250.1.94
|
|
add dst-address=10.250.1.64/29 gateway=10.250.1.94
|
|
add dst-address=10.250.1.24/29 gateway=10.250.1.94
|
|
add dst-address=10.250.1.8/29 gateway=10.250.1.94
|
|
add dst-address=10.10.16.0/20 gateway=10.250.1.94
|
|
add dst-address=10.10.0.0/20 gateway=10.250.1.94
|
|
add dst-address=204.110.191.0/27 gateway=10.250.1.94
|
|
add dst-address=100.64.4.0/22 gateway=10.250.1.94
|
|
add dst-address=100.64.12.0/22 gateway=10.250.1.94
|
|
add dst-address=100.64.0.0/22 gateway=10.250.1.94
|
|
add dst-address=204.110.188.224/27 gateway=10.250.1.94
|
|
add dst-address=10.250.1.144/29 gateway=10.250.1.94
|
|
add dst-address=10.254.254.111/32 gateway=10.250.1.94
|
|
add dst-address=100.64.160.0/20 gateway=10.250.1.94
|
|
add dst-address=204.110.188.64/27 gateway=10.250.1.94
|
|
/ip service
|
|
set ftp disabled=yes
|
|
set telnet address=204.110.188.0/22,10.0.0.0/8 disabled=yes
|
|
set ssh address=204.110.188.0/22,10.0.0.0/8 port=1022
|
|
set www address=204.110.188.225/32 port=2080
|
|
set winbox address=204.110.188.0/22,10.0.0.0/8
|
|
set api address=204.110.188.0/22,10.0.0.0/8,100.64.0.0/10
|
|
set api-ssl certificate=myCa
|
|
/ip ssh
|
|
set host-key-type=ed25519 password-authentication=yes strong-crypto=yes
|
|
/ipv6 address
|
|
add address=2606:1c80:0:1000::1 disabled=yes interface=ether5-climax
|
|
add address=2606:1c80:0:1001::1 disabled=yes interface=ether4-newhope
|
|
add address=2606:1c80:0:1002::2 disabled=yes interface=\
|
|
sfp-sfpplus1-edge-preseem
|
|
/ipv6 nd
|
|
set [ find default=yes ] advertise-dns=yes
|
|
/mpls interface
|
|
add interface=ether5-climax mpls-mtu=1508
|
|
add interface=ether6-culleoka-11ghz mpls-mtu=1508
|
|
add interface=ether4-newhope mpls-mtu=1508
|
|
add interface=ether1-982-60ghz mpls-mtu=1508
|
|
/mpls ldp
|
|
add disabled=no lsr-id=10.254.254.253 transport-addresses=10.254.254.253 vrf=\
|
|
main
|
|
/mpls ldp interface
|
|
add interface=ether5-climax
|
|
add interface=ether6-culleoka-11ghz
|
|
add interface=ether4-newhope
|
|
add interface=ether1-982-60ghz
|
|
/ppp aaa
|
|
set use-radius=yes
|
|
/radius
|
|
add address=204.110.191.248 require-message-auth=no service=ppp src-address=\
|
|
204.110.191.185 timeout=300ms
|
|
add address=204.110.191.2 require-message-auth=no service=ppp src-address=\
|
|
204.110.191.185 timeout=300ms
|
|
add accounting-backup=yes address=45.76.56.5 require-message-auth=no service=\
|
|
ppp src-address=204.110.191.185 timeout=300ms
|
|
/routing bfd configuration
|
|
add disabled=no interfaces=all min-rx=200ms min-tx=200ms multiplier=5
|
|
/routing bgp connection
|
|
add disabled=yes instance=bgp-instance-1 local.role=ibgp name=climax \
|
|
remote.address=10.250.1.94/32 routing-table=main templates=default
|
|
/routing filter rule
|
|
add chain=ospf-in disabled=no rule="accept;"
|
|
add chain=ospf-out disabled=no rule="accept;"
|
|
/routing ospf interface-template
|
|
add area=backbone-v2 auth-id=1 cost=10 disabled=no interfaces=\
|
|
sfp-sfpplus1-edge-preseem priority=1 type=ptp use-bfd=yes
|
|
add area=backbone-v2 auth=sha512 auth-id=1 cost=10 disabled=no interfaces=\
|
|
ether5-climax priority=1 type=ptp use-bfd=yes
|
|
add area=backbone-v2 auth=sha512 auth-id=1 cost=10 disabled=no interfaces=\
|
|
ether4-newhope priority=1 type=ptp use-bfd=yes
|
|
add area=backbone-v2 auth-id=1 cost=100 disabled=no interfaces=\
|
|
ether3-edge-direct priority=1 type=ptp use-bfd=yes
|
|
add area=backbone-v2 auth-id=1 cost=10 disabled=no interfaces=ether2-office \
|
|
priority=1 type=nbma use-bfd=no
|
|
add area=backbone-v2 auth-id=1 cost=10 disabled=no interfaces=\
|
|
ether1-982-60ghz priority=1 type=ptp use-bfd=no
|
|
add area=backbone-v2 auth=sha512 auth-id=1 cost=10 disabled=no interfaces=\
|
|
ether6-culleoka-11ghz priority=1 type=ptp use-bfd=yes
|
|
add area=backbone-v3 cost=10 disabled=no priority=1 use-bfd=no
|
|
add area=backbone-v3 auth=sha512 auth-id=1 disabled=yes interfaces=\
|
|
ether4-newhope type=ptp
|
|
add area=backbone-v3 auth=sha512 auth-id=1 disabled=yes interfaces=\
|
|
ether1-982-60ghz type=ptp
|
|
add area=backbone-v3 auth=sha512 auth-id=1 disabled=yes interfaces=\
|
|
ether5-climax type=ptp
|
|
add area=backbone-v3 auth=sha512 auth-id=1 disabled=yes interfaces=\
|
|
ether6-culleoka-11ghz type=ptp
|
|
/routing ospf static-neighbor
|
|
add address=204.110.191.186%sfp-sfpplus1-edge-preseem area=backbone-v2 \
|
|
disabled=no
|
|
add address=10.250.2.1%ether2-office area=backbone-v2 disabled=no
|
|
/routing rip static-neighbor
|
|
add address="" disabled=no instance=*1
|
|
/routing rule
|
|
add action=lookup-only-in-table disabled=yes src-address=10.10.0.0/16 table=\
|
|
testnat
|
|
add action=lookup-only-in-table disabled=yes src-address=100.64.0.0/22 table=\
|
|
testnat
|
|
add action=lookup-only-in-table disabled=yes src-address=100.64.0.0/10 table=\
|
|
testnat
|
|
/snmp
|
|
set contact=graham@vntx.net enabled=yes location="33.174156, -96.491941" \
|
|
trap-generators=temp-exception,interfaces,start-trap trap-interfaces=all \
|
|
trap-target=204.110.191.234
|
|
/system clock
|
|
set time-zone-name=America/Chicago
|
|
/system identity
|
|
set name=Core
|
|
/system logging
|
|
add action=logs topics=info
|
|
add action=logs disabled=yes prefix=ospf topics=ospf
|
|
/system ntp client
|
|
set enabled=yes
|
|
/system ntp client servers
|
|
add address=204.110.191.19
|
|
add address=0.us.pool.ntp.org
|
|
add address=216.229.4.66
|
|
add address=1.us.pool.ntp.org
|
|
/system package update
|
|
set channel=long-term
|
|
/system scheduler
|
|
add name=reboot on-event="/system reboot\
|
|
\n" policy=\
|
|
ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon \
|
|
start-date=2025-01-07 start-time=04:00:00
|
|
/tool graphing interface
|
|
add
|
|
/tool graphing queue
|
|
add
|
|
/tool graphing resource
|
|
add
|