From owner-freebsd-current Sun Aug 6 15:29:32 1995 Return-Path: current-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.11/8.6.6) id PAA12255 for current-outgoing; Sun, 6 Aug 1995 15:29:32 -0700 Received: from server.netcraft.co.uk (server.netcraft.co.uk [194.72.238.2]) by freefall.cdrom.com (8.6.11/8.6.6) with ESMTP id PAA12247 for ; Sun, 6 Aug 1995 15:29:25 -0700 Received: (from paul@localhost) by server.netcraft.co.uk (8.6.11/8.6.9) id XAA24522 for freebsd-current@FreeBSD.ORG; Sun, 6 Aug 1995 23:29:02 +0100 From: Paul Richards Message-Id: <199508062229.XAA24522@server.netcraft.co.uk> Subject: Re: workaround for talk's address problem To: freebsd-current@FreeBSD.ORG Date: Sun, 6 Aug 1995 23:29:00 +0100 (BST) In-Reply-To: <199508061603.SAA07779@uriah.heep.sax.de> from "J Wunsch" at Aug 6, 95 06:03:27 pm Reply-to: paul@FreeBSD.ORG X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Content-Length: 1625 Sender: current-owner@FreeBSD.ORG Precedence: bulk In reply to J Wunsch who said > > The correct solution would be asking the routing socket to see which > interface address must be used to get in contact with the remote peer. > Unfortunately, the interface to the routing socket is somewhat ugly to > use and it requires root privileges. Hence i'm suggesting the > following workaround. It introduces an option `-a' followed by a > (dotted-quad) address to use for the negotiation. This address will > be checked against the address list as returned from gethostbyname() > to avoid abusing foreign addresses. I want to add an option like this to everything. I'm running a multi-homed host that has *lots* (or will have) of ip addresses and I also need to have, for instance, a sendmail connected to each address to handle services for that particular domain. I'm gradually building such an environment but if peopl have any ideas about this I'd be interested. As I mentioned before, the approach I'm currently taking is to have all the servers bind to the address returned by gethostbyname where the hostname is returned from a modified gethostname() that looks it up in /etc/hostname. This works for me because each of my virtual domains live in their own chrooted environment. I'm planning to add options to bind to a command line specified address though so the ability is more general. Anyone got ideas about a common flag to use? Any ideas about how to do this in general. -- Paul Richards, Bluebird Computer Systems. FreeBSD core team member. Internet: paul@FreeBSD.org, http://www.freebsd.org/~paul Phone: 0370 462071 (Mobile), +44 1222 457651 (home)