• 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

Scheduled Pinned Locked Moved OpenVPN
7 Posts 2 Posters 853 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.
  • M
    madrada
    last edited by madrada Mar 8, 2019, 4:22 PM Mar 8, 2019, 4:21 PM

    Hi,

    I get this error when I try to connect OpenVPN remotely.my pfsense configuration:ISP router:0_1552061475416_2019-03-08.png

    internal ISP router IP: 192.168.1.1 (192.168.1.0/24)

    pfsense: WAN: 192.168.1.2
    LAN: 192.168.0.1 (192.168.0.0/24)

    Firewall: 0_1552061663642_2019-03-08 (1).png

    OpenVPN server config: 0_1552061791684_2019-03-08 (2).png

    if I try in WAN pfsense network (192.168.1.0/24) with OpenVPN works very good. But if I try from internet, I cant access and have the TLS handshake failed

    any idea??

    thank you!!

    1 Reply Last reply Reply Quote 0
    • R
      Rico LAYER 8 Rebel Alliance
      last edited by Mar 8, 2019, 5:06 PM

      You need to forward the OpenVPN port from your ISP router to pfSense.

      -Rico

      1 Reply Last reply Reply Quote 0
      • M
        madrada
        last edited by Mar 8, 2019, 5:57 PM

        and this is in port triggering?

        1 Reply Last reply Reply Quote 0
        • R
          Rico LAYER 8 Rebel Alliance
          last edited by Mar 9, 2019, 11:13 AM

          Sorry I was on mobile yesterday and did not saw your screenshots (no idea why).
          I don't know your ISP router but the "Virtual Server" config looks okay. I'd remove the TCP line, you only need UDP there when running OpenVPN in default UDP mode.
          Wrong is your pfSense Port Forward. Running OpenVPN on top of pfSense only need Firewall Rules on WAN, no NAT/Port Forwarding.
          What is 192.168.0.206 anyway?
          Show your WAN Firewall Rules.
          BTW: When creating some OpenVPN RAS via the Wizard everything you need in pfSense is automatically created for you.

          -Rico

          1 Reply Last reply Reply Quote 0
          • M
            madrada
            last edited by Mar 11, 2019, 7:44 AM

            On ISP router, I rremove the TCP line and only running the UDP mode.

            Pfsense firewall rules: 0_1552289566133_2019-03-11.png

            I remove the NAT por forward in pfsense firewall. Now I only have WAN rules in pfsense and UDP mode in NAT ISP router.

            The OpenVPN client, look likje this. I have out bytes but no in:
            0_1552290283232_Foto openvpn.png

            1 Reply Last reply Reply Quote 0
            • R
              Rico LAYER 8 Rebel Alliance
              last edited by Rico Mar 11, 2019, 8:32 AM Mar 11, 2019, 8:30 AM

              You need to put your public IP in the OpenVPN client config file when testing from the Internet.
              Because your pfSense WAN is RFC1918 private network the export wizard put 192.168.1.2 in your client config which of course is not routed in the Internet.
              So open your .ovpn file with Notepad++ for example and replace
              remote 192.168.1.2 1194 udp
              with
              remote 1.2.3.4 1194 udp
              1.2.3.4 = your public IP

              -Rico

              1 Reply Last reply Reply Quote 0
              • M
                madrada
                last edited by Mar 11, 2019, 9:06 AM

                It works!! I think the error was the public IP,

                thank you !!!!

                1 Reply Last reply Reply Quote 0
                1 out of 7
                • First post
                  1/7
                  Last post
                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                  This community forum collects and processes your personal information.
                  consent.not_received