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

    Problem users disconnect Open VPN pfsense 2.4.5-release

    Scheduled Pinned Locked Moved OpenVPN
    7 Posts 2 Posters 1.1k 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
      jalvarez.s
      last edited by

      Hi! community.

      I´m new here, well my english is not very good.

      i have problems with VPN Roadwarrior.

      my users sometimes disconect from VPN, the message in the server is:

      904dac79-c701-4f8d-8c73-6c9fece22af7-image.png

      these problems are random in the users.

      the services are ok.
      c59fb7c0-a157-4c5d-af1f-e82ee8f1dae9-image.png

      the message log user

      05d4e7d4-daa6-4ac0-9726-c500c8c87a27-image.png

      i don´t have multiwan in the config only one IP wan and lan.

      please i need help! thanks you!

      DaddyGoD 1 Reply Last reply Reply Quote 0
      • DaddyGoD
        DaddyGo @jalvarez.s
        last edited by

        @jalvarez-s said in Problem users disconnect Open VPN pfsense 2.4.5-release:

        users sometimes disconect from VPN

        Hi,

        Check the options in the description:
        https://openvpn.net/faq/tls-error-tls-key-negotiation-failed-to-occur-within-60-seconds-check-your-network-connectivity/

        inside info 😉
        https://forum.netgate.com/topic/73188/openvpn-errors-tls-handshake-failed

        Cats bury it so they can't see it!
        (You know what I mean if you have a cat)

        J 1 Reply Last reply Reply Quote 0
        • J
          jalvarez.s @DaddyGo
          last edited by

          @DaddyGo

          A perimeter firewall on the server's network is filtering out incoming OpenVPN packets (by default OpenVPN uses UDP or TCP port number 1194).
          there is a VPN rule on the firewall PFSENSE ( internet-> wan ->port1194 UDP)
          720d2078-0729-4901-a7d9-db220c5141e2-image.png

          A software firewall running on the OpenVPN server machine itself is filtering incoming connections on port 1194. Be aware that many OSes will block incoming connections by default, unless configured otherwise.

          A NAT gateway on the server's network does not have a port forward rule for TCP/UDP 1194 to the internal address of the OpenVPN server machine.

          the open vpn server IP is the interface WAN so i don´t have a NAT.
          I used this video for the configuration OPEN VPN in pfsense.

          https://www.youtube.com/watch?v=hV7oGnps12E

          The OpenVPN client config does not have the correct server address in its config file.

          in this case I export the certificate files of connection (client export)

          The remote directive in the client config file must point to either the server itself or the public IP address of the server network's gateway.
          Another possible cause is that the windows firewall is blocking access for the openvpn.exe binary. You may need to whitelist (add it to the "Exceptions" list) it for OpenVPN to work.

          the connection from users is ok after X minutes or days inclusive.
          sometimes the problem occurs. now i have 283 users connected.
          it´s random. =(

          ac8a6e31-f062-49bb-ba68-001a30a59137-image.png

          the clock in pfsense use NTP protocolo, the users too.

          10c9a259-6a6c-404c-bb5c-9ce5da5303aa-image.png

          maybe i must change this option a 10 - 180.

          12f7ada7-af85-4e6c-9bc8-95ca589abdfc-image.png

          thanks you in advance!

          DaddyGoD 1 Reply Last reply Reply Quote 0
          • DaddyGoD
            DaddyGo @jalvarez.s
            last edited by DaddyGo

            @jalvarez-s said in Problem users disconnect Open VPN pfsense 2.4.5-release:

            sometimes the problem occurs. now i have 283 users connected.

            I have several questions when I look at this number:

            1. ISP speed
            2. load balancing between multiple VPN servers
            3. Move VPN port up to 40, 50K range

            @jalvarez-s "I used this video for the configuration OPEN VPN in pfsense."
            I would use this as a tutorial (the other is old):

            https://www.youtube.com/watch?v=7rQ-Tgt3L18
            or
            https://www.youtube.com/c/NetgateOfficial/search?query=openvpn

            @jalvarez-s "The OpenVPN client config does not have the correct server address in its config file.
            in this case I export the certificate files of connection (client export)"

            https://docs.netgate.com/pfsense/en/latest/vpn/openvpn/using-the-openvpn-client-export-package.html

            • remote (xyz.ovpn file line) 1.2.3.4 + UDP port to 40, 50 K

            @jalvarez-s "maybe i must change this option a 10 - 180."

            worth a try 😉

            BTW:
            are you running version 2.4.5-p1?
            is this correct?

            Cats bury it so they can't see it!
            (You know what I mean if you have a cat)

            J 1 Reply Last reply Reply Quote 0
            • J
              jalvarez.s @DaddyGo
              last edited by

              @DaddyGo

              I have several questions when I look at this number:

              ISP speed - no limit nacional speed (10Gb bandwidth).
              my users from the same country.

              load balancing between multiple VPN servers

              I don´t understand..

              only one server VPN without load balancing

              16f4d246-2ec7-4b19-82de-9ec8252869d7-image.png

              Move VPN port up to 40, 50K range

              in this case change the number port?

              621f9da6-dc28-48f3-981d-a58c4458ddbd-image.png

              i use version

              dba7301c-3b8c-41b1-9e48-7cb11778f997-image.png

              thanks you for your help!

              DaddyGoD 1 Reply Last reply Reply Quote 0
              • DaddyGoD
                DaddyGo @jalvarez.s
                last edited by

                @jalvarez-s said in Problem users disconnect Open VPN pfsense 2.4.5-release:

                ISP speed - no limit nacional speed (10Gb bandwidth).
                my users from the same country.

                By ISP speed is server-side speed, I mean.
                In case it's 10Gig frenetically enough for large number of connections.
                The only question is hardware.
                I guess you know OpenVPN is single-threaded, so it loads one CPU core only.
                So it’s not the number of CPU cores, but the CPU clock, for example, which is your friend.

                @jalvarez-s "load balancing between multiple VPN servers
                I don´t understand..
                only one server VPN without load balancing"

                Just a suggestion, not your example...😉
                In pfSense, you can configure multiple servers on a single device.
                Due to redundancy and for the sake of a high number of users, I would even run multiple servers in a separate box.
                (we do anyway)

                Move VPN port up to 40, 50K range
                @jalvarez-s "in this case change the number port?"

                Port scanners are familiar with the sub-2K range, yes the dedicated port(s) is 119X, but i wouldn't leave the port here, if you have that many VPN users.

                @jalvarez-s "i use version"

                Current version and 2.4.5-p1 contains very important fixes !!! (pfctl, etc.)

                23d05161-da56-456f-b9af-b03d8644b5e1-image.png

                Please Update...... ASAP
                https://docs.netgate.com/pfsense/en/latest/releases/2-4-5-p1-new-features-and-changes.html
                https://redmine.pfsense.org/versions/54

                Do not update packages before the OP system!

                Cats bury it so they can't see it!
                (You know what I mean if you have a cat)

                J 1 Reply Last reply Reply Quote 0
                • J
                  jalvarez.s @DaddyGo
                  last edited by

                  @DaddyGo

                  I have this processor

                  cc874b28-faad-4faf-8bec-4b7f7592cefc-image.png

                  I´ll look this =)

                  In pfSense, you can configure multiple servers on a single device.
                  Due to redundancy and for the sake of a high number of users, I would even run multiple servers in a separate box.
                  (we do anyway)

                  i´ll try change port

                  Port scanners are familiar with the sub-2K range, yes the dedicated port(s) is 119X, but i wouldn't leave the port here, if you have that many VPN users.

                  i´ll update the version this week.

                  Current version and 2.4.5-p1 contains very important fixes !!! (pfctl, etc.)

                  23d05161-da56-456f-b9af-b03d8644b5e1-image.png

                  Please Update...... ASAP

                  after update S.O , i´ll update this post about the vpn Connection.

                  Thansk you in advanced.

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