This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Uplink Balancing / multipath rules - going crazy

Hello,

I am going crazy with uplink balancing / multipath rules.  Looking for advice on how to debug.

I have two external connections (eth1, eth2).  One is reliable and slow, the other is 5x faster but goes down occasionally.

I have SIP phones (asterisk) and lots of other stuff.

I setup Uplink balancing for the two interfaces.  Weight 100/100.  5 min persistence.  Added multipath rules for the IP address of the phone setver to go out the reliable slow connection.  Everything else out the fast connection.  When an interface goes down, everything fails over to the good interface.

Everything appeared to be working fine...  so what better to do then break it?

Then I reconfigured...  Added a VLAN capable switch.  Segmented out the phones and the phone server to its own VLAN.  Have multiple VLANs on eth0.  Each network has NAT masq setup to uplink interfaces.  External interfaces on eth1/eth2 as before.

I setup the uplink balancing as before.  Weight 100/100. 5 min persistence.  Added multipath rules for the sip network.

Voice (network) -> any -> any -> ExternalSlow
General (network) -> any -> any -> ExternalFast

I connect laptop to the various networks and "what is my ip" shows the expected external address.

Then I turned on lots of systems.  At first it looks correct from the dashboard/network usage graphs...  but after a while, I notice lots of traffic in/out on General (network) and matching traffic on ExternalSlow.  ExternalFast seams to be skipped.

I must be missing something.  Running latest released version with updates yesterday.  This is a test bench.  If I can get this to work at home, will buy a asg120 for office use and go back to my old setup w/o VLANs at home.

Any suggestions for where I look?


This thread was automatically locked due to age.
  • Hi, 

    I would think the rules should work, but you could set the weight much lower for the slow connection.

    Barry
  • I have tried various settings for the weights but still similar results, with of course the exception of setting ExternalSlow to 0... then nothing went out it regardless of multipath rules.

    In my multipath rules I basically have everything specified including an any->any->any->ExternalFast at the bottom of the list.  So, in theory, if I understand this correctly, the weights shouldn't matter at all.

    It also does appear to work with I go to the various what is my ip web sites from my browsers.  I can't easily login to some of the appliance type devices to test what they see.  But something is certainly going out the unexpected address.

    Is there a good way to see the source of the traffic going out an interface?
  • Barry -

    I tried a new approach - I added multipath rules for everything out the ExternalFast interface.  Makes it very clear if it is working or not by watching the dashboard.  Then I will add some rules back to the ExternalSlow (and reliable) connection.

    Would love to find out if there is a good way to watch connections across an interface.
  • Well, iftop and tcpdump are available on the console.

    Maybe you could post screenshots of your rules; it's been awhile, but it worked for me when I set it up for a friend's house.

    Barry
  • It isn't working as I expect, not sure if my expectations are correct or not.

    I added another VLAN and updated my multi-path rules as follows -

    Internal Voice (Network) -> Any -> Any -> ExternalSlow
    Guest (Network) -> Any -> Any ->ExternalFast
    General (Network) -> Any -> Any -> ExternalFast
    Any -> Any -> Any -> ExternalSlow


    If I open up a flow monitor on ExternalSlow In and Guest Out, I see roughly the same amount of traffic and the same server names.  I would not expect to be seeing this traffic on ExternalSlow interface at all.

    It appeared to work properly before without VLANs and with the 8.x version of Astaro before I upgraded to VLANs and Astaro 9.x latest.
  • Hi,
    What happens if you disable
    Any -> Any -> Any -> ExternalSlow
    ?

    Barry
  • It is even more random if I disable that rule.

    I added only two

    IP Address of internal SIP server -> Any -> Any -> ExternalFast
    Any->Any->Any-> ExternalSlow

    And made 100 ExternalSlow / 10 ExternalFast

    It looked like it was doing the right thing most of the time... but when I just checked my nightly crashplan backup was going out ExternalSlow.