Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Android clients and remote DNS settings

    Scheduled Pinned Locked Moved OpenVPN
    7 Posts 3 Posters 2.3k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      MaxPF
      last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • D
        doktornotor Banned
        last edited by

        This is just not possible without rooting the phone.

        1 Reply Last reply Reply Quote 0
        • M
          MaxPF
          last edited by

          As I mentioned, both phone and tablet are rooted and running CM 10.1 rom.

          1 Reply Last reply Reply Quote 0
          • D
            doktornotor Banned
            last edited by

            Well, then ask @CM forum.

            1 Reply Last reply Reply Quote 0
            • M
              MaxPF
              last edited by

              @doktornotor:

              Well, then ask @CM forum.

              Why even bother to type a reply like that?

              1 Reply Last reply Reply Quote 0
              • D
                doktornotor Banned
                last edited by

                @MaxPF:

                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.

                1 Reply Last reply Reply Quote 0
                • K
                  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.

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post
                  Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.