From owner-freebsd-net@FreeBSD.ORG Mon Jul 24 13:48:14 2006 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6E82416A4DD for ; Mon, 24 Jul 2006 13:48:14 +0000 (UTC) (envelope-from b.candler@pobox.com) Received: from rune.pobox.com (rune.pobox.com [208.210.124.79]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1AE5543D45 for ; Mon, 24 Jul 2006 13:48:13 +0000 (GMT) (envelope-from b.candler@pobox.com) Received: from rune (localhost [127.0.0.1]) by rune.pobox.com (Postfix) with ESMTP id 0967573509; Mon, 24 Jul 2006 09:48:35 -0400 (EDT) Received: from mappit.local.linnet.org (212-74-113-67.static.dsl.as9105.com [212.74.113.67]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by rune.sasl.smtp.pobox.com (Postfix) with ESMTP id BF6CA1810F; Mon, 24 Jul 2006 09:48:33 -0400 (EDT) Received: from lists by mappit.local.linnet.org with local (Exim 4.61 (FreeBSD)) (envelope-from ) id 1G50n4-0001BR-43; Mon, 24 Jul 2006 14:48:10 +0100 Date: Mon, 24 Jul 2006 14:48:10 +0100 From: Brian Candler To: Nikos Vassiliadis Message-ID: <20060724134810.GA4511@uk.tiscali.com> References: <200607241238.57205.nvass@teledomenet.gr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200607241238.57205.nvass@teledomenet.gr> User-Agent: Mutt/1.4.2.1i Cc: freebsd-net@freebsd.org Subject: Re: using loopback address as primary address X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Jul 2006 13:48:14 -0000 On Mon, Jul 24, 2006 at 12:38:56PM +0300, Nikos Vassiliadis wrote: > Can I somehow use lo1 address > for connections initiated from Host_2? Options I know of: (1) the application which originates the connection can explicitly bind to the lo1 address (see for example telnet -s and ping -S options) (2) the application can run in a jail(8) whose IP address is lo1, in which case a 'bind to any' will bind to this address only (3) use source NAT with pf etc