i have some networks connected to a OpenVPN server, each via 2 LTE routers and 2 OpenVPN tunnels.
Code: Select all
Router 1 local: 172.25.5.1 VPN: 10.92.1.5
Network 172.25.5.0/24 VPN server 10.92.0.1
Router 2 local: 172.25.5.2 VPN: 10.92.2.5
If i put
Code: Select all
iroute 172.25.5.0/24
I have two ideas:
- Set up a client-disconnect script so that every time a router disconnects the connection of the other router will be killed (re-established) - so it will renew its iroute.
- Set up two concurrent OpenVPN processes on the server side one for Router 1 and one for Router 2. So route checking and adjusting can be done by shell-script/iptables.
Thanks in advance!
Tim