I use multiple op systems on my clients (Ubuntu, Mint, Alpine, Windows 7-10) and I'd like to access my home network through VPN and for example in a hotel I'd like to browse the internet through my home internet connection.
I read an interesting article here. It claims that if the VPN connection is not established and you have network connection (e.g. VPN server is not running, the client is not yet connected, etc.), then your client computer will use the local network without tunneling instead of the VPN. I guess the same can happen if I lose connection to my VPN server for some reason and I would not even recognize that I send out half of the messages unencrypted. Is there a way to prevent that from happening and forcing every app on a client computer to use VPN tunnel only?
I found a few similar questions in the topic, which were for example Win7 specific. What I am looking for is a general solution. So in theory what is the recipe to do this on any Windows and Linux system (without system specific details), and if it is not possible, then why?