From owner-freebsd-net@FreeBSD.ORG Thu Apr 21 14:53: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 59C9116A4CE for ; Thu, 21 Apr 2005 14:53:46 +0000 (GMT) Received: from c00l3r.networx.ch (c00l3r.networx.ch [62.48.2.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id B95B943D1F for ; Thu, 21 Apr 2005 14:53:45 +0000 (GMT) (envelope-from andre@freebsd.org) Received: (qmail 68717 invoked from network); 21 Apr 2005 14:55:36 -0000 Received: from unknown (HELO freebsd.org) ([62.48.0.53]) (envelope-sender ) by c00l3r.networx.ch (qmail-ldap-1.03) with SMTP for ; 21 Apr 2005 14:55:36 -0000 Message-ID: <4267BE79.972245F4@freebsd.org> Date: Thu, 21 Apr 2005 16:53:45 +0200 From: Andre Oppermann X-Mailer: Mozilla 4.8 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: Andre References: <20050421145256.GA50738@server.home> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 14:53:46 -0000 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? No. -- Andre