From owner-freebsd-questions@FreeBSD.ORG Sat Jun 25 11:38:23 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AAA5B16A41C for ; Sat, 25 Jun 2005 11:38:23 +0000 (GMT) (envelope-from dgl@kirk.dlee.org) Received: from sccrmhc14.comcast.net (sccrmhc14.comcast.net [204.127.202.59]) by mx1.FreeBSD.org (Postfix) with ESMTP id 677EC43D48 for ; Sat, 25 Jun 2005 11:38:23 +0000 (GMT) (envelope-from dgl@kirk.dlee.org) Received: from kirk.dlee.org ([69.143.16.144]) by comcast.net (sccrmhc14) with ESMTP id <20050625113822014004gbaee>; Sat, 25 Jun 2005 11:38:22 +0000 Received: from kirk.dlee.org (dgl@localhost.dlee.org [127.0.0.1]) by kirk.dlee.org (8.12.11/8.12.11) with ESMTP id j5PBcLim046377; Sat, 25 Jun 2005 07:38:21 -0400 (EDT) (envelope-from dgl@kirk.dlee.org) Received: (from dgl@localhost) by kirk.dlee.org (8.12.11/8.12.11/Submit) id j5PBcKag046376; Sat, 25 Jun 2005 07:38:20 -0400 (EDT) (envelope-from dgl) Date: Sat, 25 Jun 2005 07:38:20 -0400 From: Doug Lee To: freebsd-questions@freebsd.org Message-ID: <20050625113819.GI950@kirk.dlee.org> Mail-Followup-To: Doug Lee , freebsd-questions@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Organization: BART Group User-Agent: Mutt/1.5.9i Subject: Is this a safe way to multi-home a mail server? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Jun 2005 11:38:23 -0000 I have a machine on two DSL networks: a /29 and a /28 provided by different ISPS (why is a long story). The machine acts as a mail server (sendmail) as well as a NAT server for an internal network. Both DSL nets arrive at one interface card, and the LAN is on the other card. I have added one of the DSL nets as the main net for the external interface and the other DSL net as an alias via ifconfig. Two questions: 1. Can I have both host IPs (one from each DSL net) as A records in DNS for the mail server's name--e.g., mail.my.domain IN A 1.2.3.4 mail.my.domain IN A 5.6.7.8 and expect mail to arrive at the machine regardless of which network is working at any given time? (Part of the "long story" is that we're having serious trouble with one or the other network at various times and are trying, temporarily at least, to stay afloat by using whichever is better at the moment.) Both host IPs have correct (identical) reverse DNS. 2. Is there a way, via routed or other means, to cause the machine to figure out automatically which net to use for "default" traffic? It would be wonderful if natd could keep up with this too, but there I suspect I'm asking for the moon... Thanks much for any responses. Please Cc me. -- Doug Lee dgl@dlee.org http://www.dlee.org BART Group doug@bartsite.com http://www.bartsite.com "I before E, except after C, or when sounded like A, as in neighbor and weigh, except for when weird foreign concierges seize neither leisure nor science from the height of society."