• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
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 Jul 7, 2018, 6:11 AM

    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 Jul 7, 2018, 7:24 AM

      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
      • J
        johnpoz LAYER 8 Global Moderator
        last edited by Jul 7, 2018, 10:16 AM

        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 Jul 7, 2018, 11:32 AM Reply Quote 0
        • V
          viragomann @johnpoz
          last edited by Jul 7, 2018, 11:32 AM

          @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
          • J
            johnpoz LAYER 8 Global Moderator
            last edited by Jul 7, 2018, 1:11 PM

            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 Jul 9, 2018, 6:37 AM

              @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.

              G 1 Reply Last reply Jul 9, 2018, 7:37 AM Reply Quote 0
              • G
                Gertjan @joedoe
                last edited by Jul 9, 2018, 7:37 AM

                @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 Jul 9, 2018, 8:23 AM

                  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

                  G 1 Reply Last reply Jul 9, 2018, 9:11 AM Reply Quote 0
                  • J
                    johnpoz LAYER 8 Global Moderator
                    last edited by Jul 9, 2018, 8:58 AM

                    @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
                    • G
                      Gertjan @joedoe
                      last edited by Jul 9, 2018, 9:11 AM

                      @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 Jul 11, 2018, 6:59 AM

                        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
                        29 out of 29
                        • First post
                          29/29
                          Last post
                        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                          This community forum collects and processes your personal information.
                          consent.not_received