[prev in list] [next in list] [prev in thread] [next in thread] 

List:       dragonfly-users
Subject:    Re: built load balancer use dragonfly BSD
From:       Bill Yuan <bycn82 () gmail ! com>
Date:       2016-05-29 5:56:11
Message-ID: CAC+JH2wA3+no74-LfOaFfh_ZYD1nYzJoKSJ0RyYunLK2pYj68w () mail ! gmail ! com
[Download RAW message or body]

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@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.
>

[Attachment #3 (text/html)]

<div dir="ltr"><div class="gmail_default" style="font-size:small"><font \
face="monospace, monospace" color="#9900ff">Hi Sato,</font></div><div \
class="gmail_default" style="font-size:small"><font face="monospace, monospace" \
color="#9900ff"><br></font></div><div class="gmail_default" \
style="font-size:small"><font face="monospace, monospace" color="#9900ff">Yes, You \
can build a simple load balancer with the the &quot;forwarding&quot; feature of \
IPFW3.  </font></div><div class="gmail_default" style="font-size:small"><font \
face="monospace, monospace" color="#9900ff"><br></font></div><div \
class="gmail_default" style="font-size:small"><font face="monospace, monospace" \
color="#9900ff">In below example:</font></div><div class="gmail_default" \
style="font-size:small"><font color="#9900ff" face="monospace, monospace">ipfw3 add \
forward 192.168.1.1,192.168.1.2 round-robin icmp</font></div><div \
class="gmail_default" style="font-size:small"><font color="#9900ff" face="monospace, \
monospace">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.</font></div><div class="gmail_default" \
style="font-size:small"><font color="#9900ff" face="monospace, \
monospace"><br></font></div><div class="gmail_default" style="font-size:small"><font \
color="#9900ff" face="monospace, monospace">Regards,</font></div><div \
class="gmail_default" style="font-size:small"><font color="#9900ff" face="monospace, \
monospace">Bill Yuan</font></div><div class="gmail_default" \
style="font-size:small"><br></div><div class="gmail_default" \
style="font-size:small"><br></div></div><div class="gmail_extra"><br><div \
class="gmail_quote">On 28 May 2016 at 22:36,  <span dir="ltr">&lt;<a \
href="mailto:satofujiyama@yahoo.co.jp" \
target="_blank">satofujiyama@yahoo.co.jp</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div><div><div style="font-family:&#39;MS \
PGothic&#39;,sans-serif;font-size:12pt">Hello.</div><div style="font-family:&#39;MS \
PGothic&#39;,sans-serif;font-size:12pt"><span style="font-size:12pt">we are create a \
load balancer.</span><br></div><div style="font-family:&#39;MS \
PGothic&#39;,sans-serif;font-size:12pt">but the example command is always not work on \
my testing pc.</div><div><div><font face="MS PGothic, sans-serif">ipfw3 add forward \
<a href="http://192.168.1.1:80" target="_blank">192.168.1.1:80</a>,<a \
href="http://192.168.1.2:80" target="_blank">192.168.1.2:80</a> round-robin \
all</font></div><div style="font-family:&#39;MS \
PGothic&#39;,sans-serif;font-size:12pt"><span style="font-size:12pt">any document to \
demo how it works?</span><br></div><div style="font-family:&#39;MS \
PGothic&#39;,sans-serif;font-size:12pt"><span style="font-size:12pt">Thanks \
You.</span><br></div><div style="font-family:&#39;MS \
PGothic&#39;,sans-serif;font-size:12pt">Sato.</div></div></div></div></blockquote></div><br></div>




[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic