loadbalance router

Discussion in 'Installation/Configuration' started by atux, Aug 6, 2015.

  1. atux

    atux New Member

    hello everyone.
    i would like your help in setting a second isp in my home router.
    i have a PC that runs debian and it has 3 NICs.
    eth0 is my LAN
    eth1 is my WAN1 with gateway (dsl router)
    eth2 is my WAN2 with gateway (dsl2 router2)

    at the moment i am making use of eth0 to access the net with the following:
    # echo 1 > /proc/sys/net/ipv4/ip_forward
    # iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE
    # iptables -A FORWARD -i eth0 -j ACCEPT
    # iptables -A FORWARD -i eth1 -m state --state RELATED,ESTABLISHED -j ACCEPT
    it works nice, but only one WAN.
    how can i add the second wan to make use of it? in case there is a second session it will use the second wan. loadbalance per session. applications that create more sessions they will make use of both of the wans. also in case one wan fails it will be transparent to the user which wan has been used?
    I have to mention that it needs to be in linux only and not other software (such as ipfire, pfsense, ...)
    could someone help me please?
  2. cryangels

    cryangels New Member

    Just have a test for my server , my server need used the different router to the diff ISP ,
    I use 3 ISPs for my server , if go to HongKong used the solt route and if go to Singapore used the best ISP tp SG , like this ,
    so i only used the static router by command "route add -net " , like this , you can try to used it ,
    I think this is good for this ,

Share This Page