Hi
I have already setup load balancing between my to WAN links and it is working great. What I now need is to direct certain traffic to a specific WAN link, what is the best way of doing this? What I mean is do I add another mangle rule and do a jump to the connection mark and if so do I add it before the mangle rules or is there a better way of doing it? At the moment I am not so worried about load balancing this traffic but that would be nice later.
So my rules are:
/ip firewall mangle
add action=accept chain=prerouting dst-address=192.168.x.x/24 in-interface=
bridge1
add action=accept chain=prerouting dst-address=217.30.x.x/29 in-interface=
bridge1
add action=mark-connection chain=prerouting connection-mark=no-mark
in-interface=BTInfinity new-connection-mark=BTInfinity_conn passthrough=
yes
add action=mark-connection chain=prerouting connection-mark=no-mark
in-interface=BTLeased new-connection-mark=BTLeased_conn passthrough=yes
add action=mark-connection chain=prerouting connection-mark=no-mark
dst-address-type=!local in-interface=bridge1 new-connection-mark=
BTInfinity_conn passthrough=yes per-connection-classifier=
both-addresses:2/0
add action=mark-connection chain=prerouting connection-mark=no-mark
dst-address-type=!local in-interface=bridge1 new-connection-mark=
BTLeased_conn passthrough=yes per-connection-classifier=
both-addresses:2/1
add action=mark-routing chain=prerouting connection-mark=BTInfinity_conn
in-interface=bridge1 new-routing-mark=to_infinity passthrough=yes
add action=mark-routing chain=prerouting connection-mark=BTLeased_conn
in-interface=bridge1 new-routing-mark=to_leased passthrough=yes
add action=mark-routing chain=output connection-mark=BTInfinity_conn
new-routing-mark=to_infinity
add action=mark-routing chain=output connection-mark=BTLeased_conn
new-routing-mark=to_leased
Do I add a rule after this one
add action=mark-connection chain=prerouting connection-mark=no-mark
in-interface=BTLeased new-connection-mark=BTLeased_conn passthrough=yes
such as
add action=mark-routing chain=prerouting protocol=22 connection-mark=BTLeased_conn
in-interface=bridge1 new-routing-mark=to_leased
with no passthrough
Or can I just do a jump to and jump to the leased line output?
Thanks
Adrian