From owner-freebsd-net@FreeBSD.ORG Wed Jan 4 05:56:47 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 B960016A41F for ; Wed, 4 Jan 2006 05:56:47 +0000 (GMT) (envelope-from dennisolvany@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id E452A43D53 for ; Wed, 4 Jan 2006 05:56:46 +0000 (GMT) (envelope-from dennisolvany@gmail.com) Received: by wproxy.gmail.com with SMTP id i31so2477922wra for ; Tue, 03 Jan 2006 21:56:46 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:user-agent:x-accept-language:mime-version:to:cc:subject:references:in-reply-to:x-enigmail-version:openpgp:content-type:content-transfer-encoding; b=Wt+jwcv5P7fJcxbHG/Vv32Z6BEhXxy9H8ifuZNjQaAd4HOLgvd/ETxPbzfpnmlE8Giimx7tUVJfJ6sub6Uo32yLyGiBNYLyQJ4LpkrNiVp1pDd2UMu/UzYvjgA1N96LjPur2FIR0xjOgkLlElPjJ8aozUR/pLMPVpYGnJ9HRPZk= Received: by 10.54.153.18 with SMTP id a18mr1817842wre; Tue, 03 Jan 2006 21:56:45 -0800 (PST) Received: from ?192.168.10.2? ( [195.16.87.38]) by mx.gmail.com with ESMTP id 66sm14300587wra.2006.01.03.21.56.44; Tue, 03 Jan 2006 21:56:45 -0800 (PST) Message-ID: <43BB637F.5050402@gmail.com> Date: Tue, 03 Jan 2006 23:56:15 -0600 From: Dennis Olvany User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051129) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Karel Miklav References: <43BB5923.7040108@siol.net> In-Reply-To: <43BB5923.7040108@siol.net> X-Enigmail-Version: 0.93.0.0 OpenPGP: id=D71A85AB Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org Subject: Re: Direct routing 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: Wed, 04 Jan 2006 05:56:47 -0000 Karel Miklav wrote: > I'd like to do something like described on the LVS pages > http://www.linuxvirtualserver.org/VS-DRouting.html, that is route > requests to another server and answer from this second server > directly to the client. How can I do it on FreeBSD? You can use lsnat. http://www.enterasys.com/products/whitepapers/load-sharing-nat/ -redirect_address localIP[,localIP[,...]] publicIP These forms of -redirect_port and -redirect_address are used to transparently offload network load on a single server and distribute the load across a pool of servers. This function is known as LSNAT (RFC 2391). For example, the argument tcp www1:http,www2:http,www3:http www:http means that incoming HTTP requests for host www will be trans- parently redirected to one of the www1, www2 or www3, where a host is selected simply on a round-robin basis, without regard to load on the net. http://www.freebsd.org/cgi/man.cgi?query=natd