Hi all.
I am planning a multihomed configuration for one of my servers. The main reason is that I want to be able to send mail thru the relays of both my ISPs.
My ethX's are as follows:
LAN1: 10.0.1.10 - GW1 10.0.1.1
LAN2: 192.168.1.15 - GW2 192.168.1.1
I want to keep GW1 as my primary and use GW2
only to connect to that ISP's mail relay.
So I tried to configure the routes like this:
Code:
route add default gw 10.0.1.1
route add -host MAILRELAY2 gw 192.168.1.1
In theory this should all work unfortunately the DNS queries for hostnames seem to go where they shouldn't, and many times this results in connections to the mailservers timing out.
What am I doing wrong?