Author Topic: Load Balancing makes VPN unstable  (Read 3246 times)

Rafael Muylaert

  • Zen Apprentice
  • *
  • Posts: 49
  • Karma: +1/-0
    • View Profile
Load Balancing makes VPN unstable
« on: July 21, 2011, 03:53:11 pm »
In the lasts months, I've been having a lot of problems with my VPN connections. They would get disconnected every 15 minutes or so, making my remote backup impossible. Also it was a drag to connect more than 2 users at a given time.
This last week one of my internet modems broke, and since then the connection hasn't dropped once, so I realized that the problem was with load balancing.
I'm guessing that the server switches the connection once in a while, forcing the clients to disconnect. I wanted to be able to connect though both links still, but in a way that one connection doesn't jump from one link to the other. is that possible? I understand that if I set up a multigateway rule for VPN connections, I'll only be able to use one gateway for my VPNs. Is that a known issue?

sixstone

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1417
  • Karma: +26/-0
    • View Profile
    • Sixstone's blog
Re: Load Balancing makes VPN unstable
« Reply #1 on: August 05, 2011, 02:43:44 pm »
Hi Rafael,

We are working on fixing the VPN connections and multigateway scenario together. We know the UDP traffic is not working properly with multigateway scenario. However, if you set a Local address and port to bind, the problem disappears.

So, we are working on that direction to enhance VPN stability.

Best,
My secret is my silence...

dangerbock

  • Zen Apprentice
  • *
  • Posts: 30
  • Karma: +0/-0
    • View Profile
Re: Load Balancing makes VPN unstable
« Reply #2 on: July 02, 2012, 01:16:36 pm »
Hi,

I'm having the same problem:

1x Zentyal OpenVPN Server with one gateway
1x Zentyal OpenVPN Client with two gateways

The client vpn is unstable any suggestions ?

best regards

jsalamero

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1419
  • Karma: +45/-1
    • View Profile
Re: Load Balancing makes VPN unstable
« Reply #3 on: July 05, 2012, 10:27:22 am »
Change to TCP or setup a static route to the VPN server, both should work.

dangerbock

  • Zen Apprentice
  • *
  • Posts: 30
  • Karma: +0/-0
    • View Profile
Re: Load Balancing makes VPN unstable
« Reply #4 on: July 05, 2012, 10:39:25 am »
thanks :)

dangerbock

  • Zen Apprentice
  • *
  • Posts: 30
  • Karma: +0/-0
    • View Profile
Re: Load Balancing makes VPN unstable
« Reply #5 on: December 04, 2013, 03:03:05 pm »
Hi

i just instaled 3.2 and this problem continues...i have change the file /usr/share/zentyal/stubs/openvpn/openvpn-client.conf.mas to work

coment "nobind" line and add "local XXX.XXX.XXX.XXX" with the bind address that i whant that vpn client to get out