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

    OpenVPN Tunnel Does not Appear to stay Active

    Scheduled Pinned Locked Moved OpenVPN
    7 Posts 2 Posters 4.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.
    • W
      WGamradt
      last edited by

      Hello All,

      This is a newbie question. This is my first attempt at configuring OpenVPN so please forgive my ignorance.

      I have been searching for answers to an issue I am having with an OpenVPN road warrior configuration.

      Here is the problem in a nutshell.  I have followed the HowTo posted on the pfSense website.  I upgraded the pfSense firmware to release 1.2.2. (Previous release on this box was 1.0.2.  Not sure if that matters.)

      I have the OpenVPN client 2.0.9 running on Windows XP SP3 workstations.  I have created the client certs as instructed in the HowTo as well.

      I can get the tunnel to initialize. I can see the route table get updated on the client.  I can get pings to cross the tunnel for a short period of time. (9 - 12 responses typically).  Then they just mysteriously die.  The route table entries also will disappear (for the most part).

      The crazy thing is that if I drop the connection and retry (sometimes it works the second time or it may take multiple attempts.) it eventually will work and appear stable for as long as you want it to be.

      Can anyone provide any assistance with this issue?  Any help will be appreciated.

      Thanks in advance.
      Wayne

      1 Reply Last reply Reply Quote 0
      • GruensFroeschliG
        GruensFroeschli
        last edited by

        needed:
        server config file, client config file,
        server log, client log

        We do what we must, because we can.

        Asking questions the smart way: http://www.catb.org/esr/faqs/smart-questions.html

        1 Reply Last reply Reply Quote 0
        • W
          WGamradt
          last edited by

          Sent the requested files via your email address.

          1 Reply Last reply Reply Quote 0
          • W
            WGamradt
            last edited by

            I think I may have this issue resolved.  I have made the following changes.  Most of the information I used came from this forum (in multiple other posts).  Thanks to all for sharing.

            • I converted from using TCP to UDP.  What made this possible was the inclusion of local xxx.xxx.xxx.xxx in the options on the OpenVPN Server configuration.  (Where xxx.xxx.xxx.xxx = IPA of WAN connection)

            • I also found that my client configuration profile included a tls-client directive.  My server has not been configured for this option.

            My testing so far has been positive.  I can connect the first time and the tunnel will stay active.  Much better than before.

            I do have one question however.  Can anyone tell me why the client log file did not indicate any problem?  From the client side everything looked fine.  The tunnel would collapse, but there would be no indication in the log.  I played with the client verb setting and had set it as high as 7 to no avail.  The server log would indicate a connection Reset but that was about it.

            Thanks to all.  I hope this information can help others experiencing similar issues.

            1 Reply Last reply Reply Quote 0
            • W
              WGamradt
              last edited by

              Doh!  I spoke too soon.  The connection seems a bit better but it still is taking me several attempts to get a stable connection.

              I started having issues after re-booting my test workstation. (Windows XP Pro SP3)  After a reboot the first connection attempt always will fail. (Connects, can ping across, dies a few seconds later)

              1 Reply Last reply Reply Quote 0
              • GruensFroeschliG
                GruensFroeschli
                last edited by

                Sorry just saw your email.
                Haven't had time to look at it.
                (i'm moving and dont have internet at the new place yet).

                We do what we must, because we can.

                Asking questions the smart way: http://www.catb.org/esr/faqs/smart-questions.html

                1 Reply Last reply Reply Quote 0
                • W
                  WGamradt
                  last edited by

                  No problem.  Whenever you have time.  If you weren't a few thousand miles away I would offer my assistance. :)

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