LVS/DR load balancing via FreeBSD

Matthew Seaman m.seaman at
Mon Sep 19 11:46:00 UTC 2011

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 Linux
> servers here?
> ( )
>   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.



Dr Matthew J Seaman MA, D.Phil.                   7 Priory Courtyard
                                                  Flat 3
PGP:     Ramsgate
JID: matthew at               Kent, CT11 9PW

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 267 bytes
Desc: OpenPGP digital signature
Url :

More information about the freebsd-questions mailing list