Может пригодиться… Оборудование и конфигурация:
RB: 951G-2HnD
RouterOs: 6.39.2
Ether1=WAN1: динамический IP, 10 Мбит/с
Ether2=WAN2: динамический IP, 6 Мбит/с
Ether3=LAN: локальная сеть
Ether4=выключен
Ether5=выключен
/ip firewall mangle
add action=mark-connection chain=prerouting comment=VPN TRAFFIC in-interface=all-ppp new-connection-mark=mc_vpn passthrough=yes
add action=mark-routing chain=prerouting connection-mark=mc_vpn new-routing-mark=mr_vpn passthrough=no
/ip route
add check-gateway=ping distance=1 gateway=WAN1 routing-mark=“to_WAN1, mr_vpn”
add check-gateway=ping distance=1 gateway=WAN2 routing-mark=“to_WAN2”
/ip firewall nat
add action=masquerade chain=srcnat out-interface=LAN
RB: 951G-2HnD
RouterOs: 6.39.2
Ether1=WAN1: динамический IP, 10 Мбит/с
Ether2=WAN2: динамический IP, 6 Мбит/с
Ether3=LAN: локальная сеть
Ether4=выключен
Ether5=выключен
/ip firewall mangle
add action=mark-connection chain=prerouting comment=VPN TRAFFIC in-interface=all-ppp new-connection-mark=mc_vpn passthrough=yes
add action=mark-routing chain=prerouting connection-mark=mc_vpn new-routing-mark=mr_vpn passthrough=no
/ip route
add check-gateway=ping distance=1 gateway=WAN1 routing-mark=“to_WAN1, mr_vpn”
add check-gateway=ping distance=1 gateway=WAN2 routing-mark=“to_WAN2”
/ip firewall nat
add action=masquerade chain=srcnat out-interface=LAN
