From owner-freebsd-stable Mon Nov 13 18:59:55 2000 Delivered-To: freebsd-stable@freebsd.org Received: from earth.backplane.com (placeholder-dcat-1076843399.broadbandoffice.net [64.47.83.135]) by hub.freebsd.org (Postfix) with ESMTP id 4E07337B479; Mon, 13 Nov 2000 18:59:51 -0800 (PST) Received: (from dillon@localhost) by earth.backplane.com (8.11.1/8.9.3) id eAE2xDZ43286; Mon, 13 Nov 2000 18:59:13 -0800 (PST) (envelope-from dillon) Date: Mon, 13 Nov 2000 18:59:13 -0800 (PST) From: Matt Dillon Message-Id: <200011140259.eAE2xDZ43286@earth.backplane.com> To: "Chad R. Larson" Cc: freebsd-stable@FreeBSD.ORG, freebsd-questions@FreeBSD.ORG Subject: Re: source IP address References: <200011132148.OAA09159@freeway.dcfinc.com> Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG :When you've got aliased addresses on an IP interface, how does :FreeBSD select the source address on outgoing packets? : : -crl :-- :Chad R. Larson (CRL15) 602-953-1392 Brother, can you paradigm? :chad@dcfinc.com chad@larsons.org larson1@home.net If the packet is associated with an incoming TCP connection, the outgoing address will be the IP the remote host tried to connect to on your machine. If the packet is associated with an outgoing TCP connection, the outgoing address will be the IP of the outgoing interface. If the outgoing interface has aliases, it is believed that the IP address will be the primary IP address of the interface. However, there have been problems with this in the past and I am not sure if they were completely fixed. Some programs, such as ping and traceroute, allow you to bind to a specific source IP address. Most programs don't, though. -Matt To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message