INTERNAL ROUTE AUTOMATIC FAILOVER
Posted: Wed Sep 28, 2022 7:30 pm
What I want to achieve is very simple but I DO NOT know how to it.
I have two openvpn clients (I want to set them up in active/standby mode), both connected to the same LAN, I am using Keepalived virtual ip address on LAN interface so all computers on LAN can always connect when one server is down for outgoing traffic.
Both clients have been configured with same iroute setting as they save same LAN, so on boot up they both advertise same LAN to openVPN server, what I thought was, when one client is down, we can still reach LAN via a second client.
This is not happening,
What is happening is, when I ping an ip address on LAN, openVPN server associate that IP with a client which booted up last, and when I turn off this client, openvpn server does which to using another client who know how to reach to this same subnet, my ping fail that's it.
How can I make openvpn server switch to another client who knows how to reach to this LAN?
I have two openvpn clients (I want to set them up in active/standby mode), both connected to the same LAN, I am using Keepalived virtual ip address on LAN interface so all computers on LAN can always connect when one server is down for outgoing traffic.
Both clients have been configured with same iroute setting as they save same LAN, so on boot up they both advertise same LAN to openVPN server, what I thought was, when one client is down, we can still reach LAN via a second client.
This is not happening,
What is happening is, when I ping an ip address on LAN, openVPN server associate that IP with a client which booted up last, and when I turn off this client, openvpn server does which to using another client who know how to reach to this same subnet, my ping fail that's it.
How can I make openvpn server switch to another client who knows how to reach to this LAN?