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

    Apinger and openvpn connection lose.

    Scheduled Pinned Locked Moved Routing and Multi WAN
    5 Posts 5 Posters 940 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.
    • H Offline
      Henk
      last edited by

      Hi,

      A few weeks ago i installed a new fiber internet line by one of our customers on one of the free network ports of the pfsense firewall. The internet that is now going through the new wan port is working perfect, so I decided to switch the openvpn lines form the old wan to the new wan. It worked immediately but after a few days the customer called and said that the openvpn connection drops serval times a day. I looked into that and the only thing I found was that in the log from the gateway there a lot of apinger: SIGHUP received, reloading configuration messages. And the time of the message is corresponding with the time the openvpn connection is lost. I check this on a other firewall and there I see this message just ones in 3 or 4 months.

      So I looked around on the internet and this forum but could not find a good answer, can you help me. And what does the apinger do, checking if the connection is still up?

      How can i get a stable openvpn connection?

      1 Reply Last reply Reply Quote 0
      • G Offline
        grandrivers
        last edited by

        apinger needs work

        pfsense plus 25.03 super micro A1SRM-2558F
        C2558 32gig ECC  60gig SSD

        1 Reply Last reply Reply Quote 0
        • D Offline
          doktornotor Banned
          last edited by

          @grandrivers:

          apinger needs work

          Step 1:

          1 Reply Last reply Reply Quote 0
          • K Offline
            kejianshi
            last edited by

            Apinger is nice and fair….

            Some days it lies saying my connection is way better than it is.  Some days it lies saying my connection is way worse than it is.

            1 Reply Last reply Reply Quote 0
            • P Offline
              phil.davis
              last edited by

              My experience is that after a period of real internet problems (ISP is down but not at the first hop, or real latency is high), when the real problem is fixed, then apinger get too optimistic, reporting latency that is too good to be true. I guess something in its rolling averaging algorithm goes wrong after it has had big values and then gets much smaller ones come in.
              Anyway, for me it usually stabilizes back to a believable value after 5 minutes.
              Yes, the code has got too complicated trying to patch it to handle all sorts of things that can happen on-the-fly as interface events happen and outstanding IOs die and… Maybe it can be fixed by just 1 more patch?!
              Realistically, as others have commented elsewhere, it is time to make some requirements and write a multi-WAN multi-target monitoring program from scratch.

              As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
              If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

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