I recently created some mangle rules because I never could access from outside using the secondary Internet connections
I have one ISP in WAN1 interface and the other in WAN5 interface
If I create the rute, using the default gateway as default gateway it works, but if I set directly WAN5 (the interface) as gateway, it does not work.
Both ISPs give me dynamic IPs and I cant change this, so if I set the route using dg, it wont work when the dg be different
Just in case I attach the mangle rules and the route created with the interface as gateway:
192.168.1.0/24 is the local network
Code: Select all
/ip firewall mangle add action=mark-connection chain=prerouting connection-mark=no-mark in-interface=WAN1 new-connection-mark=WAN1_conn passthrough=yes add action=mark-connection chain=prerouting connection-mark=no-mark in-interface=WAN5 new-connection-mark=WAN5_conn passthrough=yes add action=mark-routing chain=prerouting connection-mark=WAN1_conn dst-address=!192.168.1.0/24 in-interface-list=!WANs new-routing-mark=to__WAN1 \ passthrough=yes src-address=192.168.1.0/24 add action=mark-routing chain=prerouting connection-mark=WAN5_conn dst-address=!192.168.1.0/24 in-interface-list=!WANs new-routing-mark=to__WAN5 \ passthrough=yes src-address=192.168.1.0/24 add action=mark-routing chain=output connection-mark=WAN1_conn dst-address=!192.168.1.0/24 new-routing-mark=to__WAN1 passthrough=yes add action=mark-routing chain=output connection-mark=WAN5_conn dst-address=!192.168.1.0/24 new-routing-mark=to__WAN5 passthrough=yes /ip route add check-gateway=ping distance=1 gateway=WAN5 routing-mark=to__WAN5
The route appears as active (in black color) but it does not work.