[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Two gateways on same network

On Thu, Dec 07, 2006 at 04:57:03PM +0200, Hans du Plooy wrote:
> Hi guys,
> I'm setting up a Debian antispam mail relay.  I have two gateways on the
> network (two separate internet connections):
> 4mbit ADSL =
> 128k line =
> Both have NAT firewalls, both forward port 25 to the Debian box.  I'm
> trying to do the following:
> Always use as the default gateway, except when:
> 1.  Connections are received via  Because if it doesn't
> reply via the same gateway, the connection just times out.
> 2.'s connection goes down, for whatever reason.
> So basically the leased line would be a backup MX.
> I have put two network cards in, both with IPs on the same network, but
> with different gateways specified in /etc/network/interfaces.  But for
> some reason both try to use as the gateway, regardless.
> If the second network card is not necessary, that would be OK too.
Use shorewall and read the Multi-ISP howto available on



Roberto C. Sanchez

Reply to: