# 2026-08-30 11:37:10 by RouterOS 7.21.5 # software id = 8NZB-7J4U # # model = CCR1036-8G-2S+ # serial number = D8370CBD37DF /caps-man channel add band=2ghz-onlyn control-channel-width=20mhz frequency=2417,2442,2467 \ name=channel_2.4 reselect-interval=1h tx-power=14 add band=5ghz-n/ac control-channel-width=20mhz frequency=5180,5200,5220,5240 \ name=channel_5 reselect-interval=1h save-selected=yes skip-dfs-channels=\ yes tx-power=27 /interface bridge add admin-mac=72:9E:FD:2A:15:3C auto-mac=no name=BGP_local add name=Loopback_02 add admin-mac=6A:3F:83:C6:4E:E1 auto-mac=no comment=IKEv2 name=Loopback_IKEv2 \ port-cost-mode=short add add-dhcp-option82=yes admin-mac=48:8F:5A:C1:03:0E auto-mac=no \ dhcp-snooping=yes name=bridge_core port-cost-mode=short priority=0 \ vlan-filtering=yes add admin-mac=7E:04:B0:5E:06:40 auto-mac=no name=loopback01 port-cost-mode=\ short /interface ethernet set [ find default-name=ether1 ] comment=ISP1_Rostelecom loop-protect=off \ name=ether1-wan1 set [ find default-name=ether2 ] comment=ISP2_NKT loop-protect=off name=\ ether2-wan2 set [ find default-name=ether3 ] comment=VRRP loop-protect=on set [ find default-name=ether4 ] advertise=\ 10M-baseT-full,100M-baseT-full,1G-baseT-full,10G-baseT comment=\ Reserv_link loop-protect=on set [ find default-name=ether5 ] advertise=\ 10M-baseT-full,100M-baseT-full,1G-baseT-full,10G-baseT comment=VRRP_2 \ loop-protect=on set [ find default-name=ether6 ] advertise=\ 10M-baseT-full,100M-baseT-full,1G-baseT-full,10G-baseT comment=\ Reserv_link loop-protect=on set [ find default-name=ether7 ] advertise=\ 10M-baseT-full,100M-baseT-full,1G-baseT-full,10G-baseT comment=\ Reserv_link loop-protect=on set [ find default-name=ether8 ] comment=MGMT loop-protect=on set [ find default-name=sfp-sfpplus1 ] comment=Trunk_ports_10GB loop-protect=\ on set [ find default-name=sfp-sfpplus2 ] comment=Trunk_ports_10GB loop-protect=\ on /interface l2tp-server add name=l2tp-Rostov user=Rostov add name=l2tp-Rostov_obl_Chaltyr user=Rostov_obl_Chaltyr add name=l2tp-Uglegorsk user=Uglegorsk /interface sstp-client add authentication=mschap2 ciphers=aes256-sha,aes256-gcm-sha384 connect-to=\ 77.239.118.220 name=sstp-out1 user=guest \ verify-server-address-from-certificate=no /interface pppoe-client add comment=Rostelekom disabled=no interface=ether1-wan1 name=pppoe-wan1 \ user=fyx1iLZ7oT /interface gre add allow-fast-path=no comment=TLT-ISP-2 local-address=83.69.176.181 name=\ gre-tunnel1 remote-address=88.200.194.114 add allow-fast-path=no comment=TLT-ISP-1 local-address=80.234.107.153 name=\ gre-tunnel2 remote-address=88.200.194.114 /interface vrrp add authentication=ah comment=VRRP disabled=yes interface=bridge_core name=\ vrrp1-35 priority=250 version=2 /interface wireguard add listen-port=50030 mtu=1420 name=WG_GW_Mostovik add comment=WG_TLT_ISP1 listen-port=54400 mtu=1400 name=net30-net38-1 add comment=WG_TLT_ISP2 listen-port=54300 mtu=1410 name=net30-net38-2 add comment=WG_SMR_ISP1 listen-port=54401 mtu=1400 name=net30-net56-1 add comment=WG_SMR_ISP2 listen-port=54301 mtu=1410 name=net30-net56-2 add comment=WG_CVK_ISP1 listen-port=54402 mtu=1400 name=net30-net121-1 add comment=WG_CVK_ISP2 listen-port=54302 mtu=1400 name=net30-net121-2 add comment=WG_OBG_ISP1 listen-port=54403 mtu=1400 name=net30-net156-1 add comment=WG_OBG_ISP2 listen-port=54303 mtu=1400 name=net30-net156-2 add comment=WG_RST_OBL_CHALTYR_ISP1 listen-port=54404 mtu=1420 name=\ net30-net250-1 /interface vlan add interface=bridge_core name=vlan4 vlan-id=4 add comment=OSPF_vlans interface=bridge_core name=vlan30 vlan-id=30 add comment=servers_vlan interface=bridge_core name=vlan31 vlan-id=31 add arp-timeout=1m comment=users_vlans interface=bridge_core name=vlan33 \ vlan-id=33 add comment=wifi_vlan_work interface=bridge_core name=vlan34 vlan-id=34 add comment=mgmt_vlan interface=bridge_core name=vlan35 vlan-id=35 add comment=Cam_vlan interface=bridge_core name=vlan37 vlan-id=37 add comment=Wifi-Guest_vlan interface=bridge_core name=vlan40 vlan-id=40 add comment=UPS_vlan interface=bridge_core name=vlan41 vlan-id=41 add interface=bridge_core name=vlan55 vlan-id=55 add comment=Wifi_Corp_SGA interface=bridge_core name=vlan77 vlan-id=77 add comment=Vlan_MGMT_res interface=bridge_core name=vlan112 vlan-id=112 add interface=bridge_core name=vlan161 vlan-id=161 add comment=Wifi_Guest_SGA interface=bridge_core name=vlan177 vlan-id=177 add comment=cluster_vlan interface=bridge_core name=vlan200 vlan-id=200 add comment=storage_vlan interface=bridge_core name=vlan210 vlan-id=210 add comment=users_ABZ interface=bridge_core name=vlan1000 vlan-id=1000 add comment=users_BD interface=bridge_core name=vlan1001 vlan-id=1001 add comment=users_BUH interface=bridge_core name=vlan1002 vlan-id=1002 add comment=users_Disp interface=bridge_core name=vlan1003 vlan-id=1003 add comment=users_Ecology interface=bridge_core name=vlan1004 vlan-id=1004 add comment=users_Economisty interface=bridge_core name=vlan1005 vlan-id=1005 add comment=users_Energetiky interface=bridge_core name=vlan1006 vlan-id=1006 add comment=users_Fin interface=bridge_core name=vlan1007 vlan-id=1007 add comment=users_Kadry interface=bridge_core name=vlan1008 vlan-id=1008 add comment=users_Logisty interface=bridge_core name=vlan1009 vlan-id=1009 add comment=users_OOTiTB interface=bridge_core name=vlan1010 vlan-id=1010 add comment=users_OTIZ interface=bridge_core name=vlan1011 vlan-id=1011 add comment=users_OVK interface=bridge_core name=vlan1012 vlan-id=1012 add comment=users_PTO interface=bridge_core name=vlan1013 vlan-id=1013 add comment=users_Rukovodstvo interface=bridge_core name=vlan1014 vlan-id=\ 1014 add comment=users_SB interface=bridge_core name=vlan1015 vlan-id=1015 add comment=users_SDO interface=bridge_core name=vlan1016 vlan-id=1016 add comment=users_SEB interface=bridge_core name=vlan1017 vlan-id=1017 add comment=users_SGM interface=bridge_core name=vlan1018 vlan-id=1018 add comment=users_Sklad interface=bridge_core name=vlan1019 vlan-id=1019 add comment=users_Snabzhenie interface=bridge_core name=vlan1020 vlan-id=1020 add comment=users_Specotdel interface=bridge_core name=vlan1021 vlan-id=1021 add comment=users_Torgy interface=bridge_core name=vlan1022 vlan-id=1022 add comment=users_UPDR interface=bridge_core name=vlan1023 vlan-id=1023 add comment=users_Yurist interface=bridge_core name=vlan1024 vlan-id=1024 add comment=users_TEST-SEGMENT interface=bridge_core name=vlan1025 vlan-id=\ 1025 /caps-man datapath add arp=enabled bridge=bridge_core client-to-client-forwarding=yes name=\ datapath_work_wifi vlan-id=34 vlan-mode=use-tag /interface vrrp add authentication=ah disabled=yes interface=vlan112 name=vrrp2-vlan112 \ priority=50 version=2 vrid=2 /caps-man security add authentication-types=wpa2-psk encryption=aes-ccm,tkip group-encryption=\ aes-ccm group-key-update=40m name=security_work_wifi add name=security_guest_wifi add authentication-types=wpa2-psk encryption=aes-ccm,tkip group-encryption=\ aes-ccm group-key-update=40m name=security_wifi_guest /caps-man configuration add channel=channel_2.4 comment=work_wifi country=russia3 datapath=\ datapath_work_wifi distance=indoors guard-interval=long \ hw-protection-mode=rts-cts installation=indoor keepalive-frames=enabled \ max-sta-count=20 mode=ap multicast-helper=full name=cfg_work_wifi \ rx-chains=0,1,2,3 security=security_work_wifi ssid=wifi_adi tx-chains=\ 0,1,2,3 add channel=channel_5 country=russia3 datapath=datapath_work_wifi mode=ap \ name=cfg_work_wifi5 security=security_work_wifi ssid=wifi_adi_5 /interface list add name=ISP_ALL_LIST_Drop add name=local_list add name=mgmt_list add name=all_vlan add name=vpn.adi63.ru add name=WAN add name=wg add name=LAN add name=TUN add name=Domain add name=Admin_Local add name=WIFI_guest add name=Wifi_SGA-corp add name=Wifi_SGA-guest add name=Mostovik add name=LAN-AK15 add name=l2tp /caps-man datapath add bridge=bridge_core bridge-horizon=10 client-to-client-forwarding=no \ interface-list=WIFI_guest local-forwarding=no name=\ datapath_guest_wifi_adi vlan-id=40 vlan-mode=use-tag /caps-man configuration add channel=channel_2.4 comment=Guest_wifi country=russia3 datapath=\ datapath_guest_wifi_adi mode=ap name=cfg_guest_wifi security=\ security_wifi_guest ssid=guest_wifi_adi add channel=channel_5 country=russia3 datapath=datapath_guest_wifi_adi mode=\ ap name=cfg_guest_wifi5 security=security_wifi_guest ssid=\ guest_wifi_adi_5 /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 dhcp-server option add code=42 force=yes name=NTP value="'192.168.35.1'" add code=2 force=yes name=UTC+4 value=0x00003840 /ip dhcp-server option sets add name=set1 options=NTP,UTC+4 /ip firewall layer7-protocol add name=mostovik58.ru regexp=^.*mostovik58.ru* /ip ipsec policy group add name=l2tp_ipsec add name=ipsec_dlink add name=ikev2 add name=ikev2_terminal /ip ipsec profile set [ find default=yes ] dpd-interval=2m dpd-maximum-failures=5 add dpd-interval=2m dpd-maximum-failures=5 enc-algorithm=aes-128,3des,des \ name=ipsec_dlink add dpd-interval=2m dpd-maximum-failures=5 name=profile_ikev2 add dpd-interval=2m dpd-maximum-failures=5 name=profile_l2tp+ikev2 add dh-group=modp2048 dpd-interval=2m dpd-maximum-failures=5 enc-algorithm=\ aes-256 hash-algorithm=sha512 name=Strong /ip ipsec peer add exchange-mode=ike2 name=ikev2-peer passive=yes profile=profile_ikev2 /ip ipsec proposal add auth-algorithms=sha1,md5,null enc-algorithms=\ aes-256-cbc,aes-192-cbc,aes-128-cbc,3des,des,null name=\ ipsec_proposal_dlink add auth-algorithms=sha256,sha1 name=ipsec pfs-group=none add auth-algorithms=sha256,sha1 name=ikev2_proposal pfs-group=none add auth-algorithms=sha512 enc-algorithms=aes-256-gcm name=Strong pfs-group=\ none /ip pool add name=dhcp_pool0 ranges=192.168.32.2-192.168.32.254 add comment=Users name=dhcp_pool1 ranges=192.168.33.2-192.168.33.254 add name=dhcp_pool2 ranges=192.168.34.2-192.168.34.254 add comment=mgmnt name=dhcp_pool3 ranges=192.168.35.100-192.168.35.250 add comment=Server name=dhcp_pool4 ranges=192.168.31.100-192.168.31.240 add name=vpn ranges=10.10.10.10-10.10.10.100 add name=dhcp_pool_vpn_ikev2 ranges=10.10.20.2-10.10.20.100 add name=dhcp_pool_sstp ranges=10.10.50.1-10.10.50.254 add name=pool_eoip ranges=10.10.20.1-10.10.20.100 add name=dhcp_pool10 ranges=192.168.121.6-192.168.121.254 add comment=wifi_corp name=dhcp_pool11 ranges=10.200.30.2-10.200.30.254 add name=dhcp_pool12 ranges=192.168.30.2-192.168.30.254 add comment=Video name=dhcp_pool14 ranges=192.168.37.2-192.168.37.254 add comment=Ups name=dhcp_pool15 ranges=192.168.41.2-192.168.41.254 add name=pool_vpn_users ranges=10.55.44.10-10.55.44.100 add comment=OVPN name=ovpn_client ranges=10.113.100.10-10.113.100.254 add name=dhcp_pool20 ranges=192.168.200.2-192.168.200.254 add name=dhcp_pool21 ranges=192.168.210.2-192.168.210.254 add name=dhcp_pool22 ranges=10.200.40.2-10.200.40.254 add name=OVPN ranges=200.115.17.10-200.115.17.254 add name=dhcp_pool24 ranges=192.168.55.2-192.168.55.254 add name=dhcp_pool25 ranges=10.213.77.2-10.213.77.254 add name=dhcp_pool26 ranges=10.213.177.2-10.213.177.254 add name=dhcp_pool27 ranges=10.1.4.2-10.1.4.254 add comment=users_Kadry name=dhcp_pool37 ranges=10.100.8.2-10.100.8.254 add comment=users_Yurist name=dhcp_pool34 ranges=10.100.24.2-10.100.24.254 add comment=users_PTO name=dhcp_pool35 ranges=10.100.13.2-10.100.13.254 add comment=users_SB name=dhcp_pool36 ranges=10.100.15.2-10.100.15.254 add comment=users_Ecology name=dhcp_pool38 ranges=10.100.4.2-10.100.4.254 add comment="users_SGM(MEH)" name=dhcp_pool_39 ranges=\ 10.100.18.2-10.100.18.254 add comment=users_Logisty name=dhcp_pool_40 ranges=10.100.9.2-10.100.9.254 /ip dhcp-server add address-pool=dhcp_pool1 dynamic-lease-identifiers=client-mac interface=\ vlan33 lease-time=1h name=users_dhcp_vlan33 add add-arp=yes address-pool=dhcp_pool3 always-broadcast=yes dhcp-option-set=\ set1 dynamic-lease-identifiers=client-mac,client-id,opt-82 interface=\ vlan35 lease-time=1w10m name=mgmt_dhcp_work_vlan35 add add-arp=yes address-pool=dhcp_pool4 always-broadcast=yes interface=vlan31 \ lease-time=1w1d10m name=servers_dhcp_vlan31 add add-arp=yes address-pool=dhcp_pool11 always-broadcast=yes \ dhcp-option-set=set1 interface=vlan34 lease-time=1d10m name=wi-fi_corp \ use-framed-as-classless=no add address-pool=dhcp_pool12 interface=vlan30 lease-time=1w10m name=\ users_dhcp_vlan30 add add-arp=yes address-pool=dhcp_pool14 always-broadcast=yes interface=\ vlan37 lease-time=1d name=video_dhcp_vlan37 use-framed-as-classless=no add add-arp=yes address-pool=dhcp_pool15 always-broadcast=yes interface=\ vlan41 lease-time=1w30m name=UPS_dhcp_vlan41 add add-arp=yes address-pool=dhcp_pool20 interface=vlan200 lease-time=4w2d30m \ name=cluster_dhcp_vlan200 add address-pool=dhcp_pool21 interface=vlan210 lease-time=4w2d30m name=\ storage_dhcp_vlan210 add address-pool=dhcp_pool22 interface=vlan40 name=wifi_guest add add-arp=yes address-pool=dhcp_pool24 interface=vlan55 name=\ mostovik_vlan55 add address-pool=dhcp_pool25 comment=Wifi_SGA-corp interface=vlan77 \ lease-time=1d name=dhcp1-Wifi_SGA-corp add address-pool=dhcp_pool26 comment=Wifi_SGA-guest interface=vlan177 \ lease-time=1d name=dhcp2-Wifi_SGA-guest add add-arp=yes address-pool=dhcp_pool27 always-broadcast=yes interface=vlan4 \ name=dhcp1 add add-arp=yes address-lists=KADRY address-pool=dhcp_pool37 comment=\ users_KADRY interface=vlan1008 lease-time=1d name=dhcp_1008_kadry add add-arp=yes address-lists=users_Yurist address-pool=dhcp_pool34 comment=\ users_Yurist interface=vlan1024 lease-time=1d name=dhcp_1024_Yurist add add-arp=yes address-lists=users_PTO address-pool=dhcp_pool35 comment=\ users_PTO interface=vlan1013 lease-time=1d name=dhcp_1013_PTO add add-arp=yes address-lists=users_SB address-pool=dhcp_pool36 comment=\ users_SB interface=vlan1015 lease-time=1d name=dhcp_1015_SB add add-arp=yes address-lists=users_Ecology address-pool=dhcp_pool38 comment=\ users_Ecology interface=vlan1004 lease-time=1d name=dhcp_1004_ecology add add-arp=yes address-lists=users_SGM address-pool=dhcp_pool_39 comment=\ "users_SGM(MEH)" interface=vlan1018 lease-time=1d name=dhcp_1018_SGM add add-arp=yes address-lists=users_Logisty address-pool=dhcp_pool_40 \ comment=users_Logisty interface=vlan1009 lease-time=1d name=\ dhcp_1009_logisty /ip ipsec mode-config add address-pool=dhcp_pool_vpn_ikev2 address-prefix-length=32 name=\ ike2-all_lan split-include=192.168.31.0/24,10.10.5.0/24 system-dns=no /ip smb users set [ find default=yes ] disabled=yes /ppp profile add name=l2tp only-one=yes use-encryption=no use-ipv6=no add bridge-learning=no dns-server=0.0.0.0 local-address=10.10.50.1 name=sstp \ only-one=yes remote-address=dhcp_pool_sstp use-compression=yes \ use-encryption=yes use-mpls=no add change-tcp-mss=yes name=def_client use-encryption=no add address-list=allow_vpn interface-list=vpn.adi63.ru local-address=\ 10.55.44.1 name=l2tp_network_users only-one=no remote-address=\ pool_vpn_users use-encryption=required use-upnp=no add address-list=allow_vpn interface-list=vpn.adi63.ru local-address=\ 10.113.100.1 name=ovpn_client only-one=yes remote-address=ovpn_client \ use-encryption=required use-upnp=no /interface l2tp-client add allow=mschap2 connect-to=88.200.194.114 max-mru=1418 max-mtu=1418 name=\ l2tp-out1 profile=default use-ipsec=yes user=test /routing bgp instance add as=65531 name=bgp-instance-1 vrf=main add as=1 name=bgp-instance-2 router-id=192.168.113.1 add as=65535 disabled=no name=BGP_01 router-id=172.25.244.1 /routing bgp template add as=65531 disabled=no name=Lan-AS add as=65535 disabled=no name=65535 /routing id add disabled=no id=10.213.100.1 name="GW(Core)" select-dynamic-id="" add disabled=no id=172.25.244.1 name=GW-Fill select-dynamic-id="" /routing ospf instance add disabled=no name=default-v2 out-filter-chain=ospf-out router-id=\ "GW(Core)" routing-table=main add disabled=no name=ospf-instance-2 router-id="GW(Core)" add disabled=no name=ospf-instance-1 router-id=GW-Fill /routing ospf area add disabled=no instance=default-v2 name=backbone-v2 add area-id=0.0.0.1 disabled=no instance=default-v2 name=ospf-area-1 add area-id=0.0.0.2 disabled=yes instance=ospf-instance-2 name=ospf-area-2 add area-id=0.0.0.25 disabled=no instance=ospf-instance-1 name=ospf-area-3 /routing table add disabled=no fib name=wan1 add disabled=no fib name=wan2 add fib name=paloalto /routing bgp template set default as=65530 disabled=no output.network=BGP_link routing-table=main add as=1 disabled=no name=temp1 routing-table=main /snmp community set [ find default=yes ] addresses="192.168.48.46/32,192.168.48.198/32,192.168\ .48.248/32,10.100.53.50/32,192.168.31.116/32" disabled=yes add addresses=::/0 name=8XHW4NyLmo /system logging action set 3 remote=192.168.31.106 src-address=192.168.35.1 add name=dude remote=192.168.35.253 remote-port=1514 src-address=192.168.35.1 \ target=remote add name=snmp target=memory add name=firewall target=memory add email-start-tls=yes email-to=e.volkov@adi63.ru name=message target=email add name=logging target=memory add name=vrrp target=memory add name=ospf target=memory add name=bgp target=memory add name=radius target=memory add name=ovpn target=memory add name=l2tp target=memory add name=CHR remote=192.168.35.113 target=remote add name=dhcp target=memory add name=graylog remote=192.168.31.183 remote-port=5140 src-address=\ 192.168.35.1 target=remote add name=input target=memory add name=winsyslog remote=192.168.35.135 remote-log-format=syslog target=\ remote /user group add name=audit policy="read,winbox,!local,!telnet,!ssh,!ftp,!reboot,!write,!po\ licy,!test,!password,!web,!sniff,!sensitive,!api,!romon,!rest-api" /user-manager user add name=ZagudaevNS add attributes=Framed-IP-Address:10.55.44.10 disabled=yes name=PotolokovaIS add name=ChebotarevSA add name=DmitrievIA add disabled=yes name=VolkovEM add name=user_Triall add attributes=Framed-IP-Address:10.55.44.11 name=AlpatovaNN add attributes=Framed-IP-Address:10.55.44.12 name=DeringerDI /user-manager user group add attributes=Framed-IP-Address:pool_vpn_users inner-auths=\ ttls-pap,ttls-chap,ttls-mschap1,ttls-mschap2,peap-mschap2 name=users \ outer-auths=\ pap,chap,mschap1,mschap2,eap-tls,eap-ttls,eap-peap,eap-mschap2 /caps-man access-list add action=reject disabled=no mac-address=52:FF:20:06:7F:BA add action=reject disabled=no mac-address=CC:2D:E0:25:54:9A add action=accept allow-signal-out-of-range=10s disabled=no signal-range=\ -75..-20 ssid-regexp="" add action=reject allow-signal-out-of-range=10s disabled=no signal-range=\ -120..-76 ssid-regexp="" add action=reject allow-signal-out-of-range=10s disabled=no signal-range=\ -19..120 ssid-regexp="" add action=reject allow-signal-out-of-range=10s disabled=yes mac-address=\ 3C:91:80:89:A8:61 ssid-regexp="" add action=reject disabled=yes mac-address=52:FF:20:06:7F:BA /caps-man manager set enabled=yes /caps-man manager interface add disabled=no interface=bridge_core /caps-man provisioning add action=create-dynamic-enabled comment=work_wifi_2.4 hw-supported-modes=gn \ master-configuration=cfg_work_wifi name-format=prefix-identity \ name-prefix="2.4 Ghz" slave-configurations=cfg_guest_wifi add action=create-dynamic-enabled comment=guest_wifi_2.4 disabled=yes \ hw-supported-modes=gn master-configuration=cfg_guest_wifi name-format=\ prefix-identity name-prefix="2.4 Ghz_Guest" add action=create-dynamic-enabled comment=wifi_5 hw-supported-modes=an,ac \ master-configuration=cfg_work_wifi5 name-format=prefix-identity \ name-prefix="5 Ghz" slave-configurations=cfg_guest_wifi5 add action=create-dynamic-enabled comment=wifi_guest_5 disabled=yes \ hw-supported-modes=an,ac master-configuration=cfg_guest_wifi5 \ name-format=prefix-identity name-prefix="5 Ghz_Guest" /certificate settings set builtin-trust-store=untrusted crl-download=yes crl-use=yes /interface bridge port add bridge=bridge_core ingress-filtering=no interface=ether4 \ internal-path-cost=10 path-cost=10 trusted=yes add bridge=bridge_core ingress-filtering=no interface=sfp-sfpplus1 \ internal-path-cost=10 path-cost=10 trusted=yes add bridge=bridge_core interface=sfp-sfpplus2 internal-path-cost=10 \ path-cost=10 trusted=yes add bridge=bridge_core ingress-filtering=no interface=ether6 \ internal-path-cost=10 path-cost=10 trusted=yes add bridge=bridge_core interface=ether7 internal-path-cost=10 path-cost=10 \ trusted=yes add bridge=bridge_core interface=ether8 pvid=35 /ip firewall connection tracking # ipv6 neighbor configuration has changed, please restart the device in order to apply the new settings set udp-timeout=1m /ip neighbor discovery-settings # ipv6 neighbor configuration has changed, please restart the device in order to apply the new settings set discover-interface-list=all lldp-mac-phy-config=yes lldp-max-frame-size=\ yes lldp-vlan-info=yes /ip settings # ipv6 neighbor configuration has changed, please restart the device in order to apply the new settings set accept-source-route=yes max-neighbor-entries=8192 tcp-syncookies=yes /ipv6 settings # ipv6 neighbor configuration has changed, please restart the device in order to apply the new settings set accept-redirects=no accept-router-advertisements=no disable-ipv6=yes \ forward=no max-neighbor-entries=8192 soft-max-neighbor-entries=8191 /interface bridge vlan add bridge=bridge_core tagged=\ sfp-sfpplus1,sfp-sfpplus2,ether4,ether6,ether7,bridge_core vlan-ids=31 add bridge=bridge_core tagged=\ sfp-sfpplus1,sfp-sfpplus2,ether6,ether7,bridge_core vlan-ids=30 add bridge=bridge_core tagged=\ sfp-sfpplus1,sfp-sfpplus2,ether4,ether6,ether7,bridge_core vlan-ids=33 add bridge=bridge_core comment=Wifi_corp tagged=\ sfp-sfpplus1,sfp-sfpplus2,ether4,ether6,ether7,bridge_core vlan-ids=34 # ether3 not a bridge port add bridge=bridge_core tagged=\ bridge_core,sfp-sfpplus1,sfp-sfpplus2,ether3,ether4,ether6,ether7 \ untagged=ether8 vlan-ids=35 add bridge=bridge_core comment=Wifi_guest tagged=\ sfp-sfpplus1,sfp-sfpplus2,ether4,ether6,ether7,bridge_core vlan-ids=40 add bridge=bridge_core tagged=\ sfp-sfpplus1,sfp-sfpplus2,ether6,ether7,bridge_core vlan-ids=50 add bridge=bridge_core tagged=bridge_core vlan-ids=161 add bridge=bridge_core tagged=\ sfp-sfpplus1,sfp-sfpplus2,ether4,ether6,ether7,bridge_core vlan-ids=37 add bridge=bridge_core tagged=\ bridge_core,sfp-sfpplus1,sfp-sfpplus2,ether4,ether6,ether7 untagged=\ ether8 vlan-ids=41 # ether3 not a bridge port add bridge=bridge_core tagged=bridge_core,sfp-sfpplus1,sfp-sfpplus2,ether3 \ untagged=ether8 vlan-ids=112 # ether3 not a bridge port add bridge=bridge_core tagged=\ bridge_core,sfp-sfpplus1,sfp-sfpplus2,ether3,ether4,ether6,ether7 \ untagged=ether8 vlan-ids=200 add bridge=bridge_core tagged=\ sfp-sfpplus1,sfp-sfpplus2,ether4,ether6,ether7,bridge_core vlan-ids=210 add bridge=bridge_core tagged=\ sfp-sfpplus1,sfp-sfpplus2,ether4,ether6,ether7,bridge_core vlan-ids=55 add bridge=bridge_core comment=Wifi_Corp_SGA tagged=\ sfp-sfpplus1,sfp-sfpplus2,ether4,ether6,ether7,bridge_core vlan-ids=77 add bridge=bridge_core comment=Wifi_Guest_SGA tagged=\ sfp-sfpplus1,sfp-sfpplus2,ether4,ether6,ether7,bridge_core vlan-ids=177 add bridge=bridge_core tagged=\ sfp-sfpplus1,sfp-sfpplus2,ether4,ether6,ether7,bridge_core vlan-ids=4 add bridge=bridge_core comment=vlan_sb tagged=\ sfp-sfpplus1,sfp-sfpplus2,ether4,ether6,ether7,bridge_core vlan-ids=1015 add bridge=bridge_core comment=vlan_pto tagged=\ sfp-sfpplus1,sfp-sfpplus2,ether4,ether6,ether7,bridge_core vlan-ids=1013 add bridge=bridge_core comment=vlan_yurist tagged=\ sfp-sfpplus1,sfp-sfpplus2,ether4,ether6,ether7,bridge_core vlan-ids=1024 add bridge=bridge_core comment=vlan_ecology tagged=\ sfp-sfpplus1,sfp-sfpplus2,ether4,ether6,ether7,bridge_core vlan-ids=1004 add bridge=bridge_core comment="vlan_sgm(mex)" tagged=\ sfp-sfpplus1,sfp-sfpplus2,ether4,ether6,ether7,bridge_core vlan-ids=1018 add bridge=bridge_core comment=vlan_logisty tagged=\ sfp-sfpplus1,sfp-sfpplus2,ether4,ether6,ether7,bridge_core vlan-ids=1009 /interface l2tp-server server set authentication=mschap2 default-profile=l2tp_network_users enabled=yes \ max-mru=1418 max-mtu=1418 use-ipsec=yes /interface list member add interface=pppoe-wan1 list=WAN add interface=ether2-wan2 list=ISP_ALL_LIST_Drop add interface=ether2-wan2 list=WAN add interface=vlan35 list=mgmt_list add interface=ether8 list=mgmt_list add interface=ether1-wan1 list=WAN add interface=vlan30 list=LAN add interface=vlan31 list=LAN add interface=vlan33 list=LAN add interface=vlan35 list=LAN add interface=net30-net156-2 list=LAN add interface=net30-net56-2 list=LAN add interface=net30-net38-1 list=LAN add interface=vlan34 list=LAN add interface=net30-net121-1 list=LAN add interface=net30-net56-1 list=LAN add interface=net30-net156-1 list=LAN add interface=net30-net38-2 list=LAN add interface=vlan37 list=LAN add interface=net30-net121-2 list=LAN add interface=vlan41 list=LAN add interface=*39D list=LAN add interface=ether3 list=mgmt_list add interface=bridge_core list=mgmt_list add interface=ether3 list=LAN add interface=lo list=LAN add interface=bridge_core list=LAN add interface=vlan112 list=mgmt_list add interface=vlan112 list=LAN add interface=Loopback_IKEv2 list=LAN add interface=vrrp1-35 list=mgmt_list add interface=lo list=mgmt_list add interface=vlan40 list=WIFI_guest add interface=vlan77 list=Wifi_SGA-corp add interface=vlan177 list=Wifi_SGA-guest add interface=vlan177 list=WIFI_guest add interface=gre-tunnel1 list=LAN add interface=gre-tunnel2 list=LAN add interface=vlan55 list=Mostovik add interface=WG_GW_Mostovik list=LAN add interface=*736 list=LAN add interface=vlan1024 list=LAN add interface=vlan1015 list=LAN add interface=vlan1013 list=LAN add interface=l2tp-Rostov list=LAN add interface=l2tp-Rostov_obl_Chaltyr list=LAN add interface=l2tp-Rostov list=l2tp add interface=l2tp-Rostov_obl_Chaltyr list=l2tp add interface=net30-net250-1 list=LAN add interface=Loopback_02 list=LAN add interface=net30-net250-1 list=l2tp add interface=*F008BD list=LAN add interface=l2tp-Uglegorsk list=l2tp add interface=vlan1004 list=LAN add interface=vlan1018 list=LAN add interface=vlan1009 list=LAN /interface ovpn-server server add auth=sha1,sha256,sha512 certificate=CA_IKE cipher=\ aes192-cbc,aes256-cbc,aes192-gcm,aes256-gcm default-profile=ovpn_client \ disabled=no mac-address=FE:3B:A0:DC:B0:D8 name=ovpn-server1 push-routes=\ "192.168.31.0 255.255.255.0" require-client-certificate=yes tls-version=\ only-1.2 /interface sstp-server server set authentication=mschap2 default-profile=l2tp_network_users enabled=yes \ port=4000 /interface wireguard peers add allowed-address=0.0.0.0/0 comment=SAMARA interface=net30-net56-2 name=\ peer1 public-key="aafxnCQ4I7KuqM2V2yNFAE6lEGC/+hXO2qVw0NGvDjE=" add allowed-address=0.0.0.0/0 interface=net30-net38-1 name=peer2 public-key=\ "Ap+OLAVlkoRRNd363/wL3l1v2CYPPr75d3TTUgHLUig=" add allowed-address=0.0.0.0/0 comment=ORENBURG interface=net30-net156-2 name=\ peer5 public-key="aDP79lsJ3Q6RBX2yhTfAau6M4Bvg/U57moin9LrJNHQ=" add allowed-address=0.0.0.0/0 comment=CIVILSK interface=net30-net121-1 name=\ peer6 public-key="ExaXTjESrnvcT5Hop23LtnJ9H9Gmug1ai29FWOPYMA0=" add allowed-address=0.0.0.0/0 interface=net30-net121-2 name=peer8 public-key=\ "ExaXTjESrnvcT5Hop23LtnJ9H9Gmug1ai29FWOPYMA0=" add allowed-address=0.0.0.0/0 comment=SAMARA interface=net30-net56-1 name=\ peer9 public-key="aafxnCQ4I7KuqM2V2yNFAE6lEGC/+hXO2qVw0NGvDjE=" add allowed-address=0.0.0.0/0 interface=net30-net38-2 name=peer10 public-key=\ "OfdufF1PfKeJR03+BJHmqMbs2mxuGhQOCQe1/3MJcQY=" add allowed-address=0.0.0.0/0 comment=ORENBURG interface=net30-net156-1 name=\ peer11 public-key="aDP79lsJ3Q6RBX2yhTfAau6M4Bvg/U57moin9LrJNHQ=" add allowed-address=0.0.0.0/0,224.0.0.5/32 endpoint-address=46.243.182.14 \ endpoint-port=50029 interface=WG_GW_Mostovik name=WG_GW_Mostovik \ public-key="RYqj0WXfJdLRPYC89XDPw9anSV3r02no7BNCxuC9LBM=" add allowed-address=0.0.0.0/0 client-allowed-address=::/0 comment=\ "Branch: Chaltyr" interface=net30-net250-1 name=peer14 public-key=\ "XpvAzIpjX8wxM/90sCyac6XcbKRUKrppzsFt73G+gmI=" /ip address add address=192.168.31.1/24 comment=Vlan_SRV interface=vlan31 network=\ 192.168.31.0 add address=192.168.30.1/24 interface=vlan30 network=192.168.30.0 add address=192.168.33.1/24 comment=Vlan_USR interface=vlan33 network=\ 192.168.33.0 add address=10.200.30.1/24 comment=Wifi_corp interface=vlan34 network=\ 10.200.30.0 add address=192.168.35.1/24 comment=Vlan_MGMT interface=vlan35 network=\ 192.168.35.0 add address=10.10.20.1/24 comment=IKEv2 interface=Loopback_IKEv2 network=\ 10.10.20.0 add address=83.69.176.181/24 comment=ISP2 interface=ether2-wan2 network=\ 83.69.176.0 add address=172.30.31.96 comment=WG_CVK_ISP2 interface=net30-net121-2 \ network=172.30.31.97 add address=172.30.31.64 comment=WG_CVK_ISP1 interface=net30-net121-1 \ network=172.30.31.65 add address=172.30.31.98 comment=WG_OBG_ISP2 interface=net30-net156-2 \ network=172.30.31.99 add address=172.30.31.68 comment=WG_SMR_ISP1 interface=net30-net56-1 network=\ 172.30.31.69 add address=172.30.31.100 comment=WG_SMR_ISP2 interface=net30-net56-2 \ network=172.30.31.101 add address=172.30.31.102 comment=WG_TLT_ISP2 interface=gre-tunnel1 network=\ 172.30.31.103 add address=172.30.31.70 comment=WG_TLT_ISP1 interface=gre-tunnel2 network=\ 172.30.31.71 add address=172.30.31.66 comment=WG_OBG_ISP1 interface=net30-net156-1 \ network=172.30.31.67 add address=192.168.37.1/24 comment="Vlan_\D1am" interface=vlan37 network=\ 192.168.37.0 add address=192.168.41.1/24 comment=Vlan_UPS interface=vlan41 network=\ 192.168.41.0 add address=10.213.200.1 comment=VRRP interface=vrrp1-35 network=10.213.200.1 add address=10.213.200.2/24 interface=bridge_core network=10.213.200.0 add address=192.168.112.1/24 comment=Vlan_MGMT_res interface=vlan112 network=\ 192.168.112.0 add address=10.113.100.1/24 comment=Radius/OVPN disabled=yes interface=lo \ network=10.113.100.0 add address=192.168.200.1/24 comment=Vlan_CLR interface=vlan200 network=\ 192.168.200.0 add address=192.168.210.1/24 comment=Vlan_STG interface=vlan210 network=\ 192.168.210.0 add address=10.200.40.1/24 comment=Wifi_guest interface=vlan40 network=\ 10.200.40.0 add address=192.168.55.1/24 comment=Mostovik interface=vlan55 network=\ 192.168.55.0 add address=192.168.112.254 interface=vrrp2-vlan112 network=192.168.112.254 add address=10.213.100.1 comment=Router_ID interface=loopback01 network=\ 10.213.100.1 add address=10.213.77.1/24 comment=Wifi_Corp_SGA interface=vlan77 network=\ 10.213.77.0 add address=10.213.177.1/24 comment=Wifi_Guest_SGA interface=vlan177 network=\ 10.213.177.0 add address=172.30.31.201 disabled=yes interface=gre-tunnel1 network=\ 172.30.31.202 add address=172.30.31.1 comment=local-Backup interface=ether3 network=\ 172.30.31.2 add address=10.254.111.30 interface=WG_GW_Mostovik network=10.254.111.29 add address=10.1.4.1/24 comment=Print interface=vlan4 network=10.1.4.0 add address=10.100.8.1/24 comment=users_KADRY interface=vlan1008 network=\ 10.100.8.0 add address=10.100.24.1/24 comment=users_Yurist interface=vlan1024 network=\ 10.100.24.0 add address=10.100.25.1/24 comment=TEST-SEGMENT interface=vlan1025 network=\ 10.100.25.0 add address=10.100.9.1/24 comment=users_Logisty interface=vlan1009 network=\ 10.100.9.0 add address=10.100.13.1/24 comment=users_PTO interface=vlan1013 network=\ 10.100.13.0 add address=10.100.15.1/24 comment=users_SB interface=vlan1015 network=\ 10.100.15.0 add address=10.103.250.1 comment=WG_ROSTOV_CHALTYR_ISP1 interface=\ net30-net250-1 network=10.103.250.2 add address=172.25.244.1 interface=Loopback_02 network=172.25.244.1 add address=10.100.4.1/24 comment=users_Ecology interface=vlan1004 network=\ 10.100.4.0 add address=10.100.18.1/24 comment="users_SGM(MEH)" interface=vlan1018 \ network=10.100.18.0 /ip cloud set update-time=no /ip dhcp-server lease add address=192.168.33.114 client-id=1:18:c0:4d:7:e9:f3 comment=\ "SidninaNYu(Buh)BANK" mac-address=18:C0:4D:07:E9:F3 server=\ users_dhcp_vlan33 use-src-mac=yes add address=192.168.33.117 comment=\ "HP LaserJet MFP M631/\C4\E8\F1\EF\E5\F2\F7\E5\F0\F1\EA\E0\FF" \ mac-address=80:E8:2C:AD:51:D1 server=users_dhcp_vlan33 use-src-mac=yes add address=192.168.33.106 client-id=1:84:2a:fd:1:e2:5c comment=\ "HP LaserJet MFP M631 /\C1\F3\F5\E3\E0\EB\F2\E5\F0\E8\FF/\CE\E1\F9\E0\FF" \ mac-address=84:2A:FD:01:E2:5C server=users_dhcp_vlan33 use-src-mac=yes add address=192.168.33.149 client-id=1:0:0:1b:5:8f:b8 comment=\ CameraMedKabinet mac-address=00:00:1B:05:8F:B8 server=users_dhcp_vlan33 add address=192.168.33.170 client-id=1:e8:39:35:93:21:df comment=\ "Grigoriev, printer, HP 400series" mac-address=E8:39:35:93:21:DF server=\ users_dhcp_vlan33 add address=192.168.33.159 client-id=1:f4:81:39:e7:37:fc comment=\ "CANON \tMF410 Series/\CE\D2\E8\C7" mac-address=F4:81:39:E7:37:FC server=\ users_dhcp_vlan33 add address=192.168.33.90 client-id=1:f4:81:39:e6:ae:d comment="CANON MF410 Se\ ries SU29791/\EE\F2\E4\E5\EB \DD\ED\E5\F0\E3\E5\F2\E8\EA\E0" mac-address=\ F4:81:39:E6:AE:0D server=users_dhcp_vlan33 add address=192.168.33.74 client-id=1:14:cb:19:17:a9:f2 comment=\ "HP LaserJet MFP M426fdn (17A9F2)/\C1\F3\F5\E3\E0\EB\F2\E5\F0\E8\FF" \ mac-address=14:CB:19:17:A9:F2 server=users_dhcp_vlan33 add address=192.168.31.100 client-id=1:ac:1f:6b:29:19:7c comment=\ "SuperMicro (Xeon E3-1270 v6 @ 3.80GHz)" mac-address=AC:1F:6B:29:19:7C \ server=servers_dhcp_vlan31 add address=192.168.31.55 comment=\ "Dell EMC PowerEdge 540 2U\r\ \n Urbackup_192.168.31.25" mac-address=F4:EE:08:00:6C:64 server=\ servers_dhcp_vlan31 add address=192.168.31.101 client-id=1:ac:1f:6b:32:85:9b comment=\ "Supermicro X10DRi (Xeon E5-2620 v4 @ 2.10GHz)" mac-address=\ AC:1F:6B:32:85:9B server=servers_dhcp_vlan31 add address=192.168.33.48 client-id=1:f4:81:39:e7:d1:85 comment=\ "CANON MF410 Series/\C1\F3\F5\E3\E0\EB\F2\E5\F0\E8\FF/\CE\E1\F9\E0\FF" \ mac-address=F4:81:39:E7:D1:85 server=users_dhcp_vlan33 add address=192.168.33.73 client-id=1:18:c:ac:dd:9d:f4 comment=\ "CANON imageRUNNER1133/\EE\F2\E4\E5\EB \D2\EE\F0\E3\EE\E2" mac-address=\ 18:0C:AC:DD:9D:F4 server=users_dhcp_vlan33 add address=192.168.33.86 client-id=1:0:17:c8:52:82:42 comment="KYOCERA ECOSYS\ \_M8124cidn/\DD\EA\EE\ED\EE\EC\E8\F7\E5\F1\EA\E8\E9 \EE\F2\E4\E5\EB" \ mac-address=00:17:C8:52:82:42 server=users_dhcp_vlan33 add address=192.168.33.40 client-id=1:38:ca:84:a5:f9:1a comment="HP LaserJet P\ ro MFP M428fdw/\CE\F2\E4\E5\EB \EA\E0\E4\F0\EE\E2/2 \FD\F2\E0\E6" \ mac-address=38:CA:84:A5:F9:1A server=users_dhcp_vlan33 add address=192.168.33.190 client-id=1:80:5e:c0:e5:e9:34 mac-address=\ 80:5E:C0:E5:E9:34 server=users_dhcp_vlan33 add address=192.168.33.204 client-id=1:80:5e:c0:e5:ea:99 mac-address=\ 80:5E:C0:E5:EA:99 server=users_dhcp_vlan33 add address=192.168.33.207 client-id=1:80:5e:c0:e5:e8:39 mac-address=\ 80:5E:C0:E5:E8:39 server=users_dhcp_vlan33 add address=192.168.33.217 client-id=1:80:5e:c0:e5:ea:f1 mac-address=\ 80:5E:C0:E5:EA:F1 server=users_dhcp_vlan33 add address=10.200.30.120 client-id=1:40:9f:38:94:78:86 comment=\ "\CE\F2\E4\E5\EB_\EA\E0\E4\F0\EE\E2_1\FD\F2\E0\E6/Canon_418" mac-address=\ 40:9F:38:94:78:86 server=wi-fi_corp add address=192.168.31.117 comment=Super_Micro_Sys_1029P_WTRT mac-address=\ 3C:EC:EF:E8:C1:03 server=servers_dhcp_vlan31 add address=192.168.31.121 client-id=1:b8:cb:29:d0:42:95 comment=\ "DellEMC PowerEdge R340" mac-address=B8:CB:29:D0:42:95 server=\ servers_dhcp_vlan31 add address=192.168.31.124 client-id=1:ec:b1:d7:88:67:16 comment=\ "HP Proliant DL 360 G8 Xeon E5-2680 v2 @ 2.80GHz" mac-address=\ EC:B1:D7:88:67:16 server=servers_dhcp_vlan31 add address=192.168.31.25 comment=Urbackup mac-address=00:15:5D:1F:6A:00 \ server=servers_dhcp_vlan31 add address=192.168.35.120 client-id=1:80:5e:c0:e5:eb:1c mac-address=\ 80:5E:C0:E5:EB:1C server=mgmt_dhcp_work_vlan35 add address=192.168.33.202 client-id=1:80:5e:c0:e5:ea:c5 mac-address=\ 80:5E:C0:E5:EA:C5 server=users_dhcp_vlan33 add address=192.168.33.254 client-id=1:38:63:bb:d8:3e:2a mac-address=\ 38:63:BB:D8:3E:2A server=users_dhcp_vlan33 add address=192.168.35.110 client-id=1:4:7c:16:ca:16:d9 comment="Zagudaev N" \ mac-address=04:7C:16:CA:16:D9 server=mgmt_dhcp_work_vlan35 add address=192.168.33.46 client-id=1:9c:5c:8e:8f:fe:b5 comment=Use_X \ mac-address=9C:5C:8E:8F:FE:B5 server=users_dhcp_vlan33 add address=192.168.33.191 client-id=1:80:5e:c:2d:1c:9 mac-address=\ 80:5E:0C:2D:1C:09 server=users_dhcp_vlan33 add address=192.168.35.101 client-id=1:a4:5d:36:5e:dc:b1 mac-address=\ A4:5D:36:5E:DC:B1 server=mgmt_dhcp_work_vlan35 add address=192.168.33.109 client-id=1:38:63:bb:d8:7c:78 mac-address=\ 38:63:BB:D8:7C:78 server=users_dhcp_vlan33 add address=192.168.31.123 client-id=1:9c:8e:99:1a:7a:de comment=\ "ProLiant DL360 G7 Xeon X5650 @ 2.67GHz" mac-address=9C:8E:99:1A:7A:DE \ server=servers_dhcp_vlan31 add address=192.168.31.192 client-id=\ ff:11:9e:75:f1:0:1:0:1:2f:e5:22:dd:bc:24:11:9e:75:f1 comment=\ "RustDesk Server" mac-address=BC:24:11:9E:75:F1 server=\ servers_dhcp_vlan31 add address=192.168.33.206 client-id=1:80:5e:c0:e5:eb:30 mac-address=\ 80:5E:C0:E5:EB:30 server=users_dhcp_vlan33 add address=10.200.30.179 mac-address=00:12:6F:F8:59:E8 server=wi-fi_corp add address=192.168.33.220 client-id=1:c:38:3e:2:a8:2e mac-address=\ 0C:38:3E:02:A8:2E server=users_dhcp_vlan33 add address=192.168.31.114 comment="Open WRT" mac-address=BC:24:11:6E:8A:75 \ server=servers_dhcp_vlan31 add address=192.168.33.163 client-id=1:c:38:3e:e:e8:32 mac-address=\ 0C:38:3E:0E:E8:32 server=users_dhcp_vlan33 add address=192.168.33.179 comment=Dispetcher-1flour mac-address=\ C8:5A:CF:61:FA:0B server=users_dhcp_vlan33 add address=192.168.31.104 comment=Pulse mac-address=BC:24:11:B4:36:5F \ server=servers_dhcp_vlan31 add address=192.168.33.221 client-id=1:38:ca:84:59:f5:e mac-address=\ 38:CA:84:59:F5:0E server=users_dhcp_vlan33 add address=192.168.33.209 client-id=1:d0:bf:9c:ba:29:ae mac-address=\ D0:BF:9C:BA:29:AE server=users_dhcp_vlan33 add address=192.168.35.135 client-id=1:bc:24:11:de:cb:29 comment=\ TERM-TEH-DUDE mac-address=BC:24:11:DE:CB:29 server=mgmt_dhcp_work_vlan35 add address=192.168.33.224 client-id=1:d0:ad:8:12:1b:c0 comment=\ Dispetcher-1flour mac-address=D0:AD:08:12:1B:C0 server=users_dhcp_vlan33 add address=192.168.33.120 client-id=1:18:c0:4d:fe:c1:1 mac-address=\ 18:C0:4D:FE:C1:01 server=users_dhcp_vlan33 add address=192.168.31.112 client-id=1:ac:1f:6b:32:83:80 comment=\ "Supermicro X10DRi ( Xeon E5-2609)\r\ \n" mac-address=AC:1F:6B:32:83:80 server=servers_dhcp_vlan31 add address=192.168.31.103 client-id=\ ff:11:a6:98:79:0:1:0:1:30:72:80:36:bc:24:11:a6:98:79 comment=Netbox \ mac-address=BC:24:11:A6:98:79 server=servers_dhcp_vlan31 add address=192.168.33.9 client-id=1:84:69:93:f3:53:5c mac-address=\ 84:69:93:F3:53:5C server=users_dhcp_vlan33 add address=192.168.33.178 client-id=1:80:5e:c0:e5:eb:c2 mac-address=\ 80:5E:C0:E5:EB:C2 server=users_dhcp_vlan33 add address=192.168.31.119 client-id=1:bc:24:11:ed:74:97 comment=MikoPBX \ mac-address=BC:24:11:ED:74:97 server=servers_dhcp_vlan31 add address=192.168.33.243 client-id=1:80:5e:c0:e5:ea:fd mac-address=\ 80:5E:C0:E5:EA:FD server=users_dhcp_vlan33 add address=10.200.30.116 client-id=1:f8:d:ac:d4:45:ef mac-address=\ F8:0D:AC:D4:45:EF server=wi-fi_corp add address=192.168.33.193 client-id=1:84:69:93:34:bd:9 mac-address=\ 84:69:93:34:BD:09 server=users_dhcp_vlan33 add address=192.168.33.4 client-id=1:f4:81:39:e5:f8:ca mac-address=\ F4:81:39:E5:F8:CA server=users_dhcp_vlan33 add address=192.168.33.3 client-id=1:80:5e:c0:e5:ea:66 mac-address=\ 80:5E:C0:E5:EA:66 server=users_dhcp_vlan33 add address=192.168.31.106 client-id=\ ff:ca:53:9:5a:0:2:0:0:ab:11:61:36:df:b9:c:4a:30:d9 comment=SZR-NODE1 \ mac-address=02:C7:3F:6E:C9:88 server=servers_dhcp_vlan31 add address=192.168.33.52 client-id=1:dc:c2:c9:61:4d:78 mac-address=\ DC:C2:C9:61:4D:78 server=users_dhcp_vlan33 add address=192.168.31.107 client-id=\ ff:ca:53:9:5a:0:2:0:0:ab:11:a2:4d:98:d8:ec:ce:f4:e comment=Docker \ mac-address=BC:24:11:D8:55:4A server=servers_dhcp_vlan31 add address=192.168.55.240 mac-address=74:BF:C0:00:D9:72 server=\ mostovik_vlan55 add address=192.168.33.49 client-id=1:6c:f2:d8:bc:b3:a1 mac-address=\ 6C:F2:D8:BC:B3:A1 server=users_dhcp_vlan33 add address=192.168.33.67 client-id=1:80:5e:c0:e5:eb:18 comment="SHerst'" \ mac-address=80:5E:C0:E5:EB:18 server=users_dhcp_vlan33 add address=192.168.31.122 client-id=1:bc:24:11:fb:e6:f9 comment=Zabbix \ mac-address=BC:24:11:FB:E6:F9 server=servers_dhcp_vlan31 add address=192.168.31.127 client-id=\ ff:ca:53:9:5a:0:2:0:0:ab:11:3c:f2:dc:37:5:ad:3c:29 comment=GLPI \ mac-address=BC:24:11:B7:03:AE server=servers_dhcp_vlan31 add address=192.168.31.130 client-id=1:bc:24:11:45:d:bb comment=\ "Podman Centos / CALIBRE WEB / DASHY / PLANKA" mac-address=\ BC:24:11:45:0D:BB server=servers_dhcp_vlan31 add address=192.168.31.131 client-id=1:bc:24:11:60:96:1 comment=SZR-Term01 \ mac-address=BC:24:11:60:96:01 server=servers_dhcp_vlan31 add address=192.168.33.227 client-id=1:d4:f0:c9:37:be:24 comment=\ "Buhgalteria MFU ECOSYS MA2600cfx" mac-address=D4:F0:C9:37:BE:24 server=\ users_dhcp_vlan33 add address=192.168.31.132 comment="Libre NMS" mac-address=BC:24:11:06:DF:45 \ server=servers_dhcp_vlan31 add address=10.100.24.2 client-id=1:28:c5:c8:72:e9:92 comment=\ PRN-YUR-HPM430-BW mac-address=28:C5:C8:72:E9:92 server=dhcp_1024_Yurist add address=10.100.24.7 client-id=1:18:c0:4d:18:31:28 comment=\ "PC-Elyanuskina Yulia" mac-address=18:C0:4D:18:31:28 server=\ dhcp_1024_Yurist add address=10.100.24.8 client-id=1:80:5e:c0:e5:ea:18 comment=\ "PHONE-Yuristy-SIP 1310" mac-address=80:5E:C0:E5:EA:18 server=\ dhcp_1024_Yurist add address=10.100.24.5 client-id=1:a8:5e:45:5f:26:c4 comment=\ "PC-Yuristy-Irina Kurnikova" mac-address=A8:5E:45:5F:26:C4 server=\ dhcp_1024_Yurist add address=10.100.24.9 client-id=1:f4:81:39:e6:86:21 comment=\ "Yurist BDD - Canon" mac-address=F4:81:39:E6:86:21 server=\ dhcp_1024_Yurist add address=10.100.24.10 client-id=1:d8:5e:d3:70:18:ca comment=\ "PC-Yuristy-Tatyana Borzihina" mac-address=D8:5E:D3:70:18:CA server=\ dhcp_1024_Yurist add address=10.100.24.4 client-id=1:e0:d5:5e:ea:61:67 comment=\ "PC-Yuristy-Pryankova Marina" mac-address=E0:D5:5E:EA:61:67 server=\ dhcp_1024_Yurist add address=10.100.15.2 client-id=1:38:2c:4a:b3:20:c6 comment=\ "PC-SB-Klokova_Karnavskaya Anna" mac-address=38:2C:4A:B3:20:C6 server=\ dhcp_1015_SB add address=10.100.15.3 comment=PRN-SB-RIC330-BW mac-address=\ 58:38:79:51:6F:0E server=dhcp_1015_SB add address=10.100.15.4 client-id=1:b4:2e:99:de:e5:8c comment=\ "PC-SB-Juravleva Yulia" mac-address=B4:2E:99:DE:E5:8C server=dhcp_1015_SB add address=10.100.13.2 client-id=1:74:d4:35:45:72:5b comment=\ "PC-PTO-Nikitina Ekaterina" mac-address=74:D4:35:45:72:5B server=\ dhcp_1013_PTO add address=10.100.13.3 client-id=1:88:51:fb:e7:e0:66 comment=\ "PRN-PTO-HPM1536-BW-Nikitina Ekaterina" mac-address=88:51:FB:E7:E0:66 \ server=dhcp_1013_PTO add address=10.100.13.4 client-id=1:2c:56:dc:4b:22:56 comment=\ "PC-PTO-Yulia Revyakina" mac-address=2C:56:DC:4B:22:56 server=\ dhcp_1013_PTO add address=10.100.13.5 client-id=1:d4:f0:c9:b:29:da comment=\ "PRN-PTO-KYOM5526-CLR-Nikitina Ekaterina" mac-address=D4:F0:C9:0B:29:DA \ server=dhcp_1013_PTO add address=10.100.13.6 client-id=1:8:8f:c3:cb:63:88 comment=\ "PC-PTO-Shiskina Elena" mac-address=08:8F:C3:CB:63:88 server=\ dhcp_1013_PTO add address=10.100.13.7 client-id=1:70:5a:f:d:50:fd comment=\ "PRN-PTO-HPM426-BW-Shiskina Elena" mac-address=70:5A:0F:0D:50:FD server=\ dhcp_1013_PTO add address=10.100.13.8 client-id=1:3c:2a:f4:d7:88:7a comment=\ "PRN-PTO-BRL2700-BW-Petrakova Alla" mac-address=3C:2A:F4:D7:88:7A server=\ dhcp_1013_PTO add address=10.100.13.9 client-id=1:80:5e:c0:e5:eb:6 comment=\ "PHONE-PTO-Petrakova Alla" mac-address=80:5E:C0:E5:EB:06 server=\ dhcp_1013_PTO add address=10.100.13.10 client-id=1:4c:cc:6a:d1:f2:d1 comment=\ "PC-PTO-Petrakova Alla" mac-address=4C:CC:6A:D1:F2:D1 server=\ dhcp_1013_PTO add address=10.100.13.11 client-id=1:d4:f0:c9:4:85:15 comment=\ "PRN-PTO-KYOM8124-CLR-Namestnikova Valentina" mac-address=\ D4:F0:C9:04:85:15 server=dhcp_1013_PTO add address=10.100.13.12 client-id=1:f0:79:59:94:c3:41 comment=PC-PTO-Voditel \ mac-address=F0:79:59:94:C3:41 server=dhcp_1013_PTO add address=10.100.13.13 client-id=1:fc:aa:14:1d:b2:9b comment=\ "PC-Namestnikova Valentina" mac-address=FC:AA:14:1D:B2:9B server=\ dhcp_1013_PTO add address=10.100.13.14 client-id=1:1c:1b:d:d7:35:45 comment=\ "PC-PTO-Galina Svetlana" mac-address=1C:1B:0D:D7:35:45 server=\ dhcp_1013_PTO add address=10.100.13.15 client-id=1:28:92:4a:ad:5a:9a comment=\ "PRN-PTO-HPT520-PLOT-Comnata PTO" mac-address=28:92:4A:AD:5A:9A server=\ dhcp_1013_PTO add address=10.100.13.16 client-id=1:2c:9e:fc:1f:f7:9b comment=\ "PRN-PTO-CAN7100-CLR-Comnata PTO" mac-address=2C:9E:FC:1F:F7:9B server=\ dhcp_1013_PTO add address=10.100.13.17 client-id=1:0:1e:8f:dd:ca:d comment=\ "PRN-PTO-CAN2520-BW-Comnata PTO" mac-address=00:1E:8F:DD:CA:0D server=\ dhcp_1013_PTO add address=192.168.31.129 client-id=1:bc:24:11:a:d1:4 comment=SZR-PRINT \ mac-address=BC:24:11:0A:D1:04 server=servers_dhcp_vlan31 add address=192.168.31.136 client-id=\ ff:70:bb:e:76:0:2:0:0:ab:11:db:c6:36:d3:22:25:60:a6 comment=\ "3d Flying Bear" mac-address=C8:4D:44:20:81:B9 server=servers_dhcp_vlan31 add address=10.200.30.218 client-id=1:d4:4b:5e:45:53:6 comment=\ "PS VITA Sergey" mac-address=D4:4B:5E:45:53:06 server=wi-fi_corp add address=10.100.4.2 client-id=1:54:b2:3:9c:1:12 comment=\ "PRN-ECOLOGY-Hvostova Svetlana" mac-address=54:B2:03:9C:01:12 server=\ dhcp_1004_ecology add address=10.100.4.3 client-id=1:28:c5:c8:da:8f:de comment=\ "PRN-ECOLOGY-HPM430-BW-Hvostova Svetlana" mac-address=28:C5:C8:DA:8F:DE \ server=dhcp_1004_ecology add address=10.100.4.5 client-id=1:80:5e:c0:e5:e8:2c comment=\ "PHONE-Hvostova Svetlana" mac-address=80:5E:C0:E5:E8:2C server=\ dhcp_1004_ecology add address=10.100.18.2 client-id=1:c8:4d:44:29:0:52 comment=\ "PC-SGM-Kiryuhin Ilya_uvolen" mac-address=C8:4D:44:29:00:52 server=\ dhcp_1018_SGM add address=10.100.18.3 client-id=1:5c:e9:31:e0:d1:d8 comment=\ "PC-SGM-Evgeniy Golovinov" mac-address=5C:E9:31:E0:D1:D8 server=\ dhcp_1018_SGM add address=10.100.18.4 client-id=1:30:65:ec:c0:69:1 comment=\ "PC-SGM-Stroganov Viktor" mac-address=30:65:EC:C0:69:01 server=\ dhcp_1018_SGM add address=10.100.18.6 client-id=1:c8:4d:44:29:b2:5 comment=\ "PC-SGM-Ilyin nach" mac-address=C8:4D:44:29:B2:05 server=dhcp_1018_SGM add address=10.100.18.7 client-id=1:6c:f2:d8:af:f:87 comment=\ PRN-SGM-CANMF463DW-BW mac-address=6C:F2:D8:AF:0F:87 server=dhcp_1018_SGM add address=10.100.18.10 comment=PRN-SGM-SPS325NW-BW mac-address=\ 00:26:73:F4:5A:16 server=dhcp_1018_SGM add address=10.100.9.3 client-id=1:6c:f2:d8:af:ed:74 comment=\ "PRN-LOGISTY-CANMF461DW-Checkina Larisa" mac-address=6C:F2:D8:AF:ED:74 \ server=dhcp_1009_logisty add address=10.100.9.5 client-id=1:d8:43:ae:1d:82:42 comment=\ "PC-LOGISTY-Bagdalova Galiya" mac-address=D8:43:AE:1D:82:42 server=\ dhcp_1009_logisty add address=10.100.9.6 client-id=1:50:46:5d:90:1b:6e comment=\ "PC-LOGISTY-Checkina Larisa" mac-address=50:46:5D:90:1B:6E server=\ dhcp_1009_logisty add address=10.100.18.13 client-id=1:f4:81:39:e6:ae:22 comment=\ PRN-SGM-CANMF410-BW mac-address=F4:81:39:E6:AE:22 server=dhcp_1018_SGM add address=10.100.15.6 client-id=1:dc:c2:c9:61:21:dc comment=\ "Canon MF 450 SERIES SB" mac-address=DC:C2:C9:61:21:DC server=\ dhcp_1015_SB add address=10.100.18.15 client-id=1:e0:d5:5e:7f:df:ef mac-address=\ E0:D5:5E:7F:DF:EF server=dhcp_1018_SGM add comment=BANNED_KASSA mac-address=E0:D5:5E:5E:C9:19 server=\ users_dhcp_vlan33 add address=10.100.18.16 client-id=1:c8:4d:44:27:1c:1e mac-address=\ C8:4D:44:27:1C:1E server=dhcp_1018_SGM add address=10.100.9.7 client-id=1:4:7c:16:e6:5a:14 comment=\ "PC-LOGISTY-Mazina Tatyana" mac-address=04:7C:16:E6:5A:14 server=\ dhcp_1009_logisty add address=10.100.18.14 client-id=1:e8:6a:64:c8:f6:16 comment=\ "PC-ENERGETIKA-Aleksandr Zhuravlev-MKR" mac-address=E8:6A:64:C8:F6:16 \ server=dhcp_1018_SGM add address=10.100.18.5 client-id=1:30:65:ec:bb:35:33 comment=\ "PC-SGM-Andrey Pishchugin" mac-address=30:65:EC:BB:35:33 server=\ dhcp_1018_SGM add address=10.100.18.9 client-id=1:84:47:9:74:c8:df comment=\ "PC-SKLAD-Mineeva Svetlana" mac-address=84:47:09:74:C8:DF server=\ dhcp_1018_SGM add address=10.100.15.5 client-id=1:d8:bb:c1:45:fe:46 comment=\ "PC-SB-Inkina Elena" mac-address=D8:BB:C1:45:FE:46 server=dhcp_1015_SB add address=10.100.9.8 client-id=1:6c:f2:d8:af:85:e5 comment=\ "PRN-LOGISTY-CANMF461DW- Bagdalova Galiya" mac-address=6C:F2:D8:AF:85:E5 \ server=dhcp_1009_logisty add address=10.100.9.9 client-id=1:64:4e:d7:62:2d:1c comment=\ "PRN-LOGISTY-HPM430-BW-Mazina Tatyana" mac-address=64:4E:D7:62:2D:1C \ server=dhcp_1009_logisty /ip dhcp-server network add address=10.1.4.0/24 gateway=10.1.4.1 add address=10.100.4.0/24 comment=Ecology dns-server=\ 192.168.31.11,192.168.31.15 gateway=10.100.4.1 add address=10.100.8.0/24 dns-server=10.100.8.1 gateway=10.100.8.1 add address=10.100.9.0/24 dns-server=192.168.31.11,192.168.31.15 gateway=\ 10.100.9.1 add address=10.100.12.0/24 dns-server=10.100.12.1 gateway=10.100.12.1 add address=10.100.13.0/24 dns-server=192.168.31.11,10.100.13.1 gateway=\ 10.100.13.1 add address=10.100.15.0/24 dns-server=192.168.31.11,10.100.15.1 gateway=\ 10.100.15.1 add address=10.100.18.0/24 dns-server=192.168.31.11,192.168.31.15 gateway=\ 10.100.18.1 add address=10.100.24.0/24 dns-server=192.168.31.11,10.100.24.1 gateway=\ 10.100.24.1 add address=10.100.36.0/24 dns-server=10.100.36.1 gateway=10.100.36.1 add address=10.100.49.0/24 dns-server=10.100.49.1 domain=adi63.ru gateway=\ 10.100.49.1 add address=10.200.30.0/24 dns-server=192.168.31.11,10.200.30.1 domain=\ adi63.ru gateway=10.200.30.1 add address=10.200.40.0/24 gateway=10.200.40.1 add address=10.213.77.0/24 gateway=10.213.77.1 add address=10.213.177.0/24 gateway=10.213.177.1 add address=172.16.26.0/24 gateway=172.16.26.1 add address=192.168.30.0/24 dns-server=192.168.30.1 gateway=192.168.30.1 add address=192.168.31.0/24 dns-server=192.168.31.1,192.168.31.11 domain=\ adi63.ru gateway=192.168.31.1 add address=192.168.32.0/24 dns-server=192.168.32.1 gateway=192.168.32.1 add address=192.168.33.0/24 dns-server=\ 192.168.31.11,192.168.31.15,192.168.33.1 domain=adi63.ru gateway=\ 192.168.33.1 ntp-server=192.168.33.1 add address=192.168.34.0/24 dns-server=192.168.31.11,192.168.34.1 domain=\ adi63.ru gateway=192.168.34.1 add address=192.168.35.0/24 dns-server=192.168.35.1 domain=adi63.ru gateway=\ 192.168.35.1 ntp-server=192.168.35.1 add address=192.168.37.0/24 dns-server=192.168.37.1 gateway=192.168.37.1 add address=192.168.41.0/24 dns-server=192.168.41.1 gateway=192.168.41.1 add address=192.168.55.0/24 gateway=192.168.55.1 add address=192.168.121.0/24 gateway=192.168.121.5 add address=192.168.200.0/24 dns-server=192.168.200.1 gateway=192.168.200.1 add address=192.168.210.0/24 gateway=192.168.210.1 /ip dns set allow-remote-requests=yes servers=8.8.8.8,8.8.4.4,77.88.8.1 \ verify-doh-cert=yes /ip dns static add address=192.168.31.7 address-list=GPS name=gps.adi63.ru type=A add address=192.168.31.9 address-list=GPS name=sga-gps.adi63.ru type=A add address=10.10.5.3 name=Leon-1C.Leon.local type=A add address=10.10.5.2 name=Leon-term.Leon.local type=A add address=192.168.31.180 name=voip.adi63.ru type=A add address=172.16.1.9 name=fanvil.adi63.ru type=A add address=192.168.31.2 name=Serv_adi1.local type=A add address=192.168.35.108 name=nextcloud.adi63.ru type=A add address=192.168.31.11 address-list=Domain name=adi63.ru type=A add address=192.168.31.155 name=nas.adi63.ru type=A add address=192.168.31.18 name=szr-app018.adi63.ru type=A add address=192.168.31.194 name=eve_ng.adi63.ru type=A add address=192.168.31.113 name=proxmox.adi63.ru type=A add address=192.168.31.192 name=rustdesk.adi63.ru type=A add address=192.168.31.8 name=terminal.adi63.ru type=A add address=192.168.35.135 name=term-teh.adi63.ru type=A add address=192.168.35.135 name=term-tex.adi63.ru type=A add address=192.168.35.130 name=szr-podman.adi63.ru type=A add address=192.168.31.116 name=zabbix.adi63.ru type=A add address=192.168.31.130 name=szr-kanban.adi63.ru type=A add address=192.168.31.25 name=urbackup.adi63.ru type=A add address=192.168.31.107 name=gitlab.adi63.ru type=A add address=192.168.31.127 name=librenms.adi63.ru type=A add address=192.168.35.252 name=ovpn.adi63.ru type=A add address=192.168.31.122 name=szr-zbx.adi63.ru type=A /ip firewall address-list add address=88.200.194.114 comment=ipsec list=allow_vpn add address=141.0.182.22 list=allow_vpn add address=89.151.133.63 list=allow_vpn add address=80.237.76.44 list=allow_vpn add address=80.234.81.166 list=allow_vpn add address=80.234.107.194 comment=Komp_Teh list=allow_rdp add address=85.113.51.7 list=allow_rdp add address=10.10.20.0/24 list=ike2_dmz add address=0.0.0.0/8 list=BOGONS add address=100.64.0.0/10 list=BOGONS add address=127.0.0.0/8 list=BOGONS add address=169.254.0.0/16 list=BOGONS add address=172.16.0.0/12 list=BOGONS add address=192.0.0.0/24 list=BOGONS add address=192.0.2.0/24 list=BOGONS add address=198.18.0.0/15 list=BOGONS add address=198.51.100.0/24 list=BOGONS add address=203.0.113.0/24 list=BOGONS add address=224.0.0.0/3 list=BOGONS add address=192.168.31.11 list=out_ecmp_isp1 add address=192.168.31.9 list=out_ecmp_isp2 add address=83.234.176.81 list=allow_vpn add address=192.168.0.0/16 list=BOGONS add address=10.0.0.0/8 list=BOGONS add address=194.87.191.51 list=allow_vpn add address=172.16.1.7 list=out_ecmp_isp1 add address=192.168.35.124 list=out_ecmp_isp1 add address=185.12.155.0/24 list=releases.1c.ru add address=185.12.152.0/24 list=to-1C add address=185.12.153.0/24 list=to-1C add address=185.12.154.0/24 list=to-1C add address=220.181.0.0/16 list=to-1C add address=39.128.0.0/10 list=to-1C add address=5.188.115.0/24 list=to-1C add address=93.184.220.0/22 list=to-1C add address=37.61.222.112/29 list=to-1C add address=139.45.192.0/18 list=to-1C add address=142.250.0.0/15 list=to-1C add address=64.233.160.0/19 list=to-1C add address=209.85.128.0/17 list=to-1C add address=77.88.55.0/24 list=to-1C add address=5.255.255.0/24 list=to-1C add address=5.45.205.0/24 list=to-1C add address=94.100.176.0/21 list=to-1C add address=217.69.136.0/21 list=to-1C add address=18.184.212.59 list=to-1C add address=23.52.27.27 list=to-1C add address=23.46.123.27 list=to-1C add address=91.239.5.113 list=to-1C add address=89.111.148.64/26 list=to-1C add address=100.120.114.67 list=access_admin add address=212.32.212.75 list=access_admin add address=192.168.35.122 list=ISP_2_LAN add address=10.113.100.0/24 list=BGP_link add address=178.178.210.221 list=track add address=178.178.210.135 list=track add address=178.178.209.107 list=track add address=192.168.35.123 list=ISP_2_LAN add address=192.168.35.167 list=ISP_2_LAN add address=graylog.org list=graylog2.org add address=188.114.98.232 list=graylog2.org add address=188.114.99.232 list=graylog2.org add address=192.168.33.46 list=ISP_2_LAN add address=192.168.0.0/16 list=Local add address=10.0.0.0/8 list=Local add address=172.16.0.0/12 list=Local add address=10.254.100.0/24 list=Mostovik add address=he108n83ftx.sn.mynetname.net list=access_admin add address=192.168.30.1 list=dns_local_for_mstk add address=10.200.30.1 list=dns_local_for_mstk add address=192.168.31.11 list=dns_local_for_mstk add address=192.168.31.8 list=mvk_srv add address=192.168.31.19 list=mvk_srv add address=192.168.35.108 list=ISP_2_LAN add address=192.168.31.127 list=ISP_2_LAN add address=192.168.35.115 list=ISP_2_LAN add address=192.168.35.250 list=ISP_2_LAN add address=192.168.35.104 list=ISP_2_LAN add address=192.168.35.105 list=ISP_2_LAN add address=KM962777 list=arp_block add address=85.113.37.212 list=access_admin add address=192.168.35.17 list=ISP_2_LAN add address=192.168.31.0/24 list=Rostov_net add address=192.168.31.122 comment="Zabbix Server" list=SNMP_Access add address=192.168.35.253 comment="Monitoring Host 35.253" list=SNMP_Access add address=10.101.251.224 comment="LibreNMS Server IP" list=SNMP_Access add address=10.101.251.0/24 comment="LibreNMS Transit Subnet" list=\ SNMP_Access add address=10.1.254.0/24 comment="Core Route Transit Subnet" list=\ SNMP_Access add address=10.100.18.15 comment="Unknown user 2" list=block_list add address=10.100.18.16 comment="Unknown user 3" list=block_list /ip firewall filter add action=accept chain=input comment=\ "FIX: Pass SNMP to CPU bypass FastTrack" dst-port=161 protocol=udp add action=fasttrack-connection chain=input connection-state=\ established,related disabled=yes add action=accept chain=input comment=RELATED,ESTABLISHED connection-state=\ established,related add action=reject chain=forward comment="BLOCK INTERNET FOR UNKNOWN USERS" \ reject-with=icmp-admin-prohibited src-address-list=block_list add action=fasttrack-connection chain=forward connection-state=\ established,related add action=accept chain=forward comment=RELATED,ESTABLISHED connection-state=\ established,related add action=accept chain=input comment="Allow SNMP for Monitoring List" \ dst-port=161 protocol=udp src-address-list=SNMP_Access add action=accept chain=input comment="Allow ICMP for Monitoring List" \ protocol=icmp src-address-list=SNMP_Access add action=drop chain=input src-address-list=arp_block add action=drop chain=input comment=mDns_Block disabled=yes dst-address=\ 224.0.0.251 protocol=udp add action=drop chain=forward comment=mDns_Block disabled=yes dst-address=\ 224.0.0.251 protocol=udp add action=drop chain=forward comment=Invalid connection-state=invalid \ in-interface-list=WAN log-prefix="FWD/Invalid drop" add action=drop chain=input comment=Invalid connection-state=invalid \ in-interface-list=WAN log-prefix=In/Invalid_DROP add action=drop chain=input comment=Rustdesk dst-address=192.168.31.192 log=\ yes log-prefix=Rustdesk_Drop src-address-list=Local add action=accept chain=input comment=ICMP_input icmp-options=8:0 \ packet-size=0-128 protocol=icmp add action=accept chain=input comment=WG-35.125 in-interface-list=WAN \ protocol=udp src-port=13231,13230 add action=accept chain=input in-interface-list=LAN add action=accept chain=input in-interface-list=LAN-AK15 add action=accept chain=input in-interface-list=mgmt_list add action=accept chain=forward comment="wifi Guest" dst-address-list=!Local \ in-interface-list=WIFI_guest add action=accept chain=forward comment="wifi Guest" dst-address-list=!Local \ in-interface-list=Wifi_SGA-guest add action=accept chain=forward in-interface-list=mgmt_list add action=accept chain=forward in-interface-list=LAN add action=accept chain=forward in-interface-list=LAN-AK15 add action=accept chain=forward comment=Mostovik-LAN in-interface-list=\ Mostovik add action=accept chain=forward in-interface-list=Wifi_SGA-corp add action=accept chain=input comment=allow_admin_ADI connection-state=new \ dst-port=8291,55 protocol=tcp src-address-list=access_admin add action=accept chain=forward comment=FWD_vpn in-interface-list=\ vpn.adi63.ru add action=accept chain=input comment=L2tp dst-port=1701,4500,500 \ in-interface-list=WAN protocol=udp add action=accept chain=input comment=L2tp disabled=yes dst-port=4500 \ in-interface-list=WAN protocol=udp add action=accept chain=input comment="IPSEC encryped" in-interface-list=WAN \ ipsec-policy=in,ipsec add action=accept chain=input comment=OVPN dst-port=1194 in-interface-list=\ WAN protocol=tcp add action=accept chain=input dst-port=500,4500 in-interface-list=WAN \ protocol=udp add action=accept chain=input in-interface-list=WAN protocol=ipsec-esp add action=accept chain=input comment=BGP dst-port=179 protocol=tcp add action=accept chain=input dst-port=54400,54300 in-interface-list=WAN \ protocol=udp src-address=88.200.194.114 add action=accept chain=input comment=rustdesk dst-port=21114-21119,8000 \ in-interface-list=WAN protocol=tcp add action=accept chain=forward comment=rustdesk dst-port=21114-21119,8000 \ in-interface-list=WAN protocol=tcp add action=accept chain=input comment=rustdesk dst-port=21116 \ in-interface-list=WAN protocol=udp add action=accept chain=forward comment=rustdesk dst-port=21116 \ in-interface-list=WAN protocol=udp add action=accept chain=input disabled=yes dst-port=54300 in-interface=\ ether2-wan2 protocol=udp src-address=88.200.194.114 add action=accept chain=input dst-port=54301,54401 in-interface-list=WAN \ protocol=udp src-address=85.113.43.109 add action=accept chain=input disabled=yes dst-port=54401 in-interface=\ pppoe-wan1 protocol=udp src-address=85.113.43.109 add action=accept chain=input dst-port=54302,54402 in-interface-list=WAN \ protocol=udp src-address=89.151.133.63 add action=accept chain=input disabled=yes dst-port=54402 in-interface=\ pppoe-wan1 protocol=udp src-address=89.151.133.63 add action=accept chain=input dst-port=54303,54403 in-interface-list=WAN \ protocol=udp src-address=80.237.76.44 add action=accept chain=input disabled=yes dst-port=54403 in-interface=\ pppoe-wan1 protocol=udp src-address=80.237.76.44 add action=accept chain=input comment="ROSTOV CHALTYR WG" dst-port=50300 \ in-interface-list=WAN protocol=udp add action=accept chain=input comment="ALLOW: WireGuard Chaltyr" dst-port=\ 54404 in-interface-list=WAN protocol=udp add action=drop chain=input log-prefix=Input_DROP add action=accept chain=forward comment=Forward_ICMP_vpn.adi63.ru \ in-interface-list=vpn.adi63.ru protocol=icmp add action=accept chain=forward comment=OVPN in-interface-list=vpn.adi63.ru add action=accept chain=forward comment=L2tp_old_OS_networks dst-port=3389 \ in-interface-list=vpn.adi63.ru protocol=tcp src-address-list=allow_vpn add action=accept chain=forward comment="IPSec Tunneled traffic IN" \ in-interface-list=WAN ipsec-policy=in,ipsec add action=accept chain=forward comment="IPSec Tunneled traffic OUT" \ ipsec-policy=out,ipsec out-interface-list=WAN add action=accept chain=forward comment="DNAT from WAN" connection-nat-state=\ dstnat in-interface-list=WAN add action=drop chain=forward connection-nat-state=!dstnat connection-state=\ new log-prefix="FORWARD drop" add action=accept chain=output disabled=yes log-prefix=Output \ out-interface-list=mgmt_list add action=log chain=forward disabled=yes dst-address=95.161.229.30 log=yes \ log-prefix=AuToGraph-31.9 protocol=tcp src-address=192.168.31.9 /ip firewall mangle add action=accept chain=prerouting comment=\ "Disable route manipulations for IPSEC" in-interface-list=WAN \ ipsec-policy=in,ipsec add action=mark-connection chain=prerouting comment=MSTK disabled=yes \ dst-address-list=dns_local_for_mstk dst-port=53 layer7-protocol=\ mostovik58.ru new-connection-mark=Mostovik58 protocol=tcp add action=mark-connection chain=prerouting disabled=yes dst-address-list=\ dns_local_for_mstk dst-port=53 layer7-protocol=mostovik58.ru \ new-connection-mark=Mostovik58 protocol=udp add action=mark-connection chain=prerouting comment=ISP1 connection-state=new \ in-interface=pppoe-wan1 new-connection-mark=connmark-wan1 passthrough=no add action=mark-connection chain=prerouting comment=ISP2 connection-state=new \ in-interface=ether2-wan2 new-connection-mark=connmark-wan2 passthrough=no add action=mark-routing chain=prerouting connection-mark=connmark-wan2 \ in-interface=!ether2-wan2 new-routing-mark=wan2 passthrough=no add action=mark-routing chain=prerouting connection-mark=connmark-wan1 \ in-interface=!pppoe-wan1 new-routing-mark=wan1 passthrough=no add action=mark-routing chain=output comment=ISP1_Output connection-mark=\ connmark-wan1 new-routing-mark=wan1 passthrough=no add action=mark-routing chain=output comment=ISP2_Output connection-mark=\ connmark-wan2 new-routing-mark=wan2 passthrough=no add action=route chain=prerouting dst-address-list=Social log-prefix=SOCIAL \ route-dst=192.168.31.126 src-address-list=ISP_2_LAN add action=route chain=prerouting comment=Mostovik disabled=yes \ dst-address-list=!mvk_srv in-interface=vlan55 log-prefix=mostovik \ route-dst=10.254.100.10 add action=route chain=prerouting disabled=yes passthrough=no route-dst=\ 10.200.100.2 src-address=192.168.35.122 add action=route chain=prerouting disabled=yes dst-address=188.114.99.0/24 \ passthrough=no route-dst=10.200.100.200 src-address=192.168.31.127 add action=route chain=prerouting disabled=yes route-dst=10.200.100.200 \ src-address=192.168.31.122 /ip firewall nat add action=accept chain=srcnat ipsec-policy=out,ipsec add action=src-nat chain=srcnat out-interface=pppoe-wan1 realm="" \ to-addresses=80.234.107.153 add action=src-nat chain=srcnat out-interface=ether2-wan2 realm="" \ to-addresses=83.69.176.181 add action=src-nat chain=srcnat routing-mark=wan1 src-address-list=\ out_ecmp_isp1 to-addresses=80.234.107.153 add action=src-nat chain=srcnat routing-mark=wan2 src-address-list=\ out_ecmp_isp2 to-addresses=83.69.176.181 add action=dst-nat chain=dstnat disabled=yes dst-address=80.234.107.153 \ dst-port=48550 log-prefix=DMZ protocol=tcp to-addresses=192.168.31.190 \ to-ports=3389 add action=src-nat chain=srcnat disabled=yes src-address=192.168.31.108 \ to-addresses=80.234.107.153 add action=dst-nat chain=dstnat comment=SIP disabled=yes dst-address=\ 80.234.107.153 dst-port=4569,5060,5161,5160,5161,10000-20000 protocol=udp \ to-addresses=192.168.31.120 add action=dst-nat chain=dstnat comment=SIP dst-address=80.234.107.153 \ dst-port=10000-20000 protocol=udp to-addresses=192.168.31.119 add action=dst-nat chain=dstnat comment=SIP disabled=yes dst-address=\ 80.234.107.153 dst-port=5060 protocol=udp to-addresses=192.168.31.119 add action=dst-nat chain=dstnat comment=SIP disabled=yes dst-address=\ 62.213.24.12 dst-port=4569,5060,5161,5160,5161,10000-20000 protocol=udp \ to-addresses=192.168.31.120 add action=dst-nat chain=dstnat comment=SIP disabled=yes dst-address=\ 80.234.107.153 dst-port=5060,5061,5161,5160 protocol=tcp to-addresses=\ 192.168.31.120 add action=dst-nat chain=dstnat comment=SIP disabled=yes dst-address=\ 62.213.24.12 dst-port=5060,5061,5160,5161 protocol=tcp to-addresses=\ 192.168.31.120 add action=dst-nat chain=dstnat comment=Autograf_site_ISP1_31.7 dst-address=\ 80.234.107.153 dst-port=443 protocol=tcp to-addresses=192.168.31.7 \ to-ports=443 add action=dst-nat chain=dstnat comment=Autograf_site_ISP2_31.7 dst-address=\ 83.69.176.181 dst-port=443 protocol=tcp to-addresses=192.168.31.7 \ to-ports=443 add action=dst-nat chain=dstnat comment=Autograf_site_ISP2_31.7 dst-address=\ 83.69.176.181 dst-port=2231 protocol=tcp to-addresses=192.168.31.110 \ to-ports=2231 add action=dst-nat chain=dstnat comment=rustdesk_ISP1 dst-address=\ 80.234.107.153 dst-port=21114,21115,21116,21117,21118,21119,8000 \ protocol=tcp to-addresses=192.168.31.192 add action=dst-nat chain=dstnat comment=rustdesk_ISP1 dst-address=\ 80.234.107.153 dst-port=21116 protocol=udp to-addresses=192.168.31.192 add action=dst-nat chain=dstnat comment=rustdesk_ISP2 dst-address=\ 83.69.176.181 dst-port=21114,21115,21116,21117,21118,21119,8000 protocol=\ tcp to-addresses=192.168.31.192 add action=dst-nat chain=dstnat comment=rustdesk_ISP2 dst-address=\ 83.69.176.181 dst-port=21116 protocol=udp to-addresses=192.168.31.192 add action=dst-nat chain=dstnat disabled=yes dst-address=83.69.176.181 \ dst-port=443 protocol=tcp to-addresses=192.168.35.98 to-ports=443 add action=dst-nat chain=dstnat disabled=yes dst-address=83.69.176.181 \ dst-port=80 protocol=tcp to-addresses=192.168.31.173 to-ports=80 add action=dst-nat chain=dstnat disabled=yes dst-address=80.234.107.153 \ dst-port=80 protocol=tcp to-addresses=192.168.31.173 to-ports=80 add action=dst-nat chain=dstnat comment=Autograf_ISP1_to_31.7 dst-address=\ 80.234.107.153 dst-port=2225 log-prefix=Autograf protocol=tcp \ to-addresses=192.168.31.7 to-ports=2225 add action=dst-nat chain=dstnat comment=Autograf_ISP1_to_31.7 dst-address=\ 80.234.107.153 dst-port=2226 log-prefix=Autograf protocol=tcp \ to-addresses=192.168.31.7 to-ports=2225 add action=dst-nat chain=dstnat comment="!!! Autograf_ISP2_to_31.9" \ dst-address=83.69.176.181 dst-port=2225 protocol=tcp to-addresses=\ 192.168.31.9 to-ports=2225 add action=dst-nat chain=dstnat comment=Autograf_ISP2_to_31.7 dst-address=\ 83.69.176.181 dst-port=2226 protocol=tcp to-addresses=192.168.31.7 \ to-ports=2225 add action=dst-nat chain=dstnat comment="!!! Autograf_ISP2_to_31.110" \ dst-address=83.69.176.181 dst-port=2227 protocol=tcp to-addresses=\ 192.168.31.110 to-ports=2225 add action=dst-nat chain=dstnat comment=Autograf_ISP1_to_31.110 disabled=yes \ dst-address=80.234.107.153 dst-port=2227 protocol=tcp to-addresses=\ 192.168.31.110 to-ports=2225 add action=dst-nat chain=dstnat comment=Autograf_ISP1_to_31.9 disabled=yes \ dst-address=80.234.107.153 dst-port=2225 protocol=tcp to-addresses=\ 192.168.31.9 to-ports=2225 add action=dst-nat chain=dstnat comment=Autograf_ISP1_to_31.9 disabled=yes \ dst-address=80.234.107.153 dst-port=2226 protocol=tcp to-addresses=\ 192.168.31.9 to-ports=2225 add action=dst-nat chain=dstnat comment=Autograf_ISP2_to_31.7 disabled=yes \ dst-address=83.69.176.181 dst-port=2226 protocol=tcp to-addresses=\ 192.168.31.7 to-ports=2225 add action=dst-nat chain=dstnat comment=Autograf_ISP2_to_31.9 disabled=yes \ dst-address=83.69.176.181 dst-port=2226 protocol=tcp to-addresses=\ 192.168.31.9 to-ports=2225 add action=dst-nat chain=dstnat comment=nat_for_KT disabled=yes dst-address=\ 80.234.107.153 dst-port=3389 protocol=tcp src-address-list=allow_rdp \ to-addresses=192.168.31.2 to-ports=3389 add action=dst-nat chain=dstnat comment=MSTK connection-mark=Mostovik58 \ to-addresses=172.16.151.10 add action=dst-nat chain=dstnat comment=OVPN-to-CHR-02 dst-port=2202,2203 \ in-interface=pppoe-wan1 log-prefix=OVPN-ISP1 protocol=tcp to-addresses=\ 192.168.35.252 add action=dst-nat chain=dstnat comment=OVPN-to-CHR-02 dst-port=2202,2203 \ in-interface=ether2-wan2 protocol=tcp to-addresses=192.168.35.252 add action=dst-nat chain=dstnat dst-address=80.234.107.153 dst-port=\ 13231,13230 protocol=udp to-addresses=192.168.35.125 add action=accept chain=srcnat comment="LibreNMS & Zabbix NAT Exception" \ dst-address-list=SNMP_Access out-interface=vlan35 add action=masquerade chain=srcnat log-prefix=masq out-interface=vlan35 add action=masquerade chain=srcnat disabled=yes add action=masquerade chain=srcnat out-interface-list=l2tp /ip firewall raw add action=add-dst-to-address-list address-list=Social address-list-timeout=\ 4w3d chain=prerouting comment=youtube.com_ISP_2 content=youtube.com \ src-address-list=ISP_2_LAN add action=add-dst-to-address-list address-list=Social address-list-timeout=\ 4w3d chain=prerouting comment=ytstatic.l.google.com_ISP_2 content=\ ytstatic.l.google.com src-address-list=ISP_2_LAN add action=add-dst-to-address-list address-list=Social address-list-timeout=\ 4w3d chain=prerouting comment=ytimg.l.google.com_ISP_2 content=\ ytimg.l.google.com src-address-list=ISP_2_LAN add action=add-dst-to-address-list address-list=Social address-list-timeout=\ 4w3d chain=prerouting comment=youtube-ui.l.google.com_ISP_2 content=\ youtube-ui.l.google.com src-address-list=ISP_2_LAN add action=add-dst-to-address-list address-list=Social address-list-timeout=\ 4w3d chain=prerouting comment=gstatic.com_ISP_2 content=gstatic.com \ src-address-list=ISP_2_LAN add action=add-dst-to-address-list address-list=Social address-list-timeout=\ 4w3d chain=prerouting comment=gvt1.com_ISP_2 content=gvt1.com \ src-address-list=ISP_2_LAN add action=add-dst-to-address-list address-list=Social address-list-timeout=\ 4w3d chain=prerouting comment=yt4.googleusercontent.com_ISP_2 content=\ yt4.googleusercontent.com src-address-list=ISP_2_LAN add action=add-dst-to-address-list address-list=Social address-list-timeout=\ 4w3d chain=prerouting comment=yt4.ggpht.com_ISP_2 content=yt4.ggpht.com \ src-address-list=ISP_2_LAN add action=add-dst-to-address-list address-list=Social address-list-timeout=\ 4w3d chain=prerouting comment=yt3.googleusercontent.com_ISP_2 content=\ yt3.googleusercontent.com src-address-list=ISP_2_LAN add action=add-dst-to-address-list address-list=Social address-list-timeout=\ 4w3d chain=prerouting comment=yt3.ggpht.com_ISP_2 content=yt3.ggpht.com \ src-address-list=ISP_2_LAN add action=add-dst-to-address-list address-list=Social address-list-timeout=\ 4w3d chain=prerouting comment=i9.ytimg.com_ISP_2 content=i9.ytimg.com \ src-address-list=ISP_2_LAN add action=add-dst-to-address-list address-list=Social address-list-timeout=\ 4w3d chain=prerouting comment=i.ytimg.com_ISP_2 content=i.ytimg.com \ src-address-list=ISP_2_LAN add action=add-dst-to-address-list address-list=Social address-list-timeout=\ 4w3d chain=prerouting comment=googleapis.com_ISP_2 content=googleapis.com \ src-address-list=ISP_2_LAN add action=add-dst-to-address-list address-list=Social address-list-timeout=\ 4w3d chain=prerouting comment=youtu.be_ISP_2 content=youtu.be \ src-address-list=ISP_2_LAN add action=add-dst-to-address-list address-list=Social address-list-timeout=\ 4w3d chain=prerouting comment=google.com_ISP_2 content=google.com \ src-address-list=ISP_2_LAN add action=add-dst-to-address-list address-list=Social address-list-timeout=\ 4w3d chain=prerouting comment=googlevideo.com_ISP_2 content=\ googlevideo.com src-address-list=ISP_2_LAN add action=add-dst-to-address-list address-list=Strava address-list-timeout=\ 4w3d chain=prerouting comment=strava.com_ISP_2 content=strava.com \ src-address-list=ISP_2_LAN add action=add-dst-to-address-list address-list=Social address-list-timeout=\ 4w3d chain=prerouting comment=instagram.com_ISP_2 content=instagram.com \ src-address-list=ISP_2_LAN add action=add-dst-to-address-list address-list=Social address-list-timeout=\ 4w3d chain=prerouting comment=docker.com_ISP_2 content=docker.com \ src-address-list=ISP_2_LAN add action=add-dst-to-address-list address-list=Social address-list-timeout=\ 4w3d chain=prerouting comment=docker.com_ISP_2 content=cloudfront.net \ src-address-list=ISP_2_LAN add action=add-dst-to-address-list address-list=Social address-list-timeout=\ 4w3d chain=prerouting comment=docker.com_ISP_2 content=docker.io \ src-address-list=ISP_2_LAN add action=add-dst-to-address-list address-list=Social address-list-timeout=\ 4w3d chain=prerouting comment=rutor.info_ISP_2 content=rutor.info \ src-address-list=ISP_2_LAN add action=add-dst-to-address-list address-list=Social address-list-timeout=\ 4w3d chain=prerouting comment=docker.com content=docker.com \ src-address-list=ISP_2_LAN add action=add-dst-to-address-list address-list=Social address-list-timeout=\ 4w3d chain=prerouting comment=getcomposer.org content=getcomposer.org \ disabled=yes src-address-list=ISP_2_LAN add action=add-dst-to-address-list address-list=Social address-list-timeout=\ 4w3d chain=prerouting comment=packagist.org content=packagist.org \ disabled=yes src-address-list=ISP_2_LAN add action=add-dst-to-address-list address-list=graylog2.org \ address-list-timeout=4w3d chain=prerouting comment=graylog content=\ graylog.org disabled=yes src-address=192.168.31.0/24 add action=drop chain=output disabled=yes dst-address=185.79.119.2 \ src-address=!80.234.107.153 add action=drop chain=output disabled=yes dst-address=90.154.50.243 \ src-address=!80.234.107.153 add action=add-src-to-address-list address-list=tracker_31.7 \ address-list-timeout=1d chain=prerouting disabled=yes dst-port=2226 \ in-interface-list=WAN log-prefix=tracker_31.7 protocol=tcp add action=add-src-to-address-list address-list=tracker_31.9 \ address-list-timeout=1d chain=prerouting disabled=yes dst-port=2225 \ in-interface-list=WAN log-prefix=tracker_31.9 protocol=tcp /ip firewall service-port set ftp disabled=yes set tftp disabled=yes set h323 disabled=yes set sip disabled=yes ports=5060 sip-direct-media=no sip-timeout=5m set pptp disabled=yes set udplite disabled=yes set dccp disabled=yes set sctp disabled=yes /ip ipsec identity add auth-method=digital-signature certificate=vpn.adi63.ru generate-policy=\ port-strict mode-config=ike2-all_lan peer=ikev2-peer \ policy-template-group=ikev2 /ip ipsec policy add comment=ike2_all_lan dst-address=10.10.20.0/24 group=ikev2 proposal=ipsec \ src-address=0.0.0.0/0 template=yes /ip route add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=pppoe-wan1 pref-src=\ "" routing-table=wan1 scope=30 target-scope=10 add comment=MainGW disabled=no distance=1 dst-address=0.0.0.0/0 gateway=\ pppoe-wan1 pref-src="" routing-table=main scope=30 target-scope=10 add comment=RsrvGW disabled=no distance=2 dst-address=0.0.0.0/0 gateway=\ 83.69.176.1 pref-src=0.0.0.0 routing-table=main scope=30 target-scope=10 add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=83.69.176.1 \ pref-src="" routing-table=wan2 scope=30 target-scope=10 add blackhole disabled=no distance=254 dst-address=10.0.0.0/8 gateway="" \ pref-src="" routing-table=main scope=30 target-scope=10 add blackhole disabled=no distance=254 dst-address=172.16.0.0/12 gateway="" \ pref-src="" routing-table=main scope=30 target-scope=10 add blackhole disabled=no distance=254 dst-address=192.168.0.0/16 gateway="" \ pref-src="" routing-table=main scope=30 target-scope=10 add disabled=no distance=1 dst-address=172.16.151.50/32 gateway=10.254.111.29 \ pref-src="" routing-table=main scope=30 target-scope=10 add disabled=no distance=1 dst-address=172.16.151.41/32 gateway=10.254.111.29 \ pref-src="" routing-table=main scope=30 target-scope=10 add disabled=no distance=1 dst-address=172.16.151.16/32 gateway=10.254.111.29 \ pref-src="" routing-table=main scope=30 target-scope=10 add disabled=no distance=1 dst-address=172.16.151.42/32 gateway=10.254.111.29 \ pref-src="" routing-table=main scope=30 target-scope=10 add disabled=no distance=1 dst-address=172.16.3.107/32 gateway=10.254.111.29 \ pref-src="" routing-table=main scope=30 target-scope=10 add comment=TEST disabled=yes distance=1 dst-address=172.0.4.0/24 gateway=\ 192.168.31.200 routing-table=main scope=30 target-scope=10 add disabled=no distance=1 dst-address=172.16.151.10/32 gateway=10.254.111.29 \ pref-src="" routing-table=main scope=30 target-scope=10 add disabled=no distance=1 dst-address=172.16.131.0/24 gateway=10.254.111.29 \ pref-src="" routing-table=main scope=30 target-scope=10 add disabled=no distance=1 dst-address=172.16.140.0/24 gateway=10.254.111.29 \ pref-src="" routing-table=main scope=30 target-scope=10 add disabled=no distance=1 dst-address=10.254.159.0/24 gateway=10.254.111.29 \ pref-src="" routing-table=main scope=30 target-scope=10 add disabled=no distance=1 dst-address=172.16.152.0/24 gateway=10.254.111.29 \ pref-src="" routing-table=main scope=30 target-scope=10 add disabled=no distance=1 dst-address=172.16.151.60/32 gateway=10.254.111.29 \ pref-src="" routing-table=main scope=30 target-scope=10 add disabled=no distance=1 dst-address=172.16.151.65/32 gateway=10.254.111.29 \ pref-src="" routing-table=main scope=30 target-scope=10 add disabled=no distance=1 dst-address=172.16.151.170/32 gateway=\ 10.254.111.29 pref-src="" routing-table=main scope=30 target-scope=10 add comment=TEST disabled=yes distance=1 dst-address=172.0.5.0/24 gateway=\ 192.168.31.200 routing-table=main scope=30 target-scope=10 add comment=TEST disabled=yes distance=1 dst-address=172.16.100.5/32 gateway=\ 192.168.31.200 routing-table=main scope=30 target-scope=10 add comment=TEST disabled=yes distance=1 dst-address=10.230.115.2/32 gateway=\ 192.168.35.115 routing-table=main scope=30 target-scope=10 add comment=TEST disabled=yes distance=1 dst-address=172.16.100.101/32 \ gateway=192.168.35.115 routing-table=main scope=30 target-scope=10 add comment=TEST disabled=yes distance=1 dst-address=10.230.115.4/32 gateway=\ 192.168.35.115 routing-table=main scope=30 target-scope=10 add comment=TEST disabled=yes distance=1 dst-address=10.230.114.2/32 gateway=\ 192.168.35.115 routing-table=main scope=30 target-scope=10 add comment=TEST disabled=yes distance=1 dst-address=192.168.0.0/24 gateway=\ 192.168.35.115 routing-table=main scope=30 target-scope=10 add comment=TEST disabled=yes distance=1 dst-address=192.168.1.0/24 gateway=\ 192.168.35.115 routing-table=main scope=30 target-scope=10 add comment=TEST disabled=yes distance=1 dst-address=192.168.113.0/24 \ gateway=192.168.35.130 routing-table=main scope=30 target-scope=10 add disabled=no distance=1 dst-address=10.254.128.0/23 gateway=10.254.111.29 \ pref-src="" routing-table=main scope=30 target-scope=10 add comment=CHR-02 disabled=no dst-address=10.213.100.252/32 gateway=\ 192.168.35.252 routing-table=main add disabled=no distance=1 dst-address=192.168.65.0/24 gateway=10.254.111.29 \ pref-src="" routing-table=main scope=30 target-scope=10 add disabled=no distance=1 dst-address=192.168.66.0/24 gateway=10.254.111.29 \ pref-src="" routing-table=main scope=30 target-scope=10 add disabled=no distance=1 dst-address=172.16.0.0/24 gateway=10.254.111.29 \ pref-src="" routing-table=main scope=30 target-scope=10 add disabled=no distance=1 dst-address=10.77.1.0/24 gateway=10.254.111.29 \ pref-src="" routing-table=main scope=30 target-scope=10 add disabled=no distance=1 dst-address=10.77.2.0/24 gateway=10.254.111.29 \ pref-src="" routing-table=main scope=30 target-scope=10 add disabled=no distance=1 dst-address=172.16.151.75/32 gateway=10.254.111.29 \ pref-src="" routing-table=main scope=30 target-scope=10 add comment="Send SZR Link-to-Link via GW Backup" disabled=no distance=1 \ dst-address=10.1.254.0/24 gateway=192.168.35.3 routing-table=main scope=\ 30 target-scope=10 add comment="Route to SRV MGMT via GW Backup" disabled=no distance=1 \ dst-address=10.1.11.0/24 gateway=192.168.35.3 routing-table=main scope=30 \ target-scope=10 add disabled=no distance=1 dst-address=10.200.13.0/31 gateway=192.168.35.3 \ routing-table=main scope=30 target-scope=10 add disabled=no dst-address=10.102.1.0/24 gateway=10.55.44.100 routing-table=\ main add comment=" Chaltyr LAN" dst-address=10.103.3.0/24 gateway=net30-net250-1 add disabled=no distance=1 dst-address=172.16.151.70/32 gateway=10.254.111.29 \ pref-src="" routing-table=main scope=30 target-scope=10 add comment=Cluster disabled=no dst-address=10.101.253.0/24 gateway=\ 192.168.35.3 routing-table=main add comment=Cluster disabled=no distance=1 dst-address=10.101.252.0/24 \ gateway=192.168.35.3 routing-table=main scope=30 target-scope=10 add disabled=no dst-address=10.101.251.0/24 gateway=192.168.35.3 \ routing-table=main add disabled=no distance=1 dst-address=172.16.151.191/32 gateway=\ 10.254.111.29 pref-src="" routing-table=main scope=30 target-scope=10 /ip service set ssh port=55 set telnet disabled=yes port=71 set www disabled=yes set ftp disabled=yes port=1021 set api-ssl port=1024 set api port=9993 /ip traffic-flow set active-flow-timeout=10m cache-entries=512k enabled=yes /ip traffic-flow target add dst-address=10.100.54.28 src-address=192.168.30.1 /ip upnp set enabled=yes /ipv6 nd set [ find default=yes ] advertise-dns=yes /lcd set time-interval=hour /ppp aaa set use-radius=yes /ppp secret add disabled=yes local-address=10.10.50.1 name=sstp_user profile=sstp \ remote-address=10.10.50.2 routes=192.168.31.5/24 service=sstp add local-address=10.10.10.1 name=adi-samara profile=l2tp remote-address=\ 10.10.10.2 service=l2tp add local-address=10.10.10.1 name=vpn_l2tp_dep139_civilsk profile=l2tp \ remote-address=10.10.10.3 service=l2tp add local-address=10.10.10.1 name=vpn_l2tp_drsu_tlt profile=l2tp \ remote-address=10.10.10.4 service=l2tp add local-address=10.10.10.1 name=vpn_l2tp_smk_orenburg profile=l2tp \ remote-address=10.10.10.5 service=l2tp add name=Evgen profile=l2tp_network_users remote-address=10.55.44.11 service=\ l2tp add name=PotolokovaIS profile=l2tp_network_users remote-address=10.55.44.10 add disabled=yes name=ZagudaevNS add disabled=yes name=VolkovEM profile=l2tp_network_users add name=user173 profile=l2tp_network_users add name=Kruchmaleva_O profile=l2tp_network_users remote-address=10.55.44.10 \ service=l2tp add local-address=10.55.44.1 name=Rostov profile=l2tp_network_users \ remote-address=10.55.44.100 service=l2tp add comment=Rostov_obl_Chaltyr local-address=10.55.44.1 name=\ Rostov_obl_Chaltyr profile=l2tp_network_users remote-address=10.55.44.99 \ service=l2tp add comment=Rost_obl local-address=10.55.44.1 name=Uglegorsk profile=\ l2tp_network_users remote-address=10.55.44.101 routes=192.168.88.0/24 \ service=l2tp /radius add address=10.113.100.1 disabled=yes service=ppp timeout=300ms add address=192.168.35.254 service=ppp,login timeout=300ms add address=192.168.35.113 disabled=yes service=login timeout=300ms /radius incoming set accept=yes /routing bfd configuration add disabled=no interfaces=all min-rx=200ms min-tx=200ms /routing bgp connection add disabled=yes instance=bgp-instance-2 local.role=ibgp name=bgp5 \ output.network=BGP_link remote.address=192.168.35.11/32 .as=1 \ routing-table=main templates=temp1 add as=65531 connect=yes disabled=no instance=bgp-instance-1 listen=yes \ local.address=192.168.35.1 .role=ibgp name="GW_Backup(Core)" \ output.network=BGP_link remote.address=192.168.35.3/32 .as=65531 \ routing-table=main templates=Lan-AS vrf=main add disabled=yes instance=bgp-instance-2 local.role=ibgp name=bgp2 \ remote.address=192.168.35.12/32 .as=1 routing-table=main templates=temp1 add connect=yes disabled=no instance=bgp-instance-1 listen=yes local.address=\ 10.213.100.1 .role=ibgp name=CHR-02 remote.address=10.213.100.252/32 .as=\ 65531 templates=Lan-AS add as=65535 connect=yes disabled=no instance=BGP_01 listen=yes \ local.address=10.55.44.1%Loopback_02 .role=ebgp multihop=yes name=\ bgp1-Rostov output.network=Rostov_net remote.address=10.55.44.100/32 .as=\ 65540 routing-table=main templates=65535 /routing filter rule add chain=ospf-out disabled=no rule=\ "if (dst in 10.10.20.0/24) {accept}\r\ \n\r\ \n" /routing ospf interface-template add area=backbone-v2 disabled=no interfaces=vlan30 networks=192.168.30.0/24 \ passive add area=backbone-v2 disabled=no interfaces=vlan31 networks=192.168.31.0/24 \ passive add area=backbone-v2 disabled=no interfaces=vlan33 networks=192.168.33.0/24 \ passive add area=backbone-v2 disabled=no interfaces=vlan35 networks=192.168.35.0/24 \ passive add area=backbone-v2 disabled=no interfaces=vlan37 networks=192.168.37.0/24 \ passive add area=backbone-v2 cost=100 disabled=no interfaces=Loopback_IKEv2 networks=\ 10.10.20.0/24 passive add area=backbone-v2 cost=10 disabled=no interfaces=net30-net121-1 networks=\ 172.30.31.65/32 type=ptp use-bfd=yes add area=backbone-v2 cost=9 disabled=no interfaces=net30-net121-2 networks=\ 172.30.31.97/32 type=ptp use-bfd=yes add area=backbone-v2 cost=9 disabled=no interfaces=net30-net156-2 networks=\ 172.30.31.99/32 type=ptp use-bfd=yes add area=backbone-v2 cost=9 disabled=no interfaces=net30-net56-2 networks=\ 172.30.31.101/32 type=ptp use-bfd=yes add area=backbone-v2 disabled=no interfaces=vlan34 networks=10.200.30.0/24 \ passive add area=backbone-v2 cost=10 disabled=no interfaces=gre-tunnel2 networks=\ 172.30.31.71/32 type=ptp use-bfd=yes add area=backbone-v2 cost=9 disabled=no interfaces=gre-tunnel1 networks=\ 172.30.31.103/32 type=ptp use-bfd=yes add area=backbone-v2 cost=10 disabled=no interfaces=net30-net56-1 networks=\ 172.30.31.69/32 type=ptp use-bfd=yes add area=backbone-v2 cost=10 disabled=no interfaces=net30-net156-1 networks=\ 172.30.31.67/32 type=ptp use-bfd=yes add area=ospf-area-1 cost=50 disabled=no interfaces=ether3 type=ptp add area=ospf-area-1 cost=100 disabled=no interfaces=\ vlan31,vlan33,vlan34,vlan35,vlan37,vlan40,vlan41,vlan55 passive add area=ospf-area-2 comment=LAN cost=15 disabled=yes interfaces=bridge_core \ type=ptp add area=ospf-area-1 cost=100 disabled=yes interfaces=loopback01 passive add area=backbone-v2 disabled=yes interfaces=WG_GW_Mostovik networks=\ 10.254.111.29/32 type=ptp add area=ospf-area-3 comment=Rostov cost=15 disabled=no interfaces=\ l2tp-Rostov type=ptp add area=ospf-area-3 cost=100 disabled=no interfaces=Loopback_02 passive add area=ospf-area-3 cost=15 disabled=no interfaces=l2tp-Uglegorsk type=ptp /routing rule add action=lookup disabled=no dst-address=192.168.0.0/16 table=main add action=lookup disabled=no dst-address=10.0.0.0/8 table=main add action=lookup disabled=no dst-address=172.16.0.0/12 table=main add action=lookup-only-in-table disabled=no routing-mark=wan1 table=wan1 add action=lookup-only-in-table disabled=no routing-mark=wan2 table=wan2 add action=lookup-only-in-table disabled=no src-address=83.69.176.181/32 \ table=wan2 add action=lookup-only-in-table disabled=no src-address=80.234.107.153/32 \ table=wan1 add action=lookup-only-in-table disabled=yes routing-mark=wan1 src-address=\ 80.234.107.153/32 table=wan1 add action=lookup-only-in-table disabled=yes routing-mark=wan1 src-address=\ 83.69.176.181/32 table=wan1 add action=lookup disabled=yes dst-address=10.1.3.0/24 table=main add action=lookup disabled=yes dst-address=10.10.1.0/24 table=main add action=lookup disabled=yes dst-address=10.10.5.0/24 table=main add action=lookup disabled=yes dst-address=172.16.26.0/24 table=main add action=lookup disabled=yes dst-address=172.16.27.0/24 table=main add action=lookup disabled=yes dst-address=172.16.30.0/24 table=main add action=lookup disabled=no src-address=192.168.30.0/24 table=paloalto add action=lookup disabled=no src-address=192.168.31.0/24 table=paloalto add action=lookup disabled=no src-address=192.168.33.0/24 table=paloalto add action=lookup disabled=no src-address=192.168.35.0/24 table=paloalto add action=lookup disabled=no src-address=10.200.30.0/24 table=paloalto add action=lookup disabled=no src-address=172.16.151.0/24 table=paloalto /snmp set contact=it@adi.63.ru enabled=yes location="53.168913, 48.428329" \ src-address=192.168.35.1 trap-community=8XHW4NyLmo trap-version=2 /system clock set time-zone-autodetect=no time-zone-name=Europe/Samara /system identity set name=GW_szr-gw-01 /system logging set 0 disabled=yes topics=info,!caps set 3 action=memory disabled=yes topics=ipsec,debug,!packet add disabled=yes topics=info add disabled=yes prefix=DNS topics=dns,!packet add action=firewall disabled=yes prefix=firewall topics=info,firewall add disabled=yes topics=ppp,debug add disabled=yes topics=route,!packet add topics=critical add action=dude disabled=yes prefix=192.168.35.1/ERROR topics=error add topics=info,!caps add disabled=yes topics=warning add action=dude disabled=yes prefix=192.168.35.1/CRITICAL topics=critical add action=graylog disabled=yes prefix=192.168.35.1/firewall topics=\ info,firewall add action=dude disabled=yes prefix=192.168.35.1/INFO topics=critical add action=graylog disabled=yes prefix=192.168.35.1/error topics=error add action=dude disabled=yes prefix=192.168.35.1/WARNING topics=warning add action=snmp disabled=yes topics=snmp add action=message disabled=yes prefix=GW_Core topics=system,info,account add action=logging disabled=yes topics=script add topics=vrrp add action=ospf disabled=yes topics=ospf add action=bgp disabled=yes topics=bgp add action=radius disabled=yes topics=radius add action=ovpn topics=ovpn add action=l2tp disabled=yes topics=l2tp,debug add action=CHR disabled=yes topics=critical add action=CHR disabled=yes topics=info,!caps add action=logging disabled=yes prefix=192.168.35.1/warning topics=warning add action=CHR topics=error add action=dhcp disabled=yes topics=dhcp,warning add action=graylog disabled=yes prefix=192.168.35.1/info.!caps topics=\ info,!caps add action=dhcp disabled=yes topics=dhcp add action=winsyslog topics=critical add action=winsyslog topics=error add action=winsyslog topics=warning add action=winsyslog topics=account add action=winsyslog topics=system,info add action=echo topics=critical /system ntp client set enabled=yes /system ntp server set broadcast=yes enabled=yes /system ntp client servers add address=185.79.119.2 add address=185.79.119.3 add address=90.154.50.242 add address=90.154.50.243 /system package update set channel=long-term /system scheduler add comment=Backup_to_mail interval=4w2d name=Backup on-event=\ "/system script run Backup_mail" policy=\ ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon \ start-date=2024-07-31 start-time=23:00:00 add comment=Reserv_ISP interval=30s name=ISP on-event=\ "/system script run ISP\r\ \n" policy=ftp,read,write,policy,test start-date=2024-11-19 start-time=\ 15:09:28 add comment=Boot interval=1d name=Boot_ugrade on-event=\ " /system script run Boot_ugrade" policy=\ ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon \ start-date=2024-12-02 start-time=05:59:05 add disabled=yes interval=1m name=log_to_telegram on-event=\ "system/script/run log_to_telegram \r\ \n" policy=\ ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon \ start-date=2025-04-24 start-time=11:26:38 add interval=1d name=Auto-SFTP-Backup-Daily on-event=\ "/system script run sftp-backup-task" policy=read,write,policy,test \ start-date=2026-08-30 start-time=00:00:00 /system script add dont-require-permissions=yes name=Backup_mail owner=admin_adi policy=\ ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source="{\ \r\ \n#Email account settings\r\ \n:local smtpserv [:resolve \"smtp.mail.ru\"];\r\ \n:local EaccountFrom \"mikrotik@adi63.ru\";\r\ \n:local EaccountTo \"mikrotik@adi63.ru\";\r\ \n:local pass \"G5mGug6XEy7mZaxWVDPw\";\r\ \n\r\ \n#Getting information about the system and deleting old backups\r\ \n:log info \"Starting Backup Script...\";\r\ \n:local sysname [/system/identity/get name];\r\ \n:local sysver [system/package/get routeros version];\r\ \n:log info \"Flushing DNS cache...\";\r\ \n/ip dns cache flush;\r\ \n:delay 2;\r\ \n:log info \"Deleting last Backups...\";\r\ \n:foreach i in=[/file find] do={:if ([:typeof [:find [/file get \$i name]\ \_\"\$sysname-backup-\"]]!=\"nil\") do={/file remove \$i}};\r\ \n:delay 2;\r\ \n\r\ \n#Create and E-mail Full Backup\r\ \n:local backupfile (\"\$sysname-backup-\" . [:pick [/system clock get dat\ e] 7 11] . [:pick [/system clock get date] 0 3] . [:pick [/system clock ge\ t date] 4 6] . \".backup\");\r\ \n:log info \"Creating new Full Backup file...\";\r\ \n/system backup save name=\$backupfile;\r\ \n:delay 2;\r\ \n:log info \"Sending Full Backup file via E-mail...\";\r\ \n/tool e-mail send from=\$EaccountFrom to=\$EaccountTo server=\$smtpserv \ port=587 user=\$EaccountFrom password=\$pass tls=starttls file=\$backupfil\ e subject=(\"\$sysname Full Backup (\" . [/system clock get date] . \")\")\ \_body=(\"\$sysname full Backup file see in attachment. RouterOS \$sysver\ \");\r\ \n:delay 5;\r\ \n\r\ \n#Create and E-mail Config Backup\r\ \n:local exportfile (\"\$sysname-backup-\" . [:pick [/system clock get dat\ e] 7 11] . [:pick [/system clock get date] 0 3] . [:pick [/system clock ge\ t date] 4 6] . \".rsc\");\r\ \n:log info \"Creating new Setup Script file...\";\r\ \n/export file=\$exportfile;\r\ \n:delay 2;\r\ \n:log info \"Sending Setup Script file via E-mail...\";\r\ \n/tool e-mail send from=\$EaccountFrom to=\$EaccountTo server=\$smtpserv \ port=587 user=\$EaccountFrom password=\$pass tls=starttls file=\$exportfil\ e subject=(\"\$sysname Config Script Backup (\" . [/system clock get date]\ \_. \")\") body=(\"\$sysname Config Script file see in attachment. RouterO\ S \$sysver\");\r\ \n:delay 5;\r\ \n\r\ \n#Finish\r\ \n:log info \"All System Backups successfully sent. Backup is complete.\";\ \r\ \n}" add dont-require-permissions=yes name=ISP2 owner=admin_adi policy=\ ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source="#\ Main interface name\r\ \n \r\ \n:global MainIf pppoe-wan1\r\ \n \r\ \n#Failover interface name\r\ \n \r\ \n:global RsrvIf ether2-wan2\r\ \n \r\ \n#Minimall RTT for ping\r\ \n:local MinRtt \"00:00:00.200\"\r\ \n \r\ \n#Minimal ping cout for routeros 1 - 3\r\ \n:local PingCount 3\r\ \n \r\ \n#Ping targets\r\ \n:local PingTargets {1.1.1.1; 8.8.4.4; 9.9.9.9; 77.88.8.8}\r\ \n \r\ \n:local host\r\ \n \r\ \n:local MainIfInetOk false\r\ \n \r\ \n:local RsrvIfInetOk false\r\ \n \r\ \n:local MainPings 0\r\ \n \r\ \n:local RsrvPings 0\r\ \n \r\ \n:local MainPingRtt 0\r\ \n \r\ \n:local RsrvPingRtt 0\r\ \n \r\ \n:local MainPingRtt 0\r\ \n \r\ \n:local MainPingRttSumm 0\r\ \n \r\ \n:local RsrvPingRtt 0\r\ \n \r\ \n:local RsrvPingRttSumm 0\r\ \n \r\ \n:local MainPingCont 0\r\ \n:local RsrvPingCont 0\r\ \n \r\ \n:local MainPingProblemNum 0\r\ \n:local RsrvPingProblemNum 0\r\ \n \r\ \nforeach host in=\$PingTargets do={\r\ \n \r\ \n:local res [/ping \$host count=\$PingCount interface=\$MainIf]\r\ \n \r\ \n:set MainPings (\$MainPings + \$res)\r\ \n \r\ \n#:put \$MainPings\r\ \n \r\ \n \r\ \n:local MainPingRttTest [/ping \$host count=\$PingCount interface=\$MainI\ f as-value]\r\ \n \r\ \n:foreach try in=\$MainPingRttTest do={:set MainPingRtt (\$MainPingRtt + \ (\$try->\"time\"))}\r\ \n:set MainPingRtt (\$MainPingRtt / [:len \$MainPingRttTest])\r\ \n:if ((\$MainPingRtt < \$MinRtt)) do={:set \$MainPingRtt 1} else={:set Ma\ inPingRtt 0}\r\ \n#:put \$MainPingRtt\r\ \n:set \$MainPingRttSumm (\$MainPingRttSumm + \$MainPingRtt)\r\ \n:set \$MainPingRtt 0\r\ \n:set \$MainPingCont (\$MainPingCont + 1)\r\ \n \r\ \n:local res [/ping \$host count=\$PingCount interface=\$RsrvIf]\r\ \n \r\ \n:set RsrvPings (\$RsrvPings + \$res)\r\ \n#:put \$RsrvPings\r\ \n \r\ \n:local RsrvPingRttTest [/ping \$host count=\$PingCount interface=\$RsrvI\ f as-value]\r\ \n \r\ \n:foreach try in=\$RsrvPingRttTest do={:set RsrvPingRtt (\$RsrvPingRtt + \ (\$try->\"time\"))}\r\ \n:set RsrvPingRtt (\$RsrvPingRtt / [:len \$RsrvPingRttTest])\r\ \n:if ((\$RsrvPingRtt < \$MinRtt)) do={:set \$RsrvPingRtt 1} else={:set \$\ RsrvPingRtt 0}\r\ \n#:put \$RsrvPingRtt\r\ \n:set \$RsrvPingRttSumm (\$RsrvPingRttSumm + \$RsrvPingRtt)\r\ \n:set \$RsrvPingRtt 0\r\ \n:set \$RsrvPingCont (\$RsrvPingCont + 1)\r\ \n \r\ \n}\r\ \n \r\ \n \r\ \n#:put (\$MainPings + \$MainPingRttSumm)\r\ \n#:put \$MainPingCont\r\ \n#:put \$PingCount\r\ \n#:put \$MainPingRttSumm\r\ \n:set \$MainPingProblemNum ((\$MainPingCont * \$PingCount + \$MainPingCon\ t))\r\ \n#:put \$MainPingProblemNum\r\ \n:set MainIfInetOk ((\$MainPings + \$MainPingRttSumm) >= (\$MainPingProbl\ emNum - \$MainPingCont))\r\ \n \r\ \n#:put (\$RsrvPings + \$RsrvPingRttSumm)\r\ \n:set \$RsrvPingProblemNum ((\$RsrvPingCont * \$PingCount + \$RsrvPingCon\ t))\r\ \n#:put \$RsrvPingProblemNum\r\ \n:set RsrvIfInetOk ((\$RsrvPings + \$RsrvPingRttSumm) >= (\$RsrvPingProbl\ emNum - \$RsrvPingCont))\r\ \n \r\ \n \r\ \n \r\ \n:put \"MainIfInetOk=\$MainIfInetOk\"\r\ \n \r\ \n:put \"RsrvIfInetOk=\$RsrvIfInetOk\"\r\ \n \r\ \n \r\ \n \r\ \nif (!\$MainIfInetOk) do={\r\ \n \r\ \n/log error \"Main gateway down\"\r\ \n \r\ \n}\r\ \n \r\ \n \r\ \n \r\ \nif (!\$RsrvIfInetOk) do={\r\ \n \r\ \n/log error \"Reserve gateway error\"\r\ \n\r\ \n}\r\ \n \r\ \n \r\ \n \r\ \n:local MainGWDistance [/ip route get [find comment=\"MainGW\"] distance]\ \r\ \n \r\ \n:local RsrvGWDistance [/ip route get [find comment=\"RsrvGW\"] distance]\ \r\ \n \r\ \n:put \"MainGWDistance=\$MainGWDistance\"\r\ \n \r\ \n:put \"RsrvGWDistance=\$RsrvGWDistance\"\r\ \n \r\ \n \r\ \n \r\ \nif (\$MainIfInetOk && (\$MainGWDistance >= \$RsrvGWDistance)) do={\r\ \n \r\ \n/ip route set [find comment=\"MainGW\"] distance=1\r\ \n \r\ \n/ip route set [find comment=\"RsrvGW\"] distance=2\r\ \n \r\ \n# Clear VoIP connections\r\ \n \r\ \n/ip firewall connection remove [ find dst-address ~ \".*:5060\" ]\r\ \n \r\ \n/ip firewall connection remove [ find src-address ~ \".*:5060\" ]\r\ \n \r\ \n/log info \"switched to main internet connection\"\r\ \n\r\ \n}\r\ \n \r\ \n \r\ \n \r\ \nif (!\$MainIfInetOk && \$RsrvIfInetOk && (\$MainGWDistance <= \$RsrvGWDi\ stance)) do={\r\ \n \r\ \n/ip route set [find comment=\"MainGW\"] distance=2\r\ \n \r\ \n/ip route set [find comment=\"RsrvGW\"] distance=1\r\ \n \r\ \n# Clear VoIP connections\r\ \n \r\ \n/ip firewall connection remove [ find dst-address ~ \".*:5060\" ]\r\ \n \r\ \n/ip firewall connection remove [ find src-address ~ \".*:5060\" ]\r\ \n \r\ \n/log info \"switched to reserve internet connection\"\r\ \n\r\ \n}" add dont-require-permissions=yes name=Boot_ugrade owner=admin_adi policy=\ ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source=":\ log info \"Checking firmware...\";\ \n/system routerboard\ \n:if ([get current-firmware] != [get upgrade-firmware]) do={\ \n :log info \"Updating firmware\";\ \n upgrade;\ \n # wait a litte before reboot \ \n # :delay 30s;\ \n /system reboot;\ \n } else={\ \n :log info \"No update.\"\ \n }" add dont-require-permissions=no name=ISP owner=admin_adi policy=\ ftp,read,write,policy,test source="#Main interfacename\r\ \n:global MainIf pppoe-wan1\r\ \n#Failoverinterfacename\r\ \n:global RsrvIf ether2-wan2\r\ \n:local PingCount 5\r\ \n:local PingTargets {77.88.8.8; 8.8.4.4; 1.1.1.1}\r\ \n:local host\r\ \n:local MainIfInetOk false\r\ \n:local RsrvIfInetOk false\r\ \n:local MainPings 0\r\ \n:local RsrvPings 0\r\ \nforeach host in=\$PingTargets do={\r\ \n:local res [/ping \$host count=\$PingCount interface=\$MainIf]\r\ \n:set MainPings (\$MainPings + \$res)\r\ \n:local res [/ping \$host count=\$PingCount interface=\$RsrvIf]\r\ \n:set RsrvPings (\$RsrvPings + \$res)\r\ \n}\r\ \n:set MainIfInetOk (\$MainPings >= 1)\r\ \n:set RsrvIfInetOk (\$RsrvPings >= 1)\r\ \n:put \"MainIfInetOk=\$MainIfInetOk\"\r\ \n:put \"RsrvIfInetOk=\$RsrvIfInetOk\"\r\ \nif (!\$MainIfInetOk) do={\r\ \n/log error \"Main gateway down\"\r\ \n}\r\ \n\r\ \nif (!\$RsrvIfInetOk) do={\r\ \n/log error \"Reserve gateway error\"\r\ \n}\r\ \n:local MainGWDistance [/ip route get [find comment=\"MainGW\"] distance]\ \r\ \n:local RsrvGWDistance [/ip route get [find comment=\"RsrvGW\"] distance]\ \r\ \n:put \"MainGWDistance=\$MainGWDistance\"\r\ \n:put \"RsrvGWDistance=\$RsrvGWDistance\"\r\ \nif (\$MainIfInetOk&& (\$MainGWDistance >= \$RsrvGWDistance)) do={\r\ \n/ip route set [find comment=\"MainGW\"] distance=1\r\ \n/ip route set [find comment=\"RsrvGW\"] distance=2\r\ \n# Clear VoIP connections\r\ \n/ip firewall connection remove [finddst-address ~ \".*:5060\" ]\r\ \n/ip firewall connection remove [findsrc-address ~ \".*:5060\" ]\r\ \n/log info \"switched to main internet connection\"\r\ \n}\r\ \nif (!\$MainIfInetOk&& \$RsrvIfInetOk&& (\$MainGWDistance<= \$RsrvGWDista\ nce)) do={\r\ \n/ip route set [find comment=\"MainGW\"] distance=2\r\ \n/ip route set [find comment=\"RsrvGW\"] distance=1\r\ \n# Clear VoIP connections\r\ \n/ip firewall connection remove [finddst-address ~ \".*:5060\" ]\r\ \n/ip firewall connection remove [findsrc-address ~ \".*:5060\" ]\r\ \n/log info \"switched to reserveinternet connection\"\r\ \n}" add dont-require-permissions=yes name=log_to_telegram owner=admin_adi policy=\ ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source=":\ global lastTime;\r\ \n:global output;\r\ \n:global ChatId;\r\ \n:global TelegramApi;\r\ \n:set TelegramApi 7674144626:AAEztVuwgKHZYuIezjs1UkcDe9hB3VA_EDA\r\ \n:set ChatId -1002905807726\r\ \n:global mtIdentity [/system identity get name];\r\ \n\r\ \n:local LogGet [ :toarray [ /log find topics~\"system\" || message~\"logi\ n failure\" || message~\"logged\" || message~\"connected\" || message~\"[F\ f|]ailure\" ]];\r\ \n\r\ \n:local LogtLineCount [ :len \$LogGet ];\r\ \n\r\ \nif (\$LogtLineCount > 0) do={\r\ \n:local currentTime \"\$[ /log get [ :pick \$LogGet (\$LogtLineCount -1) \ ] time ]\";\r\ \n:if ([:len \$currentTime] = 10 ) do={\r\ \n:set currentTime [ :pick \$currentTime 0 10 ];\r\ \n}\r\ \n:set output \"\$currentTime - \$[/log get [ :pick \$LogGet (\$LogtLineCo\ unt-1) ] message]\";\r\ \n:if (([:len \$lastTime] < 1) || (([:len \$lastTime] > 0) && (\$lastTime \ != \$currentTime))) do={\r\ \n:set lastTime \$currentTime ;\r\ \n:tool fetch url=(\"https://api.telegram.org/bot\$TelegramApi/sendmessage\ \\\?chat_id=\$ChatId&text=%F0%9F%93%A1\\\"\$mtIdentity\\\" : \$output\") \ keep-result=no \r\ \n}\r\ \n\r\ \n}" add dont-require-permissions=no name=sftp-backup-task owner=pvl@dmin policy=\ read,write,policy,test source="\ \n# IP- SFTP-\ \n:local sftpUser \"backup_sftp\"\ \n:local sftpPass \"backup_sftp\"\ \n:local sftpIp \"192.168.35.135\"\ \n:local sftpPort \"22\"\ \n\ \n# \ \n:local ds [/system clock get date]\ \n:local ts [/system clock get time]\ \n\ \n# , , \ \n:local hh [:pick \$ts 0 2]\ \n:local mm [:pick \$ts 3 5]\ \n:local ss [:pick \$ts 6 8]\ \n:local timeFormatted (\$hh . \"-\" . \$mm . \"-\" . \$ss)\ \n\ \n# , \ \n:local year \"\"\ \n:local month \"\"\ \n:local day \"\"\ \n\ \n# : (RouterOS v7), YYYY-MM-DD\ \n# mmm/dd/yyyy (RouterOS v6)\ \n:if ([:find \$ds \"-\"] >= 0) do={\ \n :set year [:pick \$ds 0 4]\ \n :set month [:pick \$ds 5 7]\ \n :set day [:pick \$ds 8 10]\ \n} else={\ \n :set year [:pick \$ds 7 11]\ \n :set month [:pick \$ds 0 3]\ \n :set day [:pick \$ds 4 6]\ \n}\ \n:local dateFormatted (\$year . \"-\" . \$month . \"-\" . \$day)\ \n\ \n# (Identity)\ \n:local sysName [/system identity get name]\ \n\ \n# \ \n:local nameBackup (\$sysName . \"_\" . \$dateFormatted . \"_\" . \$timeF\ ormatted . \".backup\")\ \n:local nameRsc (\$sysName . \"_\" . \$dateFormatted . \"_\" . \$timeForm\ atted . \".rsc\")\ \n\ \n# ( \ \n/system backup save name=\$nameBackup dont-encrypt=yes\ \n/export file=\$nameRsc\ \n\ \n# 30 , -\ \n:local checkCount 0\ \n:while ([/file find name=\$nameRsc] = \"\" && \$checkCount < 30) do={\ \n :delay 1s\ \n :set checkCount (\$checkCount + 1)\ \n}\ \n\ \n# : , \ \n:do {\ \n # SFTP-\ \n /tool fetch upload=yes mode=sftp user=\$sftpUser password=\$sftpPass\ \_port=\$sftpPort address=\$sftpIp src-path=\$nameBackup dst-path=\$nameBa\ ckup\ \n /tool fetch upload=yes mode=sftp user=\$sftpUser password=\$sftpPass\ \_port=\$sftpPort address=\$sftpIp src-path=\$nameRsc dst-path=\$nameRsc\ \n # MikroTik \ \n :log info \"SFTP Backup: Files successfully uploaded to server.\"\ \n} on-error={\ \n # , \ \n :log error \"SFTP Backup: Failed to upload files to server!\"\ \n}\ \n\ \n# 2 \ \n:delay 2s\ \n\ \n# MikroTik, -\ \n:if ([/file find name=\$nameBackup] != \"\") do={ /file remove [find nam\ e=\$nameBackup] }\ \n:if ([/file find name=\$nameRsc] != \"\") do={ /file remove [find name=\ \$nameRsc] }\ \n" /tool bandwidth-server set authenticate=no max-sessions=10 /tool e-mail set certificate-verification=no from=mikrotik@adi63.ru port=465 server=\ smtp.mail.ru tls=yes user=mikrotik@adi63.ru /tool mac-server set allowed-interface-list=mgmt_list /tool mac-server mac-winbox set allowed-interface-list=mgmt_list /tool netwatch add comment=ISP1 disabled=no down-script="tool fetch url=\"https://api.telegra\ m.org/bot7674144626:AAEztVuwgKHZYuIezjs1UkcDe9hB3VA_EDA/sendMessage\?chat_\ id=5286090138&text=GW_Core ISP1 down\" output=none" host=8.8.8.8 \ http-codes="" interval=1m name=ISP1 src-address=80.234.107.153 \ test-script="" timeout=1s type=simple up-script="tool fetch url=\"https://\ api.telegram.org/bot7674144626:AAEztVuwgKHZYuIezjs1UkcDe9hB3VA_EDA/sendMes\ sage\?chat_id=5286090138&text=GW_Core ISP1 up\" output=none" add comment=ISP2 disabled=no down-script="tool fetch url=\"https://api.telegra\ m.org/bot7674144626:AAEztVuwgKHZYuIezjs1UkcDe9hB3VA_EDA/sendMessage\?chat_\ id=5286090138&text=GW_Core ISP2 down\" output=none" host=77.88.8.1 \ http-codes="" interval=1m name=ISP2 src-address=83.69.176.181 \ test-script="" timeout=1s type=simple up-script="tool fetch url=\"https://\ api.telegram.org/bot7674144626:AAEztVuwgKHZYuIezjs1UkcDe9hB3VA_EDA/sendMes\ sage\?chat_id=5286090138&text=GW_Core ISP2 up\" output=none" /tool romon set enabled=yes id=48:8F:5A:C1:03:0E /tool romon port set [ find default=yes ] forbid=yes add interface=ether4 add interface=ether5 add interface=ether6 add interface=ether7 add interface=sfp-sfpplus1 add interface=sfp-sfpplus2 add interface=ether3 /tool sniffer set file-limit=30720KiB file-name=full_30mb_sniff.pcap filter-ip-address=\ 192.168.35.167/32 filter-operator-between-entries=and filter-stream=yes \ memory-limit=10KiB streaming-enabled=yes streaming-server=192.168.35.122 /tool traffic-monitor add disabled=yes interface=vlan35 name=tmon1 /user aaa set use-radius=yes /user-manager set certificate=*0 enabled=yes /user-manager router add address=10.113.100.1 name=router1 add address=192.168.112.2 disabled=yes name=router2