I'm operating OpenVPN 2.3.2 server successfully on Ubuntu 14.04.2
Now I have established a backup server with the same setup.
In order to quickly switch between the two servers, I've established a virtual ip address via
ifconfig eth0:1 85.x.y.z netmask 255.255.255.255
and have the domain name pointing to this virtual address rather to the real address.
Unfortunately clients no longer connect. I assume this is because of the mismatch between the real and the virtual address. Maybe the following two log lines from the server give a hint:
Fri Mar 6 11:56:38 2015 us=790968 a.b.c.d:48077 Local Options hash (VER=V4): '530fdded'
Fri Mar 6 11:56:38 2015 us=791011 a.b.c.d:48077 Expected Remote Options hash (VER=V4): '41690919'
server.conf:
- port 1194
proto udp
tun-mtu 1500
dev tun
ca ./easy-rsa/keys/ca.crt
cert ./easy-rsa/keys/server.crt
key ./easy-rsa/keys/server.key
crl-verify crl.pem
dh ./easy-rsa/keys/dh2048.pem
server 10.8.0.0 255.255.0.0
topology subnet
ifconfig-pool-persist cn2ip.txt
client-to-client
keepalive 60 300
cipher BF-CBC
comp-lzo
max-clients 500
user nobody
group nogroup
persist-key
persist-tun
client-config-dir ccd
status status.log 2
log /var/log/openvpn.log
verb 6
daemon
How to configure openvpn and/or ubuntu so openvpn uses the virtual address?
Many thanks!