From owner-freebsd-questions@FreeBSD.ORG Mon Mar 7 20:58:35 2005 Return-Path: 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 2089B16A4F5 for ; Mon, 7 Mar 2005 20:58:35 +0000 (GMT) Received: from pi.codefab.com (pi.codefab.com [199.103.21.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id D3BD043D1F for ; Mon, 7 Mar 2005 20:58:34 +0000 (GMT) (envelope-from cswiger@mac.com) Received: from localhost (localhost [127.0.0.1]) by pi.codefab.com (Postfix) with ESMTP id 517385DB5; Mon, 7 Mar 2005 15:58:34 -0500 (EST) Received: from pi.codefab.com ([127.0.0.1]) by localhost (pi.codefab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 69300-02; Mon, 7 Mar 2005 15:58:33 -0500 (EST) Received: from [192.168.1.3] (pool-68-161-53-96.ny325.east.verizon.net [68.161.53.96]) by pi.codefab.com (Postfix) with ESMTP id 4A0C95DB3; Mon, 7 Mar 2005 15:58:32 -0500 (EST) Message-ID: <422CC084.5000804@mac.com> Date: Mon, 07 Mar 2005 15:58:44 -0500 From: Chuck Swiger Organization: The Courts of Chaos User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041217 X-Accept-Language: en-us, en MIME-Version: 1.0 To: patrick References: In-Reply-To: X-Enigmail-Version: 0.90.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at codefab.com cc: freebsd-questions@freebsd.org Subject: Re: IP aliases and forcing outbound IP X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Mar 2005 20:58:35 -0000 patrick wrote: > Should I assume by the lack of replies that this just isn't possible > under FreeBSD? Seems like it should be doable. What happens if you do: route add certainhost 10.0.1.111 ...? What happens if you create a jail and run your task from inside there using the jail's IP as the aliased IP? Also, what happens if you bind the service that you care about to that IP rather than to all? It's not clear if this may applicable as you talk about outbound connections, but Apache, SMTP servers and the like can. -- -Chuck >>I have a FreeBSD 4.11 box whose ethernet card has several IP address. >> >> inet 10.0.1.254 netmask 0xffffff00 broadcast 10.0.1.255 >> inet 10.0.1.111 netmask 0xffffffff broadcast 10.0.1.111 >> >>Is there a way I can cause outbound connections to certain hosts to be >>from 10.0.1.111 instead of the default 10.0.1.254? I used to be able >>to do this fairly easy in Linux because each alias is actually a >>separate ethernet device (eg. eth0:0, eth0:1, etc.), but I haven't >>figured out how to do this in FreeBSD.