Load balancer doesn't balance



  • Hi guys, i have four 1M dsl line, the traffic was keep running on 1 wan and other was dead even i set up the load balance. so below is my routing, take a look, hope you guys reply, thx alot ;)

    WAN 1 - 192.168.1.2/24 | gw 192.168.1.1
    WAN 2 - 192.168.2.2/24 | gw 192.168.2.1
    WAN 3 - 192.168.3.2/24 | gw 192.168.3.1
    WAN 4 - 192.168.4.2/24 | gw 192.168.4.1

    LAN - 10.1.1.1/24

    WAN's rule
          PROTO –- SOURCE --- PORT --- DESTINATION --- PORT --- GATEWAY


    WAN 1 *        *          *        *              *        192.168.1.1


    WAN 2 *        *          *        *              *        192.168.2.1


    WAN 3 *        *          *        *              *        192.168.3.1


    WAN 4 *        *          *        *              *        192.168.4.1


    LAN rule
          PROTO --- SOURCE --- PORT --- DESTINATION --- PORT --- GATEWAY

    1    TCP        LAN net    *        *              80      loadbalance

    2    TCP        LAN net    *        *              443      loadbalance

    3    UDP        LAN net    *        *              53      loadbalance

    4    ICMP        LAN net    *        *              *        loadbalance

    5    TCP/UDP  LAN net    *        *              1863    loadbalance

    6    TCP/UDP  LAN net    *        *              5050    loadbalance

    7    TCP/UDP  LAN net    *        *              6k-10k  192.168.3.1

    8    TCP/UDP  LAN net    *        *              10k-65k  192.168.4.1

    <load_balancer><lbpool><type>gateway</type>
    <behaviour>balance</behaviour>
    <monitorip>208.67.222.222</monitorip>
    <name>loadbalance</name>
    <desc>loadbalance</desc>
    <port><servers>wan|208.67.220.220</servers>
    <servers>opt1|208.67.222.222</servers></port></lbpool>
    <lbpool><type>gateway</type>
    <behaviour>failover</behaviour>
    <monitorip>208.67.222.222</monitorip>
    <name>Wan1 Failto Wan2</name>
    <desc>Wan1 Failto Wan2</desc>
    <port><servers>wan|208.67.220.220</servers>
    <servers>opt1|208.67.222.222</servers></port></lbpool>
    <lbpool><type>gateway</type>
    <behaviour>failover</behaviour>
    <monitorip>208.67.220.220</monitorip>
    <name>Wan2 Failto Wan1</name>
    <desc>Wan2 Failto Wan1</desc>
    <port><servers>opt1|208.67.222.222</servers>
    <servers>wan|208.67.220.220</servers></port></lbpool></load_balancer>

    Routing Table
    default 192.168.1.1 UGS 0 448642 1500 xl1
    10.1.1/24 link#1         UC 0 0 1500 xl0
    10.1.1.2 00:19:db:7f:27:cf UHLW 1 12407533 1500 xl0 836
    127.0.0.1 127.0.0.1 UH 0 0 16384 lo0
    192.168.1 link#2         UC 0 0 1500 xl1
    192.168.1.1 00:1a:70:56:52:49 UHLW 3 5560 1500 xl1 1193
    192.168.2 link#3 UC 0 0 1500 xl2
    192.168.2.1 00:1c:10:9e:d1:3e UHLW 2 5560 1500 xl2 1190
    192.168.3 link#4 UC 0 0 1500 xl3
    192.168.3.1 00:1c:10:9e:d1:23 UHLW 2 5560 1500 xl3 1197
    192.168.4 link#5 UC 0 0 1500 fxp0
    192.168.4.1 00:1c:10:9e:d1:e3 UHLW 2 5560 1500 fxp0 1151
    208.67.220.220 192.168.1.1 UGHS 0 48980 1500 xl1
    208.67.222.222 192.168.2.1 UGHS 0 64556 1500 xl2



  • Hi try NATing each gateway

    source 192.168.1.0/24 to destination gateway.



  • hi, i solved my problem already.
    the round robin does work, but when i check on the sticky connection, the round robin will not run, why ? :-\


Log in to reply