From owner-freebsd-net@FreeBSD.ORG Thu Apr 21 15:01:46 2005 Return-Path: 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 A9E9116A4CE for ; Thu, 21 Apr 2005 15:01:46 +0000 (GMT) Received: from rchss002.chiaro.com (rchss002.chiaro.com [63.88.196.82]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3AF3243D39 for ; Thu, 21 Apr 2005 15:01:46 +0000 (GMT) (envelope-from dbaukus@chiaro.com) Received: from rchst007.cus.chiaro.com ([192.168.8.120]) by rchss002.chiaro.com (8.12.11/8.12.11) with SMTP id j3LExNvP001975; Thu, 21 Apr 2005 09:59:23 -0500 (CDT) (envelope-from dbaukus@chiaro.com) Received: from chiaro.com ([192.168.25.95]) by rchst007.cus.chiaro.com with Microsoft SMTPSVC(5.0.2195.6713); Thu, 21 Apr 2005 10:01:02 -0500 Message-ID: <4267C206.3020506@chiaro.com> Date: Thu, 21 Apr 2005 10:08:54 -0500 From: dave baukus Organization: Chiaro Networks User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.4) Gecko/20040414 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Andre References: <20050421145256.GA50738@server.home> In-Reply-To: <20050421145256.GA50738@server.home> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 21 Apr 2005 15:01:02.0064 (UTC) FILETIME=[EF134F00:01C54682] cc: freebsd-net@freebsd.org Subject: Re: How to set the source IP of TCP connections? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Apr 2005 15:01:46 -0000 Can you not configure the loop back w/ the address then bind to it and connect to the forgein end ? It's not exactly what you want, but I think its a game some apps play. Andre wrote: > How can I open a TCP connection with a source IP > address that's not configured on the machine? > > I've created a proxy (like Squid but for another > protocol), and I use ipfw fwd to get the client's > TCP connections to this proxy. > > The problem is that the connections that the proxy > open have the source IP address of the machine where > the proxy is running on. > > What I'd like to do is to use the IP address of the > client as the source IP address of connections opened > by the proxy for that client. > > Any way to do this in FreeBSD 4 or 5? > > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > -- Dave Baukus dbaukus@chiaro.com Chiaro Networks Ltd. Richardson, Texas USA