Hi Bo, On Sun, 17 Oct 2021 11:39:17 +0200 Bo Berglund <bo.bergl...@gmail.com> wrote:
[...] > If eth0 then loses its connection to the Internet but the usb0 is > still running and connected but at a higher metric than eth0, what > happens? Will OpenVPN see the lost connection and try to reconnect > through the ub0 instead? Yes, it will. After the tunnel collapses, OpenVPN will again resolv the remote IP address via DNS and then try to reconnect. The interface as a base for the tunnel is defined by your routing setup. Most likely you install the default route to the interface, with is currently online. This route will point the OpenVPN packets to the remote site. You could prevent behaviour if you wanted, e.g. with --connect-retry-max, --auth-retry and more (man openvpn) > Or does it see that eth0 is still electrically connected (to the > router) so it remains on that and fails the connection? This could be a problem in case you install a static default route. The eth0 interface will stay up, even when the Link is gone. This will depend on the networking manager of your choice and how you configured it. In any case you most likely want to have a mechanism, that starts another interfaces (modem, Ethernet, WLAN) in case the currently used interface becomes offline. > The loss of connection on eth0 may be because of > 1) an ISP failure which disconnects Internet from the incoming router > 2) or it may be because the Ethernet network cable is pulled out > > Will OVPN try to find another interface that has internet connection > in order to re-establish the tunnel or is all lost? OpenVPN will not search anything, it simplyl send its packets. If or how they get transported to the server depends on the routing setup of your box. -- Servus Michael _______________________________________________ Openvpn-users mailing list Openvpn-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openvpn-users