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

    TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)

    Scheduled Pinned Locked Moved OpenVPN
    29 Posts 4 Posters 7.2k 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.
    • J
      joedoe
      last edited by

      Ok

      My client (w10 x64) is connected to my cell phone with the ip adress : 192.168.43.39/24

      And here more informations concerning the architecture :

      box : 192.168.0.254
      |
      |
      WAN1FREE : 192.168.0.50/24
      The tunnel network : 10.0.8.0/24
      LAN : 192.168.1.3/24
      |
      |
      ....

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

        And again what does his wan IP being static have to do with a forward? His test box is on 192.168.0 along with his pfsense wan?

        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

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

          @joedoe said in TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity):

          my cell phone with the ip adress : 192.168.43.39/24

          Huh??? Dude that is never going to work!!! How is some device out on the public internet?? Behind a Carrier grade nat going to get to a rfc1918 address? Your pfsense wan IP.. Is your cell phone on some wifi network that is routed to this 192.168.0 network??

          Draw up where your cell phone is connecting and what this 192.168.0.254 box is???

          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
          • V
            viragomann @johnpoz
            last edited by

            @johnpoz
            If his pfSense is in a private network, but his WAN is a public address, there is obviously a router in front of it.
            I didn't realize that's a test environment with private networks.

            1 Reply Last reply Reply Quote 0
            • J
              joedoe
              last edited by

              @viragomann said in TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity):

              @johnpoz
              If his pfSense is in a private network, but his WAN is a public address, there is obviously a router in front of it.
              I didn't realize that's a test environment with private networks.

              Sorry maybe i wasn't enought accurate,
              I just want to create a vpn access to my network and i want to give access from the outside. (i pretty new in network configuration, i'm learning)
              I just want to test and configure a vpn so i just link my computer

              When i plug my computer to my box it works i can go to my network now.
              But i just try to share my cell phone to my computer and it doesn't works.

              0_1530875743400_3.PNG

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

                Confused to what this box is? Its some router - where is its internet connection?

                If your on the internet you can not connect to some rfc1918 address. You would have to connect to a public IP, which you could forward into pfsense sure.

                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
                • J
                  joedoe
                  last edited by

                  Yes it's a router, this box give a internet and have a public ip adresse.

                  1 Reply Last reply Reply Quote 0
                  • J
                    joedoe
                    last edited by

                    i just try from my home and i can't connect to the vpn i don't understand.

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

                      If your on the internet how do you think you can connect to some rfc1918 address 192.168.x.x ??

                      When you create your export you need to put in your PUBLIC IP.. ie your ISP public IP, and the port your using for openvpn would have to be forwarded to pfsense IP.

                      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

                      V 1 Reply Last reply Reply Quote 0
                      • V
                        viragomann @johnpoz
                        last edited by

                        @johnpoz said in TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity):

                        When you create your export you need to put in your PUBLIC IP.. ie your ISP public IP, and the port your using for openvpn would have to be forwarded to pfsense IP.

                        👏

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

                          BTW "box" is not a good term for your router ;)

                          Normally box wold refer to a end device, computer, iot, dvr, etc. Not a router doing nat ;)... Maybe if you would of called it your ISP box ;)

                          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
                          • J
                            joedoe
                            last edited by

                            @johnpoz said in TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity):

                            When you create your export you need to put in your PUBLIC IP.. ie your ISP public IP, and the port your using for openvpn would have to be forwarded to pfsense IP.

                            Thank you for the reply : what is isp public ip, is it the public ip ?
                            Could you tell me how to do that please ?

                            So sorry in france we call the router that give us internet : box.

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

                              @joedoe said in TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity):

                              in france we call the router that give us internet : box.

                              I'm using the same "box" (Livebox pro from Orange) as my up-stream "ISP router".
                              I set it's LAN IP to 192.168.10.1/24, handing over to pfSense an rfc1918 address like 192.168.**10.**9
                              192.168.10.9 is my pfSense WAN IP - this means that "Block private networks and loopback addresses" shouldn't be checked on the pfSense WAN interface settings page.
                              This is a typical router-after-router setup, quiet commn these days.

                              To make the VPN work : you have to add a NAT rule in your "ISP BOX/router" the VPN port, probably 1194 to the connected device called "pfSense", like :
                              0_1531121703641_5323956d-11db-4fec-bbf2-28497141ffdc-image.png

                              Your real WAN IP is https://whatismyipaddress.com/fr/mon-ip

                              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
                              • J
                                joedoe
                                last edited by

                                hello Gertjan,

                                Thank you for the reply.

                                I just add a nat rule to my free box but nothing change.
                                And if i understand i can connect to my local network because i don't use the good ip ?
                                in my configuration i've got : 192.168.0.50 1194 udp should i modify it and add my private ip ?

                                Here you can find the client configuration :
                                dev tun
                                persist-tun
                                persist-key
                                cipher AES-256-CBC
                                ncp-ciphers AES-256-GCM:AES-128-GCM
                                auth SHA1
                                tls-client
                                client
                                resolv-retry infinite
                                remote 192.168.0.50 1194 udp
                                auth-user-pass
                                ca pfSense-UDP4-1194-ca.crt
                                tls-auth pfSense-UDP4-1194-tls.key 1
                                remote-cert-tls server

                                and my free nat

                                0_1531124536449_Capture.PNG

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

                                  @joedoe said in TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity):

                                  remote 192.168.0.50 1194 udp

                                  That is a private IP and you can not talk to it from the internet.. What is your public IP?? Search whats my IP in google for gosh sake..

                                  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 @joedoe
                                    last edited by

                                    @joedoe said in TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity):

                                    remote 192.168.0.50 1194 udp

                                    Is this apart of the config of a client, that lives some where on the net ?
                                    In that case, it should be your WAN IP : this one : https://whatismyipaddress.com/fr/mon-ip

                                    Your FreeBox seems well NATted to me.
                                    This rule is needed of course, because by default, every incoming connection from "the world" will be blocked by default by any ISP-router (firewall) (your FreeBox).

                                    Now, incoming connections from anywhere (== the world or WAN) on port 1194, protocol UDP, will be directed to the IP used by pfSense, port 1194. If on pfSense the VPN is running, and you used the pfSense VPN Wizard, a rule on the WAN interface of pfSense has been created that looks like this :

                                    0_1531127405056_1575e49f-59df-4377-a98a-778c5ad35197-image.png

                                    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
                                    • J
                                      joedoe
                                      last edited by

                                      Problem solved.

                                      I 'm so sorry to be so stupid i was focus on my local network and forgot the client configuration and change the ip --'
                                      I put my public ip and all work fine now.

                                      Thank a lot all for your help.

                                      Have a great day (i't my bithday today :p = 30yo)

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