Author Topic: Multigateway do not work properly  (Read 3549 times)

zenzen

  • Zen Apprentice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Multigateway do not work properly
« on: December 06, 2012, 11:01:51 pm »
Hello!

Please help: does not work correctly module balancing traffic. There are two interface.
I created rules for any traffic must go through the first gateway, made it the default, his weight is 15, the second interface's weight is 1. The second channel is needed for remote connections to my server and as a backup in case the first channel is not working.
But time to time (and often) server sends the requests via the second channel, and it is inadmissible, because of a number of services are bound to an IP address, and they become unavailable.
Why do not work properly rules? How to make so that all traffic is on the first channel, as long as it works?
Thank you!
« Last Edit: December 06, 2012, 11:06:46 pm by zenzen »

Marcus

  • Forum Moderator
  • Zen Samurai
  • *****
  • Posts: 395
  • Karma: +12/-0
    • View Profile
    • Professional IT Service
Re: Multigateway do not work properly
« Reply #1 on: December 09, 2012, 07:16:25 pm »
Hello zenzen,

> his weight is 15, the second interface's weight is 1
See it more like 15 packets are sent to the first NIC and the following packet is sent to the second NIC.  When the second NIC sent is single packet, it goes back to the first NIC.

> Why do not work properly rules?
They do.  You simply missed a (important) detail.

> But time to time (and often) server sends the requests via the second channel
You must configure "Static Routes".

ref:
http://doc.zentyal.org/en/routing.html#static-route-table

Nota Bene;
You should post your "server" issues under the "server" section.  Otherwise you may experience "lag" from the community support.

Best,

Marcus

Escorpiom

  • Zen Hero
  • *****
  • Posts: 897
  • Karma: +25/-1
    • View Profile
Re: Multigateway do not work properly
« Reply #2 on: December 10, 2012, 04:21:38 am »
I can confirm the expected behavior as described by Marcus.
My server has now two interfaces and I've set the weight to 10 / 1.
Rules are obligatory, but only for outgoing traffic as you understand.

Cheers.
 
Marcus' Rule:
Blanks & capitals = avoid it and you'll avoid problems...