Working with multiple Default Gateways

Hi guys, this is the scenario:

We have two IPS, and may have more ISP1 is general internet and ISP’s 2 - x are voip providers.

so naturally we make a default gateway as 0.0.0.0/0 in the route section to point to ISP1.

Now… we have just been giving ISP2’s ip block from them, a X.224/29, so i assign on of the IP’s (.225) to the MKT (to use as a default gateway), and one to the actual server (.227). That server already has an IP form ISP1. But, I have not changed the Default Gateway on the actual server to use the new .225 as the GW.

This configuration seems to work work perfectly for SSH, and HTTP, but I get unreplied packets in the “Connections” when registering SIP, (of course phones do not register)

In the Connections tab, the addresses are all exactly the same and correct, but SIP doesn’t work, where SSH and HTTP do.

Is there something i can do to fix this?

(If i was to guess, it seems that packets are mistakenly being sent back out via the default gateway (0.0.0.0/0), when that is not the correct route back to the source.)

Don’t know your exact problem , but the solution. :sunglasses: Works for me. Create rule in mangle and mark all sip packets or sip server destination address. Then mark all connections using packet mark as qualifier and then use connection mark as qualifier to crate routing mark. Create route using routing mark, using ISP2. Also important, use in interface as qualifier in all three of above mentioned rules.