Hi everyone
It seems both the policy-routing and using VRF (routing-test package) don't work when there isn't no routing in the main routing table. See the following example on what happens:
First set some ips:
/ip address
add address=192.168.0.1/24 broadcast=192.168.0.255 comment="" disabled=no interface=ether1 network=192.168.0.0
add address=10.0.0.1/24 broadcast=10.0.0.255 comment="" disabled=no interface=ether2 network=10.0.0.0
Let's assume there are two routers, 192.168.0.255 and 10.0.0.255.
192.168.0.0 is the untrust side and 10.0.0.0 is the trust side.
there is only routing in the 10.0.0.0/0 on the trust side.
So let's add some routing-tags
/ip firewall mangle
add action=mark-routing chain=output new-routing-mark=trust src-address=10.0.0.1
add action=mark-routing chain=output new-routing-mark=untrust src-address=192.168.0.1
Now, let's add some routing for internet.
/ip route
add dst-address=0.0.0.0/0 gateway=192.168.0.255 routing-mark=untrust
test it:
/ping 4.2.2.4 src-address=192.168.0.1
no route to host
????
Ok, let's add a default route:
/ip route add 10.0.0.255
/ping 4.2.2.4 src-address=192.168.0.1
WORKS
So unless there is a routing entry in the main-table it will not use the routing entry with correct routing-mark. Is there anyway to get around this problem? It seems to be the same problem for VRF in that it need a default route without a routing-mark in the routing table to actually check the correct routes (the ones with the routing-marks).
Is there any workaround for this? Since if the router that the default route is pointing to in the route table (with no routing-marks) goes down that route goes down and the routes with different routing-marks that should be working stop working.
br
Hippo