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

    OVPN export to iOS fails

    Scheduled Pinned Locked Moved OpenVPN
    16 Posts 5 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.
    • H
      havockk
      last edited by havockk

      192583f0-cbbe-402a-8ec5-5acb9addd2ea-image.png

      ok, got that working, now it the connection is timing out.... any ideas?

      I can see the inbound firewall rule for open vpn accepting the traffic. it just does not connect.

      viktor_gV 1 Reply Last reply Reply Quote 0
      • viktor_gV
        viktor_g Netgate @havockk
        last edited by

        @havockk This is different connection issue
        check your Firewall rules and OpenVPN settings,
        post more details - config, log, etc.

        1 Reply Last reply Reply Quote 0
        • H
          havockk
          last edited by

          33a93237-04f1-49f9-91f0-d914b8c7e0bc-image.png

          packet capture from WAN interface:
          18:13:24.100702 10:e8:78:e0:21:d8 > 40:62:31:0a:71:c8, ethertype IPv4 (0x0800), length 128: (tos 0x0, ttl 53, id 28697, offset 0, flags [none], proto UDP (17), length 114)
          [client wan address].1464 > [server wan address].1195: [udp sum ok] UDP, length 86

          18:13:24.100942 40:62:31:0a:71:c8 > 00:12:1e:22:a3:f0, ethertype IPv4 (0x0800), length 140: (tos 0x0, ttl 64, id 51957, offset 0, flags [none], proto UDP (17), length 126)
          [server wan address].1195 > [client wan address].1464: [udp sum ok] UDP, length 98

          When I attempt to capture packets on the openvpn interface, no information is in the output.

          e2278343-f156-4562-afde-c2c6fc885e29-image.png

          982f6d27-ff53-4219-b5fa-59812bfe1867-image.png

          68caed5f-30cf-49ae-9f88-1e6190b692da-image.png

          3116a3c9-e8e0-40c0-996c-97bc9dcbe997-image.png

          257da751-20cb-4128-89c7-19f3350bdf2f-image.png

          88f24f74-3ba6-45e9-8829-77755015e151-image.png

          bcd8aace-db7c-4a6c-9964-9be784178be1-image.png

          Is this enough information?

          1 Reply Last reply Reply Quote 0
          • H
            havockk
            last edited by

            Client profile export

            persist-tun
            persist-key
            cipher AES-256-CBC
            ncp-ciphers AES-128-GCM
            auth SHA512
            tls-client
            client
            remote [Server WAN address] 1195 udp4
            verify-x509-name "Home vpn" name
            auth-user-pass
            remote-cert-tls server
            compress

            1 Reply Last reply Reply Quote 0
            • H
              havockk
              last edited by

              Bump

              1 Reply Last reply Reply Quote 0
              • RicoR
                Rico LAYER 8 Rebel Alliance
                last edited by

                The difference to my working iOS config (running the latest iOS and OpenVPN app) is this:
                dev tun
                cipher AES-256-GCM
                ncp-disable
                auth SHA256
                resolv-retry infinite
                remote [Server WAN address] 1195 udp

                -Rico

                1 Reply Last reply Reply Quote 0
                • GertjanG
                  Gertjan
                  last edited by

                  This works also just fine with all kind of "I" stuff :

                  dev tun
                  tun-ipv6
                  persist-tun
                  persist-key
                  cipher AES-128-GCM
                  ncp-ciphers AES-128-GCM
                  auth SHA256
                  tls-client
                  client
                  resolv-retry infinite
                  remote work.work-domain.tld 1194 udp4
                  .....

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

                  1 Reply Last reply Reply Quote 0
                  • RicoR
                    Rico LAYER 8 Rebel Alliance
                    last edited by

                    Maybe there is a problem with auth SHA512 and iOS?

                    -Rico

                    1 Reply Last reply Reply Quote 0
                    • johnpozJ
                      johnpoz LAYER 8 Global Moderator
                      last edited by johnpoz

                      @Rico said in OVPN export to iOS fails:

                      Maybe there is a problem with auth SHA512 and iOS?

                      No since I just set it and worked just fine..

                      iphone XR running 13.5.1 with openvpn connect 3.1.2 (3096)

                      persist-tun
                      persist-key
                      cipher AES-128-CBC
                      ncp-ciphers AES-128-GCM:AES-192-GCM:AES-256-GCM:AES-128-CBC:AES-192-CBC:AES-256-CBC
                      auth SHA512
                      tls-client
                      client
                      remote 64.53.x.x 1194 udp4
                      verify-x509-name "pfsenseopenvpn" name
                      remote-cert-tls server
                      

                      connected.png

                      An intelligent man is sometimes forced to be drunk to spend time with his fools
                      If you get confused: Listen to the Music Play
                      Please don't Chat/PM me for help, unless mod related
                      SG-4860 24.11 | Lab VMs 2.8, 24.11

                      1 Reply Last reply Reply Quote 0
                      • RicoR
                        Rico LAYER 8 Rebel Alliance
                        last edited by

                        udp4 VS udp? :-)

                        -Rico

                        1 Reply Last reply Reply Quote 0
                        • johnpozJ
                          johnpoz LAYER 8 Global Moderator
                          last edited by johnpoz

                          Well not running it on IPv6.. So yeah its set to UDP v4 only...

                          An intelligent man is sometimes forced to be drunk to spend time with his fools
                          If you get confused: Listen to the Music Play
                          Please don't Chat/PM me for help, unless mod related
                          SG-4860 24.11 | Lab VMs 2.8, 24.11

                          1 Reply Last reply Reply Quote 0
                          • RicoR
                            Rico LAYER 8 Rebel Alliance
                            last edited by

                            Yeah NM, I see Gertjan is also using udp4 in the config like TO.

                            -Rico

                            GertjanG 1 Reply Last reply Reply Quote 0
                            • johnpozJ
                              johnpoz LAYER 8 Global Moderator
                              last edited by johnpoz

                              Why would I set it for both if I only want it on v4 ;)

                              The export wizard auto does that, since that is how the server instance is set.

                              The wan interface doesn't have v6, so if I wanted to do vpn over ipv6 I would have to setup a different instance via the he tunnel interface. No point in that even though my phone only gets an IPv6 address, it can connect to the IPv4 address just fine.. Many a mobile carrier going that route.. T-mobile only hands out IPv6 for phones atleast here in chicagoland.

                              The one real use of IPv6 currently - supply IPs to the BILLIONS of mobile phones ;)

                              An intelligent man is sometimes forced to be drunk to spend time with his fools
                              If you get confused: Listen to the Music Play
                              Please don't Chat/PM me for help, unless mod related
                              SG-4860 24.11 | Lab VMs 2.8, 24.11

                              1 Reply Last reply Reply Quote 0
                              • GertjanG
                                Gertjan @Rico
                                last edited by

                                @Rico said in OVPN export to iOS fails:

                                Yeah NM, I see Gertjan is also using udp4 in the config like TO.

                                You bet it is !
                                I'm actually VPN-into-work just to get my iPhone 'multistacked' ^^
                                All this over an UDP IPV4 link of course.

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

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