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

    [solved] OpenVPN for Android permanently looses connection if radio is changing

    Scheduled Pinned Locked Moved OpenVPN
    6 Posts 3 Posters 573 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.
    • Bob.DigB
      Bob.Dig LAYER 8
      last edited by Bob.Dig

      I had this working once, but have lost the settings and I can't get it to work anymore.

      What I want:
      If I am coming home and my phone connects from mobile data to wifi, the connection to my openvpn server, hosted at home, should be automatically established. And the same goes for the other way around, leaving home etc.

      What I have to do now:
      Is to manually reconnect the openvpn connection in OpenVPN for Android. That will work because the server is in the config with an internal and an external address.
      But how to get this done automatically? The vpn connection in Android is flagged as an always-on vpn and I am using latest pfSense and OpenVPN for Android 0.7.23. The latest version from past week made some problems.

      V GertjanG 2 Replies Last reply Reply Quote 0
      • V
        viragomann @Bob.Dig
        last edited by

        @bob-dig
        2d4a284a-969b-44b4-bbfd-4dc09d169210-image.png
        This option checked? It isn't by default as far as I know.

        Bob.DigB 1 Reply Last reply Reply Quote 0
        • Bob.DigB
          Bob.Dig LAYER 8 @viragomann
          last edited by

          @viragomann This is checked here. Probably tried both options.

          1 Reply Last reply Reply Quote 0
          • Bob.DigB
            Bob.Dig LAYER 8
            last edited by Bob.Dig

            So I found a solution it looks like. Will write it down here for others and future myself.

            I changed the server from Remote Access (SSL/TLS + User Auth) to Remote Access (SSL/TLS) only,
            allowed Duplicate Connection.

            This time I used 0.7.24 of OpenVPN for Android and had included the OpenVPN 2.5 settings in the client configuration.

            Works permanently for now. 😃

            1 Reply Last reply Reply Quote 0
            • GertjanG
              Gertjan @Bob.Dig
              last edited by

              I've a question about :

              @bob-dig said in [solved] OpenVPN for Android permanently looses connection if radio is changing:

              If I am coming home and my phone connects from mobile data to wifi, the connection to my openvpn server, hosted at home, should be automatically established.

              When you come home, your Phone connects to the home Wifi using WPA2 or better - right ?
              For the exception of DNS traffic (if your not using DoH) all traffic is probably already TLS.
              You want your pHone to connect to the local OpenVPN server to add a third layer ?

              No "help me" PM's please. Use the forum, the community will thank you.
              Edit : and where are the logs ??

              Bob.DigB 1 Reply Last reply Reply Quote 0
              • Bob.DigB
                Bob.Dig LAYER 8 @Gertjan
                last edited by Bob.Dig

                @gertjan Yes. The reason is to use the always-on vpn-feature in android and not manually have to to anything for a vpn connection at anytime. Also OpenVPN for Android works as an app firewall, so I can block apps to access the internet at anytime.

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