I have a problem with policy routing
This is the router configuration:
Code: Select all
/ip address
add interface=ether1 address=200.10.x.2/24
add interface=ether2 address=200.20.x.2/24
/ip route
add dst-address=0.0.0.0/0 gateway=200.10.x.1 pref-src=200.10.x.2
add dst-address=0.0.0.0/0 gateway=200.20.x.1 pref-src=200.20.x.2 routing-mark=policy
/ip firewall mangle
add chain=output action=mark-routing new-routing-mark=policy src-address=200.20.x.2
Why the policy routing doesn't work?
Thanks in advance.