How 2 Turn Android Device Into VPN kill Switch w/ DNS Leak Prevention 4 Any O.S. Regarding VPN kill switch...
I have a theory that I have to finish fully testing. I believe any Android Cell Phone or Android device that supports tethering or hotspot can be turned into a VPN Router that will work on any operating system as a VPN Kill Switch and push all DNS traffic, IPv4 and IPv6 through the VPN tunnel, preventing any DNS or IP leak for SoftEther/OpenVPN VPN's.
I am NOT claiming this is going to be better than the methods we have now. What I'm claiming is this will work on every OS. Every version of Linux, Windows, Mac, and ChromeOS. Possibly even Windows 10 with Smart Multi-Homed Name Resolution.
There is an app for Android called " OpenVPN for Android". The OpenVPN for Android app has the option to properly route all IPv4 and IPv6 DNS traffic over the VPN.
The OpenVPN for Android app can also be setup to work as a kill switch. The app will automatically attempt to reconnect to your VPN in the event of a VPN dropout while not allowing any traffic to pass through the connection until it reconnects.
This will work by just installing, setting up the app, changing a couple options, and tethering if used with Cellular Data connected to the VPN. Unless your phone allows you to tether while on WiFi.
I plan on rooting a old Android phone and using the WiFi Tether Router app which will allow phones to connect to WiFi and Tether at the same time that normally wouldn't be able to.
I only completed testing on a Raspberry Pi & NVidia Shield using WiFi and on my Galaxy S6 edge + with Cellular Data Connection while tethered. It works perfectly so far.
This App runs on underlying Unix/Linux which is why it only works with Android and is able to accomplish this through setting rules with iptables.
Last edited by aspkin; 05-17-2018 at 12:59 AM.
Reason: vpn kill switch
|