connect 2 networks with different gateways

Hello , i have a pc - mikrotik router with 5 interfaces .
i have 3 networks
network 1 pc lan : 192.168.56.0/24
network 2 voip : 172.17.10.0/24
network 3 wlan : 10.0.0.0/24

i have 2 different gateways
gateway 1 adsl : ppptp server
gateway 2 sdsl : static ip

network 2 has gateway 2
network 1 and 3 have the same network 1

i can ping from network 1 to 3 but i can not ping from 2 to 3 or to 1.


Can someone help me please ?

You’re presumably using routing marks? Change the mangle rules to not mark traffic to local networks so that the routing mark doesn’t get applied, and doesn’t overrule the routing table’s directly connected networks.

Address lists can be useful for that:

/ip firewall address-list
add list=local-networks address=192.168.56.0/24
add list=local-networks address=172.17.10.0/24
add list=local-networks address=10.0.0.0/24

Then add something like below, and move it above the routing mark rules:

/ip firewall mangle
add chain=[chain you mark routing in] src-address-list=local-networks dst-address-list=local-networks action=accept

Of course that’s a wild guess and stab in the dark since you sadly give no actual details to work with. If the guess is wrong - it probably is - post the output of “/ip address print detail”, “/ip route print detail”, “/interface print”, “/ip firewall export”, and an accurate network diagram.