From owner-freebsd-questions@FreeBSD.ORG Mon Sep 19 11:46:00 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DD52F106566C for ; Mon, 19 Sep 2011 11:45:59 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3fd3:cd67:fafa:3d78]) by mx1.freebsd.org (Postfix) with ESMTP id 473C48FC0C for ; Mon, 19 Sep 2011 11:45:59 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [81.187.76.163]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.5/8.14.5) with ESMTP id p8JBjtSj024804 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Mon, 19 Sep 2011 12:45:55 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.8.3 smtp.infracaninophile.co.uk p8JBjtSj024804 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infracaninophile.co.uk; s=201001-infracaninophile; t=1316432755; bh=WCbpB7DJ0Ty8EtaQjZ9kku0yaw9txiJljCNw8JOg5ig=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Cc:Content-Type:Date:From:In-Reply-To: Message-ID:Mime-Version:References:To; z=Message-ID:=20<4E772B69.2030408@infracaninophile.co.uk>|Date:=20M on,=2019=20Sep=202011=2012:45:45=20+0100|From:=20Matthew=20Seaman= 20|User-Agent:=20Mozilla/5.0=20(M acintosh=3B=20Intel=20Mac=20OS=20X=2010.6=3B=20rv:6.0.2)=20Gecko/2 0110902=20Thunderbird/6.0.2|MIME-Version:=201.0|To:=20Alexandr=20M atveev=20|CC:=20FreeBSD=20Mailing=20List=20|Subject:=20Re:=20LVS/DR=20load=20bala ncing=20via=20FreeBSD|References:=20<4E771D09.3050107@timon.net.nz >|In-Reply-To:=20<4E771D09.3050107@timon.net.nz>|X-Enigmail-Versio n:=201.3.1|OpenPGP:=20id=3D60AE908C|Content-Type:=20multipart/sign ed=3B=20micalg=3Dpgp-sha1=3B=0D=0A=20protocol=3D"application/pgp-s ignature"=3B=0D=0A=20boundary=3D"------------enig4303A0094FAF65BFC E3F0C9B"; b=vWGLSfMrfIPuwoDsCF0DKY6G6k5Ed58PVfzNE7LQ3JBs2ce9jjWlxFAUrcrpqqywH X17kJWA8Lnw2Nu4W3ViAW/SGdknG42Msn1+y3qcHuDpQc8406d6tonSDFbXITCuar6 YlIKRt868mOLut46FK6yScucFfUF6tDgVIeHpxuw= Message-ID: <4E772B69.2030408@infracaninophile.co.uk> Date: Mon, 19 Sep 2011 12:45:45 +0100 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:6.0.2) Gecko/20110902 Thunderbird/6.0.2 MIME-Version: 1.0 To: Alexandr Matveev References: <4E771D09.3050107@timon.net.nz> In-Reply-To: <4E771D09.3050107@timon.net.nz> X-Enigmail-Version: 1.3.1 OpenPGP: id=60AE908C Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig4303A0094FAF65BFCE3F0C9B" X-Virus-Scanned: clamav-milter 0.97.2 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-0.1 required=5.0 tests=BAYES_20,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on lucid-nonsense.infracaninophile.co.uk Cc: FreeBSD Mailing List Subject: Re: LVS/DR load balancing via FreeBSD X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Sep 2011 11:46:00 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig4303A0094FAF65BFCE3F0C9B Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 19/09/2011 11:44, Alexandr Matveev wrote: > We have two Linux servers doing LVS/DR load balancing (rewriting MAC > addresses). > Is there a way to do this in FreeBSD, so there won't be need for a Linu= x > servers here? > ( http://www.linuxvirtualserver.org/VS-DRouting.html ) >=20 > There is a port net/ipvs but it's an old and (seemingly) unmaintained= > patches. Sounds like relayd(8) might be what you need -- in ports as net/relayd. It works with the pf(4) firewall, and you can use it to implement almost all of the functions of an expensive hardware loadbalancer on a cheap PC. It should be able to do what you want -- which I am more familiar with as 'Direct Server Return.' relayd(8) is ported from OpenBSD, and the FreeBSD port doesn't yet support absolutely everything that it can do natively on OpenBSD. The missing stuff is mostly to do with creating a HA firewall/load-balancer pair, which seems to be one of your requirements, so you might want to try it under OpenBSD. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate JID: matthew@infracaninophile.co.uk Kent, CT11 9PW --------------enig4303A0094FAF65BFCE3F0C9B Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.16 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk53K3IACgkQ8Mjk52CukIxXMgCeM6rNLEaF9t64Q3qS7HOx3ZrZ S+0AoIDLzZqGEHJ3p1BCwcLhfynBQIFN =EOYt -----END PGP SIGNATURE----- --------------enig4303A0094FAF65BFCE3F0C9B--