cheetahexpert
Hi,
I am not sure if this is the right forum to ask for openVPN support/advice (??)... but here is a simple question:
What is the correct way to redirect all my traffic through the openVPN connection, for when I am connected to a Wi-Fi network that I don't (want to) trust?
I've read adding "redirect-gateway def1" but on my android app, when I select the option to redirect all traffic, they instead add "redirect-private unblock-local" to the client config.
I am looking for the client-side configuration command, not the server side (as this is not something I want to always enforce).
I will use this command both on my laptop (Windows pc) and my Android phone. Are either commands equivalent?
Thanks
cheetahexpert
I see that this forum is very quiet so I don't really expect an answer, but I'll share what I learned in case others have the same question:
1- Basically, "unblock-local" is specific to OpenVPN for Android, which is why they add that command to the config.
2- For the config on my PC, "redirect-gateway" is what should be used.
However, I am wondering the difference between adding the line "redirect-gateway def1" (as I have read I should do) and only using the line "redirect-gateway" (as in the sample config files I received from various source)? Or are they both doing the exact same thing?
Thanks
imjebran
Hello cheetahexpert,
I am using "redirect-gateway def1" which is worked for both Android and PC, The difference you mentioned are must be related to your NAT firewall.
Regards,
Jebran.