built load balancer use dragonfly BSD

Bill Yuan bycn82 at gmail.com
Sat May 28 22:56:11 PDT 2016


Hi Sato,

Yes, You can build a simple load balancer with the the "forwarding" feature
of IPFW3.

In below example:
ipfw3 add forward 192.168.1.1,192.168.1.2 round-robin icmp
the ICMP packets to 192.168.1.1 or 192.168.1.2, if you are trying to ping
8.8.8.8, then you need to ensure you packets can still reach 8.8.8.8 after
it has been forwarded to the 192.168.1.1 or 1.2   And the also ensure the
reason traffic can be routed back to your source machine.

Regards,
Bill Yuan



On 28 May 2016 at 22:36, <satofujiyama at yahoo.co.jp> wrote:

> Hello.
> we are create a load balancer.
> but the example command is always not work on my testing pc.
> ipfw3 add forward 192.168.1.1:80,192.168.1.2:80 round-robin all
> any document to demo how it works?
> Thanks You.
> Sato.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.dragonflybsd.org/pipermail/users/attachments/20160529/14f79243/attachment-0003.htm>


More information about the Users mailing list