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

    Android client routes all traffic via VPN

    Scheduled Pinned Locked Moved OpenVPN
    9 Posts 3 Posters 1.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.
    • GilG
      Gil Rebel Alliance
      last edited by

      After performing client exports for windows and for Android,
      I find that Windows allows internet browsing whilst an OpenVPN connection to the Server is active,
      but the Android client does not.
      Do I need to add something to the ovpn config file for Android?

      11 cheers for binary

      1 Reply Last reply Reply Quote 0
      • A
        AndrewZ
        last edited by

        Check for "redirect-gateway" in the config files you have.

        1 Reply Last reply Reply Quote 0
        • GilG
          Gil Rebel Alliance
          last edited by

          @AndrewZ:

          Check for "redirect-gateway" in the config files you have.

          I did check for that, it's not included.
          Was wondering if I had to specify the the inverse?

          Here is my config (minus the certs):

          persist-tun
          persist-key
          cipher AES-256-CBC
          auth SHA1
          tls-client
          client
          remote xxx.dyndns.org 11111 tcp-client
          verify-x509-name "xxx" name
          auth-user-pass
          remote-cert-tls server

          11 cheers for binary

          1 Reply Last reply Reply Quote 0
          • A
            AndrewZ
            last edited by

            Make sure you're using the right client on Android: https://play.google.com/store/apps/details?id=de.blinkt.openvpn
            Then check your connection settings on the "Routing" tab.
            I'm also thinking about possible DNS issues, worth to check as well.

            1 Reply Last reply Reply Quote 0
            • GilG
              Gil Rebel Alliance
              last edited by

              Thanks for your reply.

              • Already using suggested app.
              • Config also looks correct, from the routing tab.
              • Unsure about possible DNS issues.

              Possibly a Samsung (S6 - Nougat) issue?

              11 cheers for binary

              1 Reply Last reply Reply Quote 0
              • D
                duren
                last edited by

                It should be working. Make sure in the app you set in a profile

                1. Routing - ipv4 and possibly ipv6: check use default route
                2. Allowed apps - use formally apps except selected and don't select any.

                1 Reply Last reply Reply Quote 0
                • A
                  AndrewZ
                  last edited by

                  @duren:

                  1. check use default route

                  I think this is what OP is trying to avoid, i.e. VPN connection should be used only to access resources on another network. Please correct me if I'm wrong.

                  1 Reply Last reply Reply Quote 0
                  • GilG
                    Gil Rebel Alliance
                    last edited by

                    @AndrewZ:

                    @duren:

                    1. check use default route

                    I think this is what OP is trying to avoid, i.e. VPN connection should be used only to access resources on another network. Please correct me if I'm wrong.

                    Correct, that is what I am trying to avoid.

                    Everything is on default, & client export works correctly for windows but not for Android.
                    I will attempt it on iOS.

                    11 cheers for binary

                    1 Reply Last reply Reply Quote 0
                    • GilG
                      Gil Rebel Alliance
                      last edited by

                      Did it on iOS - All correct.

                      Re-installed on Samsung & rebooted; all is working correctly.

                      Thanks for your help anyway, it made me go through and check all settings.

                      11 cheers for binary

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