Android clients and remote DNS settings
I just setup OpenVPN on my Alix box at home to use with my Android tablet and phone (both rooted). I want to route all traffic through the vpn using pfSense as the default GW, as well as use it as DNS forwarder.
I manage to get everything working, except the DNS part. Despite having set the internal IP as DNS in the Opnen VPN server settings, for some reason the OpenVPN client on Android ignores that and keeps using the default DNS server set by the WiFi or 3G connection. I have to use a separate app (Set DNS) in order to change it to the internal pfSense IP.
It's not a big deal, since I have the workaround, but it would be nice to get it working without having to manually switch DNS every time I connect or disconnect. Thanks.
This is just not possible without rooting the phone.
As I mentioned, both phone and tablet are rooted and running CM 10.1 rom.
Well, then ask @CM forum.
Why even bother to type a reply like that?
Probably since "OpenVPN client on Android ignores that [setting]" so CM forums would be the proper place to ask??? ::) This is an Android problem, not pfSense one.
kejianshi last edited by
Giving this a little more thought, I checked the log files for my OpenVPN client on Android, just to be sure that it wasn't an issue with the config file being exported form PFsense. Its not.
Using PFsense, the DNS is being pushed just fine using Openvpn Connect, so the PFsense end is working fine.
It really must be your Android Client's issue.