Load balance 7 WAN incoming connections



  • I have 7 internet connections and I want to load balance the incoming connections over the connections as effeciently(for bandwidth) as possible. I want my users to be able to go to "www.mydomain.com" and it to automatically balance among the different connections. All 7 connections have public static ip's.

    Each incoming connection needs to stay on which ever connection it is given, because the main part of the bandwidth usage is streaming video.

    My basic network diagram:

    [internet]-[7x independant connections]-[pfsense router]-[my video server]



  • Find tutorials for incoming load balancing and set it up.

    Since you are on video streaming consider adding to the bounty for traffic shaper so you can shape this streams and guarantee flawless service.
    It is just a recommandation nothing more :).



  • I've read the tutorial for outgoing traffic shaping, but I've yet to find the incoming tutorial. Is there a way to load balance the incoming connections to the least used connection? Since all 7 of my connections are the same bandwidth?



  • Usually you have to setup an outgoing load balance pool and round robin is the default so it fits your needs, even because they are the same speed.

    I do not see why you need to load balance incoming connections if you only have 7 wans and one lan!

    I've read the tutorial for outgoing traffic shaping

    Usually the same things apply for incoming.



  • I think the incoming load balancing will have to be dns based because I will need my users to access my servers from the same domain name, but different public ip's.

    Is there a dns based load balancer to spread the load over multiple ip's?



  • It depends on the dns server you use!

    On bind you can do this iirc.



  • Let's say I have my domain pointing to one of my static ip's, and I want to use the other 6 for actually streaming the video. How would I effectively balance the incoming connections for the video over the other 6 connections from the first connection?



  • With just outgoing load balancing setup!



  • @quentusrex:

    Let's say I have my domain pointing to one of my static ip's, and I want to use the other 6 for actually streaming the video. How would I effectively balance the incoming connections for the video over the other 6 connections from the first connection?

    If the connection came in on static-ip-1 you cannot send out the reply from static-ip-2 as that would mess up the connection.  If you wanted to send out a reply on static-ip-2 you would have to do it on the applicsation level.  This can be dns based or if you have a web site then the links you generate for the video would be to the other static-ips in a dyamic way.

    sorry if the above is confused…but : incoming load balancing is used when you have several servers attached to one bandwidth and you want the bandwidth distributed amongst the servers evenly.



  • @quentusrex:

    Let's say I have my domain pointing to one of my static ip's, and I want to use the other 6 for actually streaming the video. How would I effectively balance the incoming connections for the video over the other 6 connections from the first connection?

    Code your website to retrieve videos from different server each time a user clicks on the link.  There is nothing on pfsense that will help you with that.

    mr-s


Locked