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

    Client VPN is closing its connection randomly

    Scheduled Pinned Locked Moved OpenVPN
    35 Posts 3 Posters 7.8k 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
      mcury @jonny.b74
      last edited by mcury

      hm, that is really strange, ping,soft-exit, received..

      It seems that they are dropping you, and it's not your side (pfsense), that is dropping the connection..

      Are you sure that you have the most up to date ovpn file? Try to check if they have a newer version.. Do they have a guide to connect pfsense or any other client to their servers?
      Somehow they are saying that you are not using the tunnel, so they drop the connection for inactivity..

      do i need any firewall rules on my openvpn interface ?

      No, delete any rule from the openvpn interface, that would disrupt the reply-to to work.
      Leave only the rules in the KEEPSOLID interface you created..

      dead on arrival, nowhere to be found.

      J 1 Reply Last reply Reply Quote 0
      • J
        jonny.b74 @mcury
        last edited by

        @mcury

        They said they are not dropping me, i cannot be sure of that statement from them

        Yes it generates the config.ovpn file with a cert and key only for me everytime using their guide

        I have tried many of their servers various us, japan does not hold for more that 10-30 mins

        Their other protocols "L2TP" in pfsense work

        Works in windows openvpn client software with no changes direct import.

        Not sure why in pfsense Openvpn it drops for this provider, other provider i tested with works OOB

        M 1 Reply Last reply Reply Quote 0
        • M
          mcury @jonny.b74
          last edited by mcury

          @jonny-b74 Well, unfortunately I don't know either..

          If it works in Windows, and not in pfsense, maybe there is a difference in the openvpn version, or maybe you are not importing all the .opvn settings to pfsense..

          I would edit the .opvn file in Windows, and try to configure exactly as it is in the pfsense, are you using the custom options in pfsense?

          Edit: You can set a higher debug level in the openvpn configuration to see more details about the problem

          dead on arrival, nowhere to be found.

          J 1 Reply Last reply Reply Quote 0
          • J
            jonny.b74 @mcury
            last edited by jonny.b74

            @mcury said in Client VPN is closing its connection randomly:

            @jonny-b74 Well, unfortunately I don't know either..

            If it works in Windows, and not in pfsense, maybe there is a difference in the openvpn version, or maybe you are not importing all the .opvn settings to pfsense..

            I would edit the .opvn file in Windows, and try to configure exactly as it is in the pfsense, are you using the custom options in pfsense?

            I am using the settings from their config file and many combinations as such,
            I have edited the config.ovpn in pfsense directly and pasted the entire config file in there run the openvpn daemon manually in shell

            here are their settings

            reneg-sec 0
            persist-tun
            persist-key
            ping 5
            ping-exit 30
            comp-lzo no
            remote-random
            remote-cert-tls server
            auth-nocache
            route-metric 1
            cipher AES-256-CBC
            auth sha512

            Edit: tired with debug level 11 in openvpn pfsense not more details only the extra around the close time was was the SSL alert (write): warning: close notify

            M 1 Reply Last reply Reply Quote 0
            • J
              jonny.b74
              last edited by jonny.b74

              Interfaces
              c17f5eec-bcc7-44bc-8228-4a37e735fcaf-image.png

              Firewalls
              3832f71d-3ee7-4334-8c18-fb5e4bf77cdd-image.png

              4ab97cf9-7d0d-47b3-a21c-5b580c631e02-image.png

              NAT
              85f8069d-73af-40f8-a06f-674f9415ea4f-image.png

              M 1 Reply Last reply Reply Quote 0
              • M
                mcury @jonny.b74
                last edited by mcury

                @jonny-b74 said in Client VPN is closing its connection randomly:

                I am using the settings from their config file and many combinations as such,
                I have edited the config.ovpn in pfsense directly and pasted the entire config file in there run the openvpn daemon manually in shell

                I'm not sure if this is the way to go, in the past, I used PIA and Protonvpn, and at that time there was a guide to pfsense in their site which I followed and never faced any problems..
                The guide was all inside the pfsense GUI, no need to replace .opvn files in the pfsense..

                SSL alert (write): warning: close notify

                I just read a little about this error but so far I can't reach any conclusion about it, not even sure if this is really an error..

                dead on arrival, nowhere to be found.

                J 1 Reply Last reply Reply Quote 0
                • M
                  mcury @jonny.b74
                  last edited by

                  @jonny-b74 Regarding your firewall rules, NAT and interface images, can't see any problems there.
                  If you had a problem there, it wouldn't work.. You are browsing for 20 minutes, so it's not the NAT, rules and the interface..

                  1 - I would ask them a guide to pfsense, or the logs of your connection dropping..
                  2 - I would try to configure everything through the GUI, using the options available, and the rest I would use the custom options field.

                  This is all I can think at this moment.. Already started to drink a beer here hehehe

                  dead on arrival, nowhere to be found.

                  M J 2 Replies Last reply Reply Quote 0
                  • J
                    jonny.b74 @mcury
                    last edited by

                    @mcury said in Client VPN is closing its connection randomly:

                    @jonny-b74 said in Client VPN is closing its connection randomly:

                    I am using the settings from their config file and many combinations as such,
                    I have edited the config.ovpn in pfsense directly and pasted the entire config file in there run the openvpn daemon manually in shell

                    I'm not sure if this is the way to go, in the past, I used PIA and Protonvpn, and at that time there was a guide to pfsense in their site which I followed and never faced any problems..
                    The guide was all inside the pfsense GUI, no need to replace .opvn files in the pfsense..

                    I did this only to test their entire config file to make sure the gui was not adding/excluding anything,
                    windscribe, proton works for me too, unfortunately i put money down towards vpnunlimited/keepsolid

                    SSL alert (write): warning: close notify

                    I just read a little about this error but so far I can't reach any conclusion about it, not even sure if this is really an error..

                    yes that is not conclusive or arrive to the issue

                    1 Reply Last reply Reply Quote 0
                    • M
                      mcury @mcury
                      last edited by

                      @mcury said in Client VPN is closing its connection randomly:

                      2 - I would try to configure everything through the GUI, using the options available, and the rest I would use the custom options field.

                      I'm saying this because usually pfsense overwrites everything you change through the CLI with the GUI configuration.

                      But I don't know if this happens to .ovpn file..

                      dead on arrival, nowhere to be found.

                      1 Reply Last reply Reply Quote 0
                      • J
                        jonny.b74 @mcury
                        last edited by jonny.b74

                        @mcury said in Client VPN is closing its connection randomly:

                        @jonny-b74 Regarding your firewall rules, NAT and interface images, can't see any problems there.
                        If you had a problem there, it wouldn't work.. You are browsing for 20 minutes, so it's not the NAT, rules and the interface..

                        1 - I would ask them a guide to pfsense, or the logs of your connection dropping..
                        2 - I would try to configure everything through the GUI, using the options available, and the rest I would use the custom options field.

                        They are not willing to work with me, saying nothing they can do from their side and to use other software

                        This is all I can think at this moment.. Already started to drink a beer here hehehe

                        I must say thank you v. much for this so far, it makes me revisit and confirm on things
                        Cheers and enjoy your evening, will hopefully reach out tomorow :-)

                        M 1 Reply Last reply Reply Quote 1
                        • M
                          mcury @jonny.b74
                          last edited by

                          @jonny-b74 =) Cheers

                          dead on arrival, nowhere to be found.

                          B 1 Reply Last reply Reply Quote 0
                          • B
                            bcruze @mcury
                            last edited by

                            @mcury

                            https://www.vpnunlimitedapp.com/

                            They have a guide on the site under help

                            They sounds like pia I could never stay connected more than a day

                            M 1 Reply Last reply Reply Quote 0
                            • M
                              mcury @bcruze
                              last edited by

                              @bcruze Did you follow their guide?
                              Same problem happens?

                              dead on arrival, nowhere to be found.

                              1 Reply Last reply Reply Quote 0
                              • B
                                bcruze
                                last edited by

                                I did not.

                                turn your volume UP

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

                                1 Reply Last reply Reply Quote 0
                                • J
                                  jonny.b74
                                  last edited by

                                  Yes did follow the vpn provider guide, thanks for the video link.

                                  Still does not work, bit stuck now and frustrated been over two weeks of struggling, might give up on this provider.

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