UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    [solved] OpenVPN VPNSecure connected but no network

    Scheduled Pinned Locked Moved Support
    15 Posts 5 Posters 5.3k Views 3 Watching
    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.
      • E Offline
        elastic
        last edited by elastic

        Hi, I'm struggling to setup my VPN - tried Mullvad and VPNSecure, both are working fine on all my other devices.
        As I can switch them on after the initial setup and the button turns green I assume I didn't do everything the wrong way, but after connecting the VPN there is no more network connection - neither internet not home network.
        Surely I'm missing something that should be done but I tried everything I could imagine without success ...
        Many thanks for any help!

        1 Reply Last reply Reply Quote 0
        • R Offline
          revoltevidente
          last edited by

          Hi! I'm interested in setting up VPN on UT. But no one else has tips for that... Could you post pictures of your installation? The GUI is not as simple as connecting to a VPN through the terminal ..
          Thanks 😉

          Ubuntu is the way / Nexus 5

          1 Reply Last reply Reply Quote 0
          • E Offline
            ernest
            last edited by

            Try to tune the setup with the app enclosed https://github.com/ubports/ubuntu-touch/issues/46

            look also in advanced setting

            E 1 Reply Last reply Reply Quote 0
            • E Offline
              elastic @ernest
              last edited by elastic

              @ernest thanks, I already used this app to try different settings ...no success ...

              1 Reply Last reply Reply Quote 0
              • M Offline
                malditobastardo
                last edited by

                I am also interested on this, specially because I use Mullvad as my vpn too!

                1 Reply Last reply Reply Quote 0
                • E Offline
                  elastic
                  last edited by

                  Today I tried the terminal way - both VPN scripts are running and are ending with > Initialization Sequence Completed < but there is no working VPN tunnel as the ip is still the one from my provider ... - in addition the terminal is stuck on > Initialization Sequence Completed < only a reboot kills the process
                  As said same behavior with two different VPN providers and two different approaches (mullvad is password and VPNS is with keys ...)
                  All terminal outputs seem ok, no errors - but no VPN tunnel (but still working network though 😉 )

                  any ideas? thx

                  1 Reply Last reply Reply Quote 0
                  • E Offline
                    ernest
                    last edited by

                    did you try with sudo ?

                    E 1 Reply Last reply Reply Quote 0
                    • E Offline
                      elastic @ernest
                      last edited by

                      @ernest yes

                      1 Reply Last reply Reply Quote 0
                      • E Offline
                        ernest
                        last edited by

                        @elastic
                        Can you try to activate verbose mode and share the logs (after removing sensitive data) ?

                        E 1 Reply Last reply Reply Quote 0
                        • E Offline
                          elastic @ernest
                          last edited by elastic

                          @ernest

                          log deleted

                          1 Reply Last reply Reply Quote 0
                          • E Offline
                            ernest
                            last edited by

                            Thanks,
                            Next time you share log please use : https://paste.ubuntu.com/

                            So it seems that the connection is set it up correctly and also it's normal that your browser doesn't get the VPN ip. My phone has the same behavior while connecting from phablet-shell.

                            I guess the issue remains in your system setting config. Open the VPN editor app and took a screenshot of each page your vpn setting with personal data hidden.

                            E 1 Reply Last reply Reply Quote 0
                            • E Offline
                              elastic @ernest
                              last edited by elastic

                              @ernest sorry for the late response - had to work ...

                              pics deleted

                              1 Reply Last reply Reply Quote 0
                              • E Offline
                                ernest
                                last edited by ernest

                                So, look in the header of your .ovpn file, all the info should be present in the client config.

                                For instance are you sure about no additional TLS auth ?

                                my header look like

                                dev tun
                                proto udp
                                remote utouch.org 8080
                                resolv-retry infinite
                                nobind
                                persist-key
                                persist-tun
                                key-direction 1
                                remote-cert-tls server
                                tls-version-min 1.2
                                verify-x509-name server_retefdr434534erger34345 name
                                cipher AES-256-CBC
                                auth SHA256
                                comp-lzo
                                verb 1
                                

                                See below the config matching

                                0_1517463171955_screenshot20180131_232529811.png

                                0_1517463182140_screenshot20180131_232538893.png

                                0_1517463194570_screenshot20180131_232547236.png

                                0_1517463200973_screenshot20180131_232554252.png

                                Ps don't forget to create/copy paste your key and ca correctly in a dedicated file.

                                E 1 Reply Last reply Reply Quote 0
                                • E Offline
                                  elastic @ernest
                                  last edited by

                                  @ernest
                                  thanks again, yes, I'm sure about the TLS auth it's not needed.

                                  anyway I got the VPNSecure to work - I have just no idea how because I changed nothing in my config ... - what I did was running the ovpn in terminal - reboot - opened the GUI VPN config and closed it again, rebooted and suddenly it worked ...

                                  After that I was able to configure several VPN servers at the same provider (different countries ...) but hat to reboot after every single setup to get it working - if I setup two servers without a reboot between only the latest was working ...

                                  Maybe I should note that it has been like this on SailfishOS before they fixed their VPN-setup-UI (after a year or so ...)

                                  sadly no success with Mullvad (work on Sailfish so the config is ok ...) but for now I'm happy with one working VPN

                                  1 Reply Last reply Reply Quote 0
                                  • B Offline
                                    bf
                                    last edited by

                                    Not sure if I should post this here or start a new post as this is VPN-related but maybe a different problem.

                                    I’ve also been having difficulties getting VPN working correctly. However, the problem was different to what I’ve seen mentioned in this and other posts about VPN problems.

                                    My VPN provider is VyprVPN.

                                    First I tried setting things up using the standard VPN GUI, and it seemed to be working. After setting up the details in the GUI, and then flipping the switch, the switch turned green. However, opening a browser and navigating to a site that displays my IP address showed the IP address of my ISP and not my VPN proxy server, so clearly the VPN tunnel was not being used.

                                    I installed the enhanced GUI app of Pete Woods and tried using that, but the result was the same. So I resorted to the command line. I hadn’t used openvpn before, so before trying it on the phone I tried it on my Ubuntu 16.04 computer. Using the .ovpn file downloaded from the VyprVPN website, I was able to get the VPN connection working fine with sudo openvpn Config.ovpn on the computer, so I tried the same on my phone.

                                    Unfortunately, I got the same result as with the GUI. The connection appears to be established without any errors or warnings in the log, which finishes with ‘Initialization Sequence Completed‘, but checking my IP in a web browser gives the same result as above. Also, closing the connection in the terminal with CTRL+C reported a few errors when trying to delete routes, saying RTNETLINK answers: No such process, ERROR: Linux route delete command failed: external program exited with error status 2.

                                    After a lot of searching, I inserted the line ‘route-delay 5’ at the end of my config.ovpn file and this solved the problem. The forum where I found the suggestion didn’t give much explanation, so I am not sure what the exact problem was or why this solves it. I’m certainly no expert in openvpn.

                                    Sorry for the long post, but hopefully this may help anyone else having a similar problem or maybe the Ubports developers working on the VPN gui app. I can post log files if anyone wants.

                                    1 Reply Last reply Reply Quote 2
                                    • First post
                                      Last post