From owner-freebsd-questions@FreeBSD.ORG Tue Jan 29 03:30:35 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ABB0716A419 for ; Tue, 29 Jan 2008 03:30:35 +0000 (UTC) (envelope-from brent.jones@otago.ac.nz) Received: from mailhub2.otago.ac.nz (mailhub2.otago.ac.nz [139.80.64.247]) by mx1.freebsd.org (Postfix) with ESMTP id 3479A13C4D5 for ; Tue, 29 Jan 2008 03:30:34 +0000 (UTC) (envelope-from brent.jones@otago.ac.nz) Received: from its-ex-p04.registry.otago.ac.nz (its-ex-p04.registry.otago.ac.nz [10.4.15.133]) by mailhub2.otago.ac.nz (8.13.8/8.13.8) with ESMTP id m0T3UL7e015259; Tue, 29 Jan 2008 16:30:21 +1300 Received: from its-ex-p05.registry.otago.ac.nz ([10.4.15.134]) by its-ex-p04.registry.otago.ac.nz with Microsoft SMTPSVC(6.0.3790.3959); Tue, 29 Jan 2008 16:30:21 +1300 Received: from MAIL1.registry.otago.ac.nz ([10.4.15.129]) by its-ex-p05.registry.otago.ac.nz with Microsoft SMTPSVC(6.0.3790.3959); Tue, 29 Jan 2008 16:30:21 +1300 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Tue, 29 Jan 2008 16:30:19 +1300 Message-ID: <31AE442CCBC1094ABC40CE85B0149F0652375D@MAIL1.registry.otago.ac.nz> In-Reply-To: <200801290234.m0T2YtLn074403@banyan.cs.ait.ac.th> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: IP Aliasing Thread-Index: AchiI2ZGNWTbDZPRQESzsnkN/VjwpwAA0FKw References: <3b2ddd940801280627m6d747cd1g27682bcd9e50ceb7@mail.gmail.com> <200801290234.m0T2YtLn074403@banyan.cs.ait.ac.th> From: "Brent Jones" To: "Olivier Nicole" , X-OriginalArrivalTime: 29 Jan 2008 03:30:21.0124 (UTC) FILETIME=[46CE7040:01C86227] X-PMX-Version: 5.4.0.320885, Antispam-Engine: 2.5.2.313940, Antispam-Data: 2008.1.28.191542 X-PerlMx-Spam: Gauge=IIIIIII, Probability=7%, Report='__CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __IMS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0' Cc: freebsd-questions@freebsd.org Subject: RE: IP Aliasing 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: Tue, 29 Jan 2008 03:30:35 -0000 > > 2) if an interface is configured with an alias address, then what > > address is shown on the traffic leaving this interface? So, for > > example, if I were to ping this machine on its primary address, I > > expect to get a response from the primary address of the interface. > > What happens if I ping an alias address, would I get a response from >=20 > By default exiting traffic is using the primary address (the one > defined with no keyword alias in the ifconfig). I think there is a way > to choose the exiting IP. >=20 > When a paket is responding, it use the same IP that was used in the > query (else any firewall would be confused in the way). Just a note on this question/answer: You can configure a FreeBSD machine to use random IP addresses from the available pool of configured IP addresses when machines traverse the NATted firewall. If you choose this option, you may run into problems with people behind your firewall/router having difficulty connecting to web sites that use session authentication, as the IP address of the source machine will be constantly changing with each click of links on the destination web site. (This caught me out for months before I realised what was happening.) Cheers, Brent