Pfsense as load balancer with huwei 4g modems as wan



  • dear all,

    i am using pfsense as load balancer, i have 3 4g modems from zain saudi arabia. when use then on by one directly putting the cable in laptop and make speed test. they gives almost 10mbps each but when i use them with pfsense as load balancer three of them, speed come very slow almost 8mbps… it should be above 25mbps for all three when they are used as load balancer.

    huwei 5172-a22

    when i go to traffic graph and chek wan one by one they all are working.

    please guide



  • where are you professionals
    please help



  • nobody is here to help..

    moderator where are you



  • OK - Without knowing about the hardware problems you may face, I can speak about the ISP issues you might face.

    If all 4 modems are the same and have the same service provider and the same gateway addresses, you are screwed for sure I'd think.

    It will never work as you would like.  At least thats my understanding.


  • Netgate Administrator

    The HUAWEI E5172As-22, if that's what you have, is a desktop router so it should be able to load balance by using private subnets on the WANs.
    http://support.huawei.com/ecommunity/bbs/10195775.html

    Give us more details of your pfSense setup. WAN configurations, firewall rules etc.

    Steve



  • Double NAT on 4 NICs - Yuck….
    But it will work.



  • @kejianshi:

    OK - Without knowing about the hardware problems you may face, I can speak about the ISP issues you might face.

    If all 4 modems are the same and have the same service provider and the same gateway addresses, you are screwed for sure I'd think.

    It will never work as you would like.  At least thats my understanding.

    Depending on the hw, you can make mobile phone network devices connect to neighbouring cells which will give a weaker signal, but might give you a different gateway. I've forced devices to fix to a particular cell of my choosing which overrides the phone companies own traffic/cell management software but have not checked to see if the gateways were different.

    It would be better imo to have the 4g modems running on different mobile networks which will help redundancy if one mobile company has a problem with their network, but different countries have different mobile network setups, namely in some countries, mobile companies can share independent antenna's whilst in other countries some mobile companies only use their own antenna's.



  • @firewalluser:

    @kejianshi:

    OK - Without knowing about the hardware problems you may face, I can speak about the ISP issues you might face.

    If all 4 modems are the same and have the same service provider and the same gateway addresses, you are screwed for sure I'd think.

    It will never work as you would like.  At least thats my understanding.

    Depending on the hw, you can make mobile phone network devices connect to neighbouring cells which will give a weaker signal, but might give you a different gateway. I've forced devices to fix to a particular cell of my choosing which overrides the phone companies own traffic/cell management software but have not checked to see if the gateways were different.

    It would be better imo to have the 4g modems running on different mobile networks which will help redundancy if one mobile company has a problem with their network, but different countries have different mobile network setups, namely in some countries, mobile companies can share independent antenna's whilst in other countries some mobile companies only use their own antenna's.

    but from pfsense box to to router i am using differen subnets. and dns server. for pfsense box the gateway is different for each router. although pfsense is sending traffice to all router but the result is not that what was i expecting.



  • Have you tried the same setup in 2.1 and do you get the same results?

    Can you show us what your config is?

    Dont know if you know about this.
    https://doc.pfsense.org/index.php/Multi-WAN



  • @firewalluser:

    Have you tried the same setup in 2.1 and do you get the same results?

    Can you show us what your config is?

    Dont know if you know about this.
    https://doc.pfsense.org/index.php/Multi-WAN

    i already read these instruction and i said that load balancing is working but result is not up to mark.

    please tell me how to copy config file.


  • Netgate Administrator

    How are you testing?
    Since you have 4 WANs your test meathod will have to use at least 4 connections to take advantage of it. I believe the speedtest.net client uses 4 streams if it can.

    Steve



  • @stephenw10:

    How are you testing?
    Since you have 4 WANs your test meathod will have to use at least 4 connections to take advantage of it. I believe the speedtest.net client uses 4 streams if it can.

    Steve

    speed test only shows one stream.


  • Netgate Administrator

    So you could see traffic on all 4 WANs?



  • but when i go to status trafic graph there i can see traffice on all wans.


  • Netgate Administrator

    If you can see traffic going, approximately equally, on all 4 WANs then the load balancing is working correctly. It may be that you are hitting some other limit further upstream. The modems you're using appear capable of 150Mbps if the correct data network is available. Do you know what data network type your ISP is providing?
    I don't have much experience with mobile broadband but when I have used it I found I was able to get close to the advertised bandwidth only at times of day when nobody else was using it. You might be better trying to use either different cells for each modem (directional antennas?) or different networks.

    Steve


Log in to reply