Failover Cluster

Business solution to host your own OpenVPN server with web management interface and bundled clients.
Post Reply
paul6294
OpenVpn Newbie
Posts: 4
Joined: Mon Jul 30, 2012 3:08 pm

Failover Cluster

Post by paul6294 » Tue Jul 31, 2012 10:04 am

Hello,

I have an primary AS set up and it has been working fine for some time. As our VPN is critical to business, I am trying to configure a secondary AS but cannot get it to validate from the primary AS.

Set up is as follows:

Primary node:
Name ACCESS1
IP 192.168.100.70
Installed as primary node on Ubuntu server under the main user of the server USER1

Secondary node:
Name ACCESS2
IP 192.168.100.71
Installed as secondary node on Ubuntu server under the main user of the server USER1

So, the username and password of both AS's is the same

On ACCESS1 I go to Failover Settings
Select LAN Model
Share virtual IP 192.168.100.72
Primary node IP 192.168.100.70
SSH username USER1
SSH password the password of USER1
SSH port 22
Secondary node IP 192.168.100.71
SSH username USER1
SSH password the password of USER1
SSH port 22

Validate gives the error below

ERROR: u'None: COPY_SECONDARY: error copying test file from 192.168.100.70 to 192.168.100.71: USER1@192.168.100.71\'s password: \r\nrsync: mkstemp "/usr/local/openvpn_as/etc/tmp/.fct-UngqixPlHc90.tmp.zPFOzM" failed: Permission denied (13)\r\nrsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1060) [sender=3.0.7]\r\n: internet/defer:102,ssh/foctest:76,ssh/foctest:45 (pyovpn.ssh.foctest.Error)'

What I gather is that USER1 on ACCESS1 does not have permissions to access ACCESS2

Please could someone help with getting this up and running. My Ubuntu skills are limited. I guess I need to create a failover user on both machines that have root access but am not sure how to go about this.

Thanks,
Paul

paul6294
OpenVpn Newbie
Posts: 4
Joined: Mon Jul 30, 2012 3:08 pm

Re: Failover Cluster

Post by paul6294 » Tue Jul 31, 2012 11:09 am

I solved this soon after posting here...

For anyone who needs the solution I used, I enabled root access on both Ubuntu servers using:

sudo passwd

paul6294
OpenVpn Newbie
Posts: 4
Joined: Mon Jul 30, 2012 3:08 pm

Re: Failover Cluster

Post by paul6294 » Tue Jul 31, 2012 11:14 am

I solved this soon after posting here.

The solution I used was to enable root access on both Ubuntu servers using the following command:

sudo passwd

Post Reply