From owner-freebsd-net@FreeBSD.ORG Wed Jan 4 14:37:50 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 453DE16A41F for ; Wed, 4 Jan 2006 14:37:50 +0000 (GMT) (envelope-from lists@yazzy.org) Received: from mail.yazzy.org (mail.yazzy.org [217.8.140.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id B180943D5A for ; Wed, 4 Jan 2006 14:37:47 +0000 (GMT) (envelope-from lists@yazzy.org) Received: from lapdance.yazzy.net (unknown [192.168.99.4]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.yazzy.org (Postfix) with ESMTP id 1522939834; Wed, 4 Jan 2006 15:38:00 +0100 (CET) Date: Wed, 4 Jan 2006 14:36:59 +0000 From: Marcin Jessa To: Dennis Olvany Message-Id: <20060104143659.04dd2174.lists@yazzy.org> In-Reply-To: <43BB637F.5050402@gmail.com> References: <43BB5923.7040108@siol.net> <43BB637F.5050402@gmail.com> Organization: YazzY.org X-Mailer: Sylpheed version 2.0.4 (GTK+ 2.8.9; i386-portbld-freebsd6.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org, karel.miklav@siol.net 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 14:37:50 -0000 On Tue, 03 Jan 2006 23:56:15 -0600 Dennis Olvany wrote: > 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 Check also the pf FAQ: http://www.openbsd.org/faq/pf/pools.html section "Load Balance Incoming Connections" Cheers, Marcin Jessa