Failover using remote-random sometimes works, sometimes not

Business solution to host your own OpenVPN server with web management interface and bundled clients.
Post Reply
rmckenna
OpenVpn Newbie
Posts: 1
Joined: Thu May 16, 2013 6:20 pm

Failover using remote-random sometimes works, sometimes not

Post by rmckenna » Thu May 16, 2013 6:34 pm

Hello,

I've been trying to setup basic failover by running 2 different instances of the OpenVPN AS and following the instructions here: http://docs.openvpn.net/how-to-tutorial ... edundancy/

Under Advanced VPN settings on the AS webpage, I have put

-remote *
remote-random
remote a.a.a.a 1194 udp
remote b.b.b.b 1194 udp

If I disconnect and reconnect, then sometimes the Open VPN Connect client (on Mac) works and connects to an alternative host, but sometimes the icon just stays on "Connecting" and never changes until I choose Disconnect and connect again.

Not sure if this matters, but when I do connect to the secondary VPN server, the assigned virtual IP is in the range configured on the primary server, even though the secondary has a different range set (not sure if this matters, but the above link seems to indicate it does).

If I don't use the remote-random logic above and just connect to each server directly, then I never seem to have a problem connecting.

Any ideas? I've searched the internet high and low to see if I can work out why this would be, but I have no idea.

Many thanks,

Richard

Post Reply