Hi,
i need to configure a solution proposed in the
https://openvpn.net/community-resources/implementing-a-load-balancing-failover-configuration/ guide but i need that when a client connected to server1 will obtain the same ip as if he connect to server2 and that both are reachable. my server1 and server2 config thus far is like:
port 1195
proto udp
dev tun1
mode server
tls-server
ifconfig 10.0.0.1 10.0.255.254
ifconfig-pool 10.0.0.10 10.0.255.253
route 10.0.0.0 255.255.0.0
ifconfig-pool-persist /etc/openvpn/server/ipp.txt
client-config-dir /etc/openvpn/client/ccd
push "route 10.0.0.2"
push "route 10.0.0.0 255.255.0.0"
push "dhcp-option DNS 8.8.8.8"
port 1194
proto udp
dev tun1
mode server
tls-server
ifconfig 10.0.0.2 10.0.255.254
ifconfig-pool 10.0.0.10 10.0.255.253
route 10.0.0.0 255.255.0.0
ifconfig-pool-persist /etc/openvpn/server/ipp.txt
client-config-dir /etc/openvpn/client/ccd
push "route 10.0.0.2"
push "route 10.0.0.0 255.255.0.0"
push "dhcp-option DNS 8.8.8.8"
client
dev tun
proto udp
remote server2 1194
remote server1 1195
now if a single client connect to server1 or server 2 it wiil get the 10.0.0.10 but it's not reachable from the server that is not connected to. It's possible to do this with openvpn or i have to use some external tool?
thank in advance for your help 🙂