I have two gateways and I’m trying to redirect P2P traffic by one and the other traffic by another.
I’m using version 2.9-rc6
packet mangle print is:
[admin@MikroTik] ip firewall mangle> print
Flags: X - disabled, I - invalid, D - dynamic
0 chain=forward p2p=all-p2p action=mark-connection
new-connection-mark=p2p_conn
1 chain=forward connection-mark=p2p_conn action=mark-packet
new-packet-mark=p2p
2 chain=forward packet-mark=p2p action=mark-routing
new-routing-mark=traficoP2P
and route table :
[admin@MikroTik] ip route> print detail
Flags: X - disabled, A - active, D - dynamic, C - connect, S - static, r - rip, b - bgp, o - ospf
0 ADC dst-address=10.5.50.0/24 prefsrc=10.5.50.1 interface=ether3 scope=10 target-scope=0
1 ADC dst-address=192.168.1.0/24 prefsrc=192.168.1.58 interface=ether1 scope=10 target-scope=0
2 ADC dst-address=192.168.2.0/24 prefsrc=192.168.2.100 interface=ether2 scope=10 target-scope=0
3 A S dst-address=0.0.0.0/0 gateway=192.168.1.1 interface=ether1 gateway-state=reachable scope=255 target-scope=10
4 A S dst-address=0.0.0.0/0 gateway=192.168.2.1 interface=ether2 gateway-state=reachable scope=255 target-scope=10 routing-mark=traficoP2P
It seems the traffic is marked, but when I put the new gateway in the route table nothing is done.
What do you thing about?