Two gateways on same network



Hi guys,

I'm setting up a Debian antispam mail relay. I have two gateways on the
network (two separate internet connections):

4mbit ADSL = 192.168.1.6
128k line = 192.168.1.1

Both have NAT firewalls, both forward port 25 to the Debian box. I'm
trying to do the following:

Always use 192.168.1.6 as the default gateway, except when:

1. Connections are received via 192.168.1.1. Because if it doesn't
reply via the same gateway, the connection just times out.

2. 192.168.1.6'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 192.168.1.1 as the gateway, regardless.

If the second network card is not necessary, that would be OK too.

Thanks
Hans


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: How many differences, categories?
    ... >> relocate the pattern by a process similar to the one we used to ... Network logic is counterintuitive. ... In theory the limit to the number of connections per node ... As Kauffman varied this connectivity parameter in his generic networks, ...
    (sci.cognitive)
  • Re: win XP Pro SP2 with latest RDP. Workgroup vs. domain
    ... I do not need to setup RDP port forwarding in the Belkin router. ... the firewall did have in the exceptions screen "Remote Desktop" ... think that the "Allow remote connections RDP" and/or having the firewall RDP ... for network connections. ...
    (microsoft.public.windowsxp.work_remotely)
  • Re: [Fwd: Re: Mainframe not a good architecture for interactive was Re: What is the future of COBOL
    ... programmers do not understand the inner working of CICS and that CICS ... does not keep track of ALL terminals in a mainframe network. ... >> to a Web Server, this means that for an equal number of clients, a Web ... >>server is keeping track of 5 times the connections. ...
    (comp.lang.cobol)
  • Re: Problem for physicalist evolutionists
    ... does not a neural network make. ... potential to have an FPP, and the FPP will be some part of that ... along any of those network connections to "assemble" the picture. ...
    (talk.origins)
  • Re: Problem for physicalist evolutionists
    ... does not a neural network make. ... they do no need to communicate anything ... along any of those network connections to "assemble" the picture. ...
    (talk.origins)