Page 1 of 1

How to implement mark-routing in bridge?

Posted: Sat Sep 29, 2012 12:33 am
by clarksheng
Hey guys, what I want to do is applying mark-routing (mangle) to the data flow in bridge which has already activated 'use ip firewall' function. however, I can see the data has been captured by mangle rules, but still not re-routed.
so,..... is it possible to do that ???

Re: How to implement mark-routing in bridge?

Posted: Fri Dec 21, 2012 4:26 am
by 200120022003
i also face the problem. all packet captured but not re-route, any help ?
/interface bridge
add admin-mac=00:00:00:00:00:00 ageing-time=5m arp=enabled auto-mac=yes \
    comment="" disabled=no forward-delay=15s l2mtu=1524 max-message-age=20s \
    mtu=1500 name=bridgepccw priority=0x8000 protocol-mode=none \
    transmit-hold-count=6
/interface bridge port
add bridge=bridgepccw comment="" disabled=no edge=auto external-fdb=auto \
    horizon=none interface=ether4 path-cost=10 point-to-point=auto priority=\
    0x80
add bridge=bridgepccw comment="" disabled=no edge=auto external-fdb=auto \
    horizon=none interface=ether5 path-cost=10 point-to-point=auto priority=\
    0x80
/interface bridge settings
set use-ip-firewall=yes use-ip-firewall-for-pppoe=no \
    use-ip-firewall-for-vlan=no
/ip firewall mangle
add action=mark-routing chain=prerouting comment="" disabled=no \
    new-routing-mark="[rmark] kddi" passthrough=no src-address=223.197.15.101
/ip route
add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=\
    "[pptp] kddi" routing-mark="[rmark] kddi" scope=30 target-scope=10

How to implement mark-routing in bridge?

Posted: Fri Dec 21, 2012 4:31 am
by cbrown
This might be a good place to start.

http://wiki.mikrotik.com/wiki/Manual:Packet_Flow

Re: How to implement mark-routing in bridge?

Posted: Fri Dec 21, 2012 4:47 am
by 200120022003
i am not familar with router, i really do not know how to start
without bridging, it can easy to re-route with ip route and mangle rule

How to implement mark-routing in bridge?

Posted: Fri Dec 21, 2012 4:51 am
by cbrown
Let's start with what you are trying to achieve. Maybe what you think you need to do isn't best for your situation.