Конфігурація DUAL-WAN на ROS7 з рукурсивною маршрутизацією і policy based routing dual-wan.rsc

# feb/09/2022 07:27:19 by RouterOS 7.2rc3
# software id =
#
/routing table
add disabled=no fib name=https
/ip address
add address=10.0.0.2/30 interface=ether1 network=10.0.0.0
add address=172.16.0.2/30 interface=ether2 network=172.16.0.0
/ip dns
set servers=1.1.1.1
/ip firewall mangle
add action=mark-routing chain=prerouting dst-port=443 new-routing-mark=https \
passthrough=no protocol=tcp
/ip firewall nat
add action=masquerade chain=srcnat out-interface=ether1
add action=masquerade chain=srcnat out-interface=ether2
/ip route
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=8.8.8.8 pref-src=\
0.0.0.0 routing-table=main scope=30 suppress-hw-offload=no target-scope=\
11
add disabled=no distance=2 dst-address=0.0.0.0/0 gateway=172.16.0.1 pref-src=\
0.0.0.0 routing-table=main scope=30 suppress-hw-offload=no target-scope=\
10
add disabled=no distance=1 dst-address=8.8.8.8/32 gateway=10.0.0.1 pref-src=\
0.0.0.0 routing-table=main scope=10 suppress-hw-offload=no target-scope=\
10
add disabled=no dst-address=0.0.0.0/0 gateway=172.16.0.1 routing-table=https \
suppress-hw-offload=no
/system identity
set name=border