abhiman
Hi,
I am trying to connect a LAN(50.0.0.0/24) behind my openvpn server to a network behind my client (40.0.0.0/24). My VPN subnet is 10.8.0.0/24.
On my server side LAN i have ensured that all traffic destined to 40.0.0.0/24 network is being routed to my openvpn server and on the server I have added a "ccd" directive in which I have added the iroute statement "iroute 40.0.0.0 255.255.255.0". My client name is "cl_gw_1".
Everything works fine when there is a single client ("cl_gw_1") , for redundancy purpose I added another client (cl_gw_2) which is also connected to the same LAN (40.0.0.0/24) and on the server I added an additional ccd for "cl_gw_2" with iroute as "iroute 40.0.0.0 255.255.255.0".
However when the second client connects to my server, I observed the cl_gw_2 iroute over writes the earlier rule and all traffic is sent to cl_gw_2.
Is there a way i could loadbalance my traffic between cl_gw_1 and cl_gw_2 ?
Also when "cl_gw_2" disconnects from my server the traffic destined to 40.0.0.0 network does not flip back to using cl_gw_1 , is there a way this failover can be achieved ?
Openvpn version(client and server) :
OpenVPN 2.4.9 x86_64-redhat-linux-gnu [Fedora EPEL patched] [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on May 10 2020
library versions: OpenSSL 1.0.2k-fips 26 Jan 2017, LZO 2.06
thanks,
Abhiman