New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
How to use Failover IP on OpenVPN? (OVH)
Hi everyone,
been a bit of a lurker on here for a while now, however I have come to a point where I need a little help and I thought some where here must of come across my scenario.
I have an OVH VPS with multiple FailoverIPS.
Example:
Main IP: 88.12.12.43
Failover: 78.23.23.12
I want to use the failover ip as the ip given to the openvpn client, however when ever it connects i always get the Main IP, I have set OpenVPN to listen on this connection from the admin pannel etc.
Can anyone help? - if you need more info please let me know.
Comments
Hi,
Did you bind the IPs to the network interface?
yes the ips appear in the admin pannel and all function. as I can connect to the OpenVPN with the failover, however it gives me the mainip as my actual ip.
Screenshot: http://pasteboard.co/3U72gaNc5.png
hmmm, I found this snippet while doing some further searching.
iptables -t nat -I POSTROUTING -s [VPN CLIENT IP] -j SNAT --to-source [FAILOVER IP]
where someone used this as an example:
iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -j SNAT --to-source [FAILOVER IP]
however I am not clear what I need to copy from openvpn admin pannek and replace the 10.8.0.0/24 with.
Found this at the following link: https://lowendtalk.com/discussion/86595/openvpn-and-failover-ips