[SOLVED] Policy Based Routing test with ipchicken.com
Posted: Sun Oct 16, 2011 4:26 am
So I've got a location with two gateways. I want to route traffic to a certain destination through only one of the gateways. I'm testing this with ipchicken.com because it should be a good indication of whether I've got it working or not. Here's the setup that's not working:
I thought that would make anything coming from the 10.0.0.0/24 network with the routing mark ipchx go through the 10.0.24.1 gateway. The mangle rule is getting hit but I've still got the ip of my primary gateway. help?
Code: Select all
/ip firewall mangle
add action=mark-routing chain=prerouting content=ipchicken.com disabled=no \
dst-port=80 new-routing-mark=ipchx passthrough=yes protocol=tcp
Code: Select all
/ip route rule
add action=lookup disabled=no routing-mark=ipchx src-address=10.0.0.0/24 \
table=ipchx
Code: Select all
/ip route
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=10.0.24.1 \
routing-mark=ipchx scope=30 target-scope=10